diff --git a/daemon/core/emulator/session.py b/daemon/core/emulator/session.py index 9eb02a07..31e75de2 100644 --- a/daemon/core/emulator/session.py +++ b/daemon/core/emulator/session.py @@ -1869,7 +1869,14 @@ class Session(object): assign_address = self.master 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( cls=CtrlNet, _id=_id, diff --git a/daemon/core/nodes/network.py b/daemon/core/nodes/network.py index 3ec84282..f7d6af69 100644 --- a/daemon/core/nodes/network.py +++ b/daemon/core/nodes/network.py @@ -808,7 +808,8 @@ class CtrlNet(CoreNetwork): :param prefix: control network ipv4 prefix :param hostid: host id :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 updown_script: updown script :param serverintf: server interface diff --git a/daemon/examples/python/distributed.py b/daemon/examples/python/distributed.py index feb5e8bb..3cb3debd 100644 --- a/daemon/examples/python/distributed.py +++ b/daemon/examples/python/distributed.py @@ -15,6 +15,9 @@ def main(): coreemu = CoreEmu() session = coreemu.create_session() + # set controlnet + session.options.set_config("controlnet", "172.16.0.0/24") + # initialize distributed address = sys.argv[1] remote = sys.argv[2]