コード例 #1
0
ファイル: initial.py プロジェクト: journalref/vcpe-hub
 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)
コード例 #2
0
ファイル: initial.py プロジェクト: hsnl-dev/vcpe-hub
 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)
コード例 #3
0
ファイル: rest_qosinfo_set.py プロジェクト: hsnl-dev/vcpe-hub
 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)
コード例 #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)