def __init__(self, *args, **kwargs): super(BandwidthMonitor, self).__init__(*args, **kwargs) self.datapaths = {} self.dpset = kwargs['dpset'] self.topo = Topology(cfgfile) self.bwstats = BandwidthStats(self.topo) self.monitor_thread = hub.spawn(self.monitor)