Пример #1
0
 def port_queue_func(node_id, port_id, queue_id, *args):
   req = dummy_test_pb2.DeviceStatusUpdateRequest()
   req.source.port_queue.node_id = int(node_id)
   req.source.port_queue.port_id = int(port_id)
   req.source.port_queue.queue_id = int(queue_id)
   return func(req, *args)
Пример #2
0
 def node_fnuc(node_id, *args):
   req = dummy_test_pb2.DeviceStatusUpdateRequest()
   req.source.node.node_id = int(node_id)
   return func(req, *args)
Пример #3
0
 def chassis_func(*args):
   req = dummy_test_pb2.DeviceStatusUpdateRequest()
   req.source.chassis.ParseFromString('')
   return func(req, *args)