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)
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)
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)
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)