Exemplo n.º 1
0
 def get_topology_for_swadd(self, ev):
     """Switch add."""
     print "EventSwitchEnter"
     self.get_topology_data()
     if constant.Capacity > 0:
         switch_list = get_switch(self.topology_api_app, None)
         rate_setup.init_meter_setup(constant.Capacity, switch_list)
Exemplo n.º 2
0
 def get_topology_for_swadd(self, ev):
     """Switch add."""
     print "EventSwitchEnter"
     self.get_topology_data()
     if constant.Capacity > 0:
         switch_list = get_switch(self.topology_api_app, None)
         rate_setup.init_meter_setup(constant.Capacity, switch_list)
Exemplo n.º 3
0
 def set_qos_parameter(self, capacity):
     constant.Capacity = int(capacity)
     switch_list = get_switch(self.topology_api_app, None)
     rate_setup.init_meter_setup(constant.Capacity, switch_list)
Exemplo n.º 4
0
 def set_qos_parameter(self, capacity):
     constant.Capacity = int(capacity)
     switch_list = get_switch(self.topology_api_app, None)
     rate_setup.init_meter_setup(constant.Capacity, switch_list)