added pydoc for grpc client InterfaceHelper
This commit is contained in:
parent
f73c617ecf
commit
4cc9d3debf
1 changed files with 9 additions and 0 deletions
|
@ -113,6 +113,15 @@ class InterfaceHelper:
|
|||
def create_interface(
|
||||
self, node_id: int, interface_id: int, name: str = None, mac: str = None
|
||||
) -> core_pb2.Interface:
|
||||
"""
|
||||
Create an interface protobuf object.
|
||||
|
||||
:param node_id: node id to create interface for
|
||||
:param interface_id: interface id
|
||||
:param name: name of interface
|
||||
:param mac: mac address for interface
|
||||
:return: interface protobuf
|
||||
"""
|
||||
interface_data = self.prefixes.gen_interface(node_id, name, mac)
|
||||
return core_pb2.Interface(
|
||||
id=interface_id,
|
||||
|
|
Loading…
Add table
Reference in a new issue