예제 #1
0
 def __init__(self, *args, **kwargs):
     super(ResourceTracker, self).__init__(*args, **kwargs)
     self.mac_to_port = {}
     self.dpset = kwargs['dpset']
     self.datapaths = {}
     # create thread for traffic monitoring
     # self.monitor_thread = hub.spawn(self._monitor)
     self.hostname_list = {}
     self.dpid_datapathObj = {}
     self.ssh_learning = {}
     self.ssh_track_list = {}
     self.util = Utilites()
예제 #2
0
 def __init__(self, *args, **kwargs):
     super(ICMPTrafficController, self).__init__(*args, **kwargs)
     self.datapaths = {}
     self.monitor_thread = hub.spawn(self._monitor)
     self.hostname_list = {}
     self.sleep = 10
     # length of saved dictionary value
     self.state_len = 3
     self.icmp_stats = {}
     self.iperf_stats = {}
     self.traffic_checked_list = []
     self.util = Utilites()
     self.dpid_datapathObj = {}
예제 #3
0
 def __init__(self, *args, **kwargs):
     super(SimpleSwitch13, self).__init__(*args, **kwargs)
     self.mac_to_port = {}
     self.dpset = kwargs['dpset']
     self.datapaths = {}
     # create thread for traffic monitoring
     self.monitor_thread = hub.spawn(self._monitor)
     self.hostname_list = {}
     self.net = nx.DiGraph()
     self.nodes = {}
     self.links = {}
     self.no_of_nodes = 0
     self.no_of_links = 0
     self.topology_data_app = self
     # port number between two OVS
     self.link_port = {}
     # save OVS datapath Object for later reference
     self.dpid_datapathObj = {}
     self.icmp_count = 0
     self.icmp_track_list = {}
     self.icmp_path_list = {}
     self.util = Utilites()