Пример #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)
Пример #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)
Пример #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)
Пример #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)
Пример #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)