updates to Pipefile.lock and for nodes to add server to constructor

This commit is contained in:
bharnden 2019-10-05 11:16:57 -07:00
parent 931ee65235
commit 95296988c5
6 changed files with 310 additions and 153 deletions

View file

@ -277,7 +277,7 @@ class Rj45Node(CoreNodeBase, CoreInterface):
apitype = NodeTypes.RJ45.value
type = "rj45"
def __init__(self, session, _id=None, name=None, mtu=1500, start=True):
def __init__(self, session, _id=None, name=None, mtu=1500, start=True, server=None):
"""
Create an RJ45Node instance.
@ -286,9 +286,9 @@ class Rj45Node(CoreNodeBase, CoreInterface):
:param str name: node name
:param mtu: rj45 mtu
:param bool start: start flag
:return:
:param str server: remote server node will run on, default is None for localhost
"""
CoreNodeBase.__init__(self, session, _id, name, start=start)
CoreNodeBase.__init__(self, session, _id, name, start, server)
CoreInterface.__init__(self, node=self, name=name, mtu=mtu)
self.up = False
self.lock = threading.RLock()