update to controlnet names on host machine to be more obvious to their purpose, ctrl<index>.<short session id>

This commit is contained in:
Blake Harnden 2020-10-10 05:31:26 -07:00
parent 4e79865035
commit 26c2997a42

View file

@ -1447,12 +1447,14 @@ class Session:
)
control_net = self.create_node(
CtrlNet,
True,
prefix,
start=False,
prefix=prefix,
_id=_id,
updown_script=updown_script,
serverintf=server_iface,
)
control_net.brname = f"ctrl{net_index}.{self.short_session_id()}"
control_net.startup()
return control_net
def add_remove_control_iface(