ceos: allow wiring the management interface as a link - #3237
Conversation
Permit the cEOS management interface (eth0) to be used as a regular topology link when the node is detached from the containerlab management network with network-mode: none. This makes the management port behave like that of a physical switch: it can be cabled to a management host or an out-of-band management switch, and comes up unaddressed unless the link or startup-config provides an address, enabling realistic ZTP topologies. The default behavior is unchanged: without network-mode: none the node keeps Management0 on the management network with its assigned address. - CheckInterfaceName allows an eth0 endpoint only with network-mode: none - the management gateway and auto-addressing are skipped when detached; the management address is sourced from the wired eth0 link instead, resolved independently per address family - a startup-config-provided management address is preserved when no address is otherwise derived - boot waits for a wired eth0 to be attached before EOS starts, so the management interface comes up from it
|
Thank you @philsphicas |
|
@philsphicas Had no chance to review this PR before, but not abandoned it. Looks very solid at the first glance and even AI is happy. =) Great work! |

Permit the cEOS management interface (eth0) to be used as a regular topology link when the node is detached from the containerlab management network with network-mode: none. This makes the management port behave like that of a physical switch: it can be cabled to a management host or an out-of-band management switch, and comes up unaddressed unless the link or startup-config provides an address, enabling realistic ZTP topologies.
The default behavior is unchanged: without network-mode: none the node keeps Management0 on the management network with its assigned address.