Example #1
0
 def __init__(self,
              instance_id,
              core_store_id,
              grpc_port,
              version,
              log_level):
     self.instance_id = instance_id
     self.stopped = False
     self.dispatcher = Dispatcher(self,
                                  instance_id,
                                  core_store_id,
                                  grpc_port)
     self.core_store_id = core_store_id
     self.global_handler = GlobalHandler(
         dispatcher=self.dispatcher,
         instance_id=instance_id,
         version=version,
         log_level=log_level)
     self.xpon_handler = XponHandler(self)
     self.local_handler = LocalHandler(
         core=self,
         instance_id=instance_id,
         core_store_id=core_store_id,
         version=version,
         log_level=log_level)
     self.local_root_proxy = None
     self.device_agents = {}
     self.logical_device_agents = {}
     self.alarm_filter_agent = None
     self.packet_in_queue = Queue()
     self.change_event_queue = Queue()
     self.xpon_agent = XponAgent(self)
Example #2
0
 def __init__(self, instance_id, version, log_level):
     self.instance_id = instance_id
     self.stopped = False
     self.dispatcher = Dispatcher(self, instance_id)
     self.global_handler = GlobalHandler(dispatcher=self.dispatcher,
                                         instance_id=instance_id,
                                         version=version,
                                         log_level=log_level)
     self.local_handler = LocalHandler(core=self,
                                       instance_id=instance_id,
                                       version=version,
                                       log_level=log_level)
     self.local_root_proxy = None
     self.device_agents = {}
     self.logical_device_agents = {}
     self.packet_in_queue = Queue()
     self.change_event_queue = Queue()