From e04a531a86c3e59748a5e3f02ee0da9ad76e95ec Mon Sep 17 00:00:00 2001 From: Damien Arnodo Date: Sun, 30 Nov 2025 08:20:58 +0000 Subject: [PATCH] Update topology to use persistent interface files via binds instead of exec commands --- evpn-lab.clab.yml | 34 ++++++++-------------------------- 1 file changed, 8 insertions(+), 26 deletions(-) diff --git a/evpn-lab.clab.yml b/evpn-lab.clab.yml index 8538721..22d11a0 100644 --- a/evpn-lab.clab.yml +++ b/evpn-lab.clab.yml @@ -71,47 +71,29 @@ topology: kind: linux mgmt-ipv4: 172.16.0.101 image: alpine:latest - exec: - - ip link add bond0 type bond mode balance-rr - - ip link set eth1 master bond0 - - ip link set eth2 master bond0 - - ip link set bond0 up - - ip addr add 10.40.40.101/24 dev bond0 + binds: + - configs/host1-interfaces:/etc/network/interfaces host2: kind: linux mgmt-ipv4: 172.16.0.102 image: alpine:latest - exec: - - ip link add bond0 type bond mode balance-rr - - ip link set eth1 master bond0 - - ip link set eth2 master bond0 - - ip link set bond0 up - - ip addr add 10.34.34.102/24 dev bond0 - - ip route add default via 10.34.34.1 + binds: + - configs/host2-interfaces:/etc/network/interfaces host3: kind: linux mgmt-ipv4: 172.16.0.103 image: alpine:latest - exec: - - ip link add bond0 type bond mode balance-rr - - ip link set eth1 master bond0 - - ip link set eth2 master bond0 - - ip link set bond0 up - - ip addr add 10.40.40.103/24 dev bond0 + binds: + - configs/host3-interfaces:/etc/network/interfaces host4: kind: linux mgmt-ipv4: 172.16.0.104 image: alpine:latest - exec: - - ip link add bond0 type bond mode balance-rr - - ip link set eth1 master bond0 - - ip link set eth2 master bond0 - - ip link set bond0 up - - ip addr add 10.78.78.104/24 dev bond0 - - ip route add default via 10.78.78.1 + binds: + - configs/host4-interfaces:/etc/network/interfaces links: # Spine1 to Leaf connections (underlay fabric)