def __init__(self, *args, **kwargs): super(CABSwitch, self).__init__(*args, **kwargs) self.cab = cab_client() self.cab.create_connection() self.overflow_cnt = 0 self.is_overflow = False self.queries = 0 self.packetin = 0 self.packetout = 0 self.flowmod = 0 self.query_map = {} self.tracefile = raw_input('Enter Tracename: ')
def __init__(self, *args, **kwargs): super(CABSwitch, self).__init__(*args, **kwargs) self.cab = cab_client() # self.cab.create_connection() self.overflow_cnt = 0 self.is_overflow = False self.queries = 0 self.packetin = 0 self.packetout = 0 self.flowmod = 0 # self.tracefile = raw_input('Enter Tracename: ') self.buckets = {} self.query_map = {} self.portMap = pickle.load(open("portMap.dat", 'rb')) self.pathMap = pickle.load(open("pathMap.dat", 'rb')) self.datapathList = {} c = threading.Thread(target=self.clean_query_map) c.start()
def __init__(self, *args, **kwargs): super(CABSwitch, self).__init__(*args, **kwargs) self.cab = cab_client() self.cab.create_connection() self.overflow_cnt = 0 self.is_overflow = False