예제 #1
0
 def __init__(self, adapter, port, log):
     self.adapter = adapter
     self.adapter_agent = adapter.adapter_agent
     self.adapter_name = adapter.name
     self.grpc_server = None
     self.grpc_server_port = port
     self.log = log
     self.ind_handler = Asfvolt16IndHandler(log)
예제 #2
0
 def __init__(self, olt, log):
     self.log = log
     self.grpc_client = GrpcClient(self.log)
     self.stub = None
     self.ind_stub = None
     self.device_id = None
     self.olt = olt
     self.interval = 0.05
     self.ind_obj = Asfvolt16IndHandler(log)