Update topology to use persistent interface files via binds instead of exec commands
This commit is contained in:
@@ -71,47 +71,29 @@ topology:
|
|||||||
kind: linux
|
kind: linux
|
||||||
mgmt-ipv4: 172.16.0.101
|
mgmt-ipv4: 172.16.0.101
|
||||||
image: alpine:latest
|
image: alpine:latest
|
||||||
exec:
|
binds:
|
||||||
- ip link add bond0 type bond mode balance-rr
|
- configs/host1-interfaces:/etc/network/interfaces
|
||||||
- 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
|
|
||||||
|
|
||||||
host2:
|
host2:
|
||||||
kind: linux
|
kind: linux
|
||||||
mgmt-ipv4: 172.16.0.102
|
mgmt-ipv4: 172.16.0.102
|
||||||
image: alpine:latest
|
image: alpine:latest
|
||||||
exec:
|
binds:
|
||||||
- ip link add bond0 type bond mode balance-rr
|
- configs/host2-interfaces:/etc/network/interfaces
|
||||||
- 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
|
|
||||||
|
|
||||||
host3:
|
host3:
|
||||||
kind: linux
|
kind: linux
|
||||||
mgmt-ipv4: 172.16.0.103
|
mgmt-ipv4: 172.16.0.103
|
||||||
image: alpine:latest
|
image: alpine:latest
|
||||||
exec:
|
binds:
|
||||||
- ip link add bond0 type bond mode balance-rr
|
- configs/host3-interfaces:/etc/network/interfaces
|
||||||
- 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
|
|
||||||
|
|
||||||
host4:
|
host4:
|
||||||
kind: linux
|
kind: linux
|
||||||
mgmt-ipv4: 172.16.0.104
|
mgmt-ipv4: 172.16.0.104
|
||||||
image: alpine:latest
|
image: alpine:latest
|
||||||
exec:
|
binds:
|
||||||
- ip link add bond0 type bond mode balance-rr
|
- configs/host4-interfaces:/etc/network/interfaces
|
||||||
- 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
|
|
||||||
|
|
||||||
links:
|
links:
|
||||||
# Spine1 to Leaf connections (underlay fabric)
|
# Spine1 to Leaf connections (underlay fabric)
|
||||||
|
|||||||
Reference in New Issue
Block a user