Esempio n. 1
0
 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)
Esempio n. 2
0
 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)