encapsulated grpc enums within messages to help provide better namespace separation due to python/c code generation
This commit is contained in:
parent
ec672d209f
commit
2ed2b4a879
4 changed files with 102 additions and 86 deletions
|
@ -422,7 +422,7 @@ class CoreGrpcClient(object):
|
|||
:raises grpc.RpcError: when session or one of the nodes don't exist
|
||||
"""
|
||||
link = core_pb2.Link(
|
||||
node_one_id=node_one_id, node_two_id=node_two_id, type=core_pb2.LINK_WIRED,
|
||||
node_one_id=node_one_id, node_two_id=node_two_id, type=core_pb2.LinkType.WIRED,
|
||||
interface_one=interface_one, interface_two=interface_two, options=options)
|
||||
request = core_pb2.AddLinkRequest(session_id=session_id, link=link)
|
||||
return self.stub.AddLink(request)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue