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)
def get_meter_stats(self, device_id): req = ID(id=device_id) res = yield threads.deferToThread( self.local_stub.GetMeterStatsOfLogicalDevice, req) returnValue(res.items)
def list_groups(self, device_id): req = ID(id=device_id) res = yield threads.deferToThread( self.local_stub.ListLogicalDeviceFlowGroups, req) returnValue(res.items)
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)
def get_port_list(self, device_id): req = ID(id=device_id) res = yield threads.deferToThread( self.local_stub.ListLogicalDevicePorts, req) returnValue(res.items)