Update topology to use persistent interface files via binds instead of exec commands

This commit is contained in:
2025-11-30 08:20:58 +00:00
parent 926ab47337
commit e04a531a86

View File

@@ -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)