updates for testing using examples
This commit is contained in:
parent
b7b0e4222c
commit
c8d68c332a
3 changed files with 13 additions and 2 deletions
|
@ -1869,7 +1869,14 @@ class Session(object):
|
||||||
assign_address = self.master
|
assign_address = self.master
|
||||||
prefix = prefixes[0]
|
prefix = prefixes[0]
|
||||||
|
|
||||||
logging.info("controlnet prefix: %s - %s", type(prefix), prefix)
|
logging.info(
|
||||||
|
"controlnet(%s) prefix(%s) assign(%s) updown(%s) serverintf(%s)",
|
||||||
|
_id,
|
||||||
|
prefix,
|
||||||
|
assign_address,
|
||||||
|
updown_script,
|
||||||
|
server_interface,
|
||||||
|
)
|
||||||
control_net = self.create_node(
|
control_net = self.create_node(
|
||||||
cls=CtrlNet,
|
cls=CtrlNet,
|
||||||
_id=_id,
|
_id=_id,
|
||||||
|
|
|
@ -808,7 +808,8 @@ class CtrlNet(CoreNetwork):
|
||||||
:param prefix: control network ipv4 prefix
|
:param prefix: control network ipv4 prefix
|
||||||
:param hostid: host id
|
:param hostid: host id
|
||||||
:param bool start: start flag
|
:param bool start: start flag
|
||||||
:param str server: remote server node will run on, default is None for localhost
|
:param fabric.connection.Connection server: remote server node will run on,
|
||||||
|
default is None for localhost
|
||||||
:param str assign_address: assigned address
|
:param str assign_address: assigned address
|
||||||
:param str updown_script: updown script
|
:param str updown_script: updown script
|
||||||
:param serverintf: server interface
|
:param serverintf: server interface
|
||||||
|
|
|
@ -15,6 +15,9 @@ def main():
|
||||||
coreemu = CoreEmu()
|
coreemu = CoreEmu()
|
||||||
session = coreemu.create_session()
|
session = coreemu.create_session()
|
||||||
|
|
||||||
|
# set controlnet
|
||||||
|
session.options.set_config("controlnet", "172.16.0.0/24")
|
||||||
|
|
||||||
# initialize distributed
|
# initialize distributed
|
||||||
address = sys.argv[1]
|
address = sys.argv[1]
|
||||||
remote = sys.argv[2]
|
remote = sys.argv[2]
|
||||||
|
|
Loading…
Reference in a new issue