update to controlnet names on host machine to be more obvious to their purpose, ctrl<index>.<short session id>
This commit is contained in:
parent
4e79865035
commit
26c2997a42
1 changed files with 4 additions and 2 deletions
|
@ -1447,12 +1447,14 @@ class Session:
|
||||||
)
|
)
|
||||||
control_net = self.create_node(
|
control_net = self.create_node(
|
||||||
CtrlNet,
|
CtrlNet,
|
||||||
True,
|
start=False,
|
||||||
prefix,
|
prefix=prefix,
|
||||||
_id=_id,
|
_id=_id,
|
||||||
updown_script=updown_script,
|
updown_script=updown_script,
|
||||||
serverintf=server_iface,
|
serverintf=server_iface,
|
||||||
)
|
)
|
||||||
|
control_net.brname = f"ctrl{net_index}.{self.short_session_id()}"
|
||||||
|
control_net.startup()
|
||||||
return control_net
|
return control_net
|
||||||
|
|
||||||
def add_remove_control_iface(
|
def add_remove_control_iface(
|
||||||
|
|
Loading…
Add table
Reference in a new issue