def disable_port(self, device_id, port_id): req = LogicalPortId(id=device_id, port_id=port_id) res = yield threads.deferToThread( self.local_stub.DisableLogicalDevicePort, req, timeout=self.grpc_timeout) returnValue(res)
def enable_port(self, device_id, port_id): req = LogicalPortId(id=device_id, port_id=port_id) res = yield threads.deferToThread( self.local_stub.EnableLogicalDevicePort, req) returnValue(res)