Ejemplo n.º 1
0
 def list_ports(self, device_id):
     req = ID(id=device_id)
     res = yield threads.deferToThread(
         self.local_stub.ListLogicalDevicePorts,
         req,
         timeout=self.grpc_timeout)
     returnValue(res.items)
Ejemplo n.º 2
0
 def get_meter_stats(self, device_id):
     req = ID(id=device_id)
     res = yield threads.deferToThread(
         self.local_stub.GetMeterStatsOfLogicalDevice, req)
     returnValue(res.items)
Ejemplo n.º 3
0
 def list_groups(self, device_id):
     req = ID(id=device_id)
     res = yield threads.deferToThread(
         self.local_stub.ListLogicalDeviceFlowGroups, req)
     returnValue(res.items)
Ejemplo n.º 4
0
 def get_device_info(self, device_id):
     req = ID(id=device_id)
     res = yield threads.deferToThread(self.local_stub.GetLogicalDevice,
                                       req,
                                       timeout=self.grpc_timeout)
     returnValue(res)
Ejemplo n.º 5
0
 def get_port_list(self, device_id):
     req = ID(id=device_id)
     res = yield threads.deferToThread(
         self.local_stub.ListLogicalDevicePorts, req)
     returnValue(res.items)