Exemplo n.º 1
0
 def process_getPipe(request, context):
     config = p4runtime_pb2.ForwardingPipelineConfig()
     try:
         config.cookie.CopyFrom(p4_cookie)
     except:
         print "Method process_getPipe called, however p4_cookie still not defined"
     return p4runtime_pb2.GetForwardingPipelineConfigResponse(config=config)
Exemplo n.º 2
0
 def GetForwardingPipelineConfig(self, request, context):
     rep = p4runtime_pb2.GetForwardingPipelineConfigResponse()
     if self.p4info is not None:
         rep.config.p4info.CopyFrom(self.p4info)
     return rep