Files
projet-vxlan-automation/containerlab/lab_definition.yml
2024-04-11 18:37:05 +02:00

65 lines
2.0 KiB
YAML
Executable File

name: vxlan-evpn-l2
topology:
nodes:
spine1:
kind: ceos
image: ceos:4.30.3M
mgmt-ipv4: 172.20.20.101
spine2:
kind: ceos
image: ceos:4.30.3M
mgmt-ipv4: 172.20.20.102
leaf1:
kind: ceos
image: ceos:4.30.3M
mgmt-ipv4: 172.20.20.11
leaf2:
kind: srl
image: ghcr.io/nokia/srlinux
mgmt-ipv4: 172.20.20.12
leaf3:
kind: srl
image: ghcr.io/nokia/srlinux
mgmt-ipv4: 172.20.20.13
leaf4:
kind: ceos
image: ceos:4.30.3M
mgmt-ipv4: 172.20.20.14
host1:
kind: linux
image: alpine:latest
binds:
- hosts/h1_interfaces:/etc/network/interfaces
mgmt-ipv4: 172.20.20.21
host2:
kind: linux
image: alpine:latest
binds:
- hosts/h2_interfaces:/etc/network/interfaces
mgmt-ipv4: 172.20.20.22
host3:
kind: linux
image: alpine:latest
binds:
- hosts/h3_interfaces:/etc/network/interfaces
mgmt-ipv4: 172.20.20.23
host4:
kind: linux
image: alpine:latest
binds:
- hosts/h4_interfaces:/etc/network/interfaces
mgmt-ipv4: 172.20.20.24
links:
- endpoints: ["leaf1:eth1", "spine1:eth1"]
- endpoints: ["leaf1:eth2", "spine2:eth1"]
- endpoints: ["leaf2:e1-1", "spine1:eth2"]
- endpoints: ["leaf2:e1-2", "spine2:eth2"]
- endpoints: ["leaf3:e1-1", "spine1:eth3"]
- endpoints: ["leaf3:e1-2", "spine2:eth3"]
- endpoints: ["leaf4:eth1", "spine1:eth4"]
- endpoints: ["leaf4:eth2", "spine2:eth4"]
- endpoints: ["leaf1:eth3", "host1:eth1"]
- endpoints: ["leaf2:e1-3", "host2:eth1"]
- endpoints: ["leaf3:e1-3", "host3:eth1"]
- endpoints: ["leaf4:eth3", "host4:eth1"]