-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathgnp-stack.clab.yml
More file actions
66 lines (63 loc) · 2.12 KB
/
gnp-stack.clab.yml
File metadata and controls
66 lines (63 loc) · 2.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
---
name: gnp-stack
mgmt:
network: gnp-stack_gnp-mgmt
ipv4-subnet: 192.168.60.0/24
topology:
kinds:
nokia_srlinux:
image: ghcr.io/nokia/srlinux:24.10.4
arista_ceos:
image: ceos:4.33.4M
linux:
image: ghcr.io/srl-labs/network-multitool
nodes:
spine1:
kind: nokia_srlinux
startup-config: uat-configs/srl-spine1.conf
leaf1:
kind: nokia_srlinux
startup-config: uat-configs/srl-leaf1.conf
leaf2:
kind: nokia_srlinux
startup-config: uat-configs/srl-leaf2.conf
edge1:
kind: arista_ceos
startup-config: uat-configs/arista-edge1.conf
edge2:
kind: arista_ceos
startup-config: uat-configs/arista-edge2.conf
client1:
kind: linux
exec:
- ip address add 192.168.1.2/24 dev eth1
- ip route add 192.168.2.0/24 via 192.168.1.1
- ip route add 192.168.3.0/24 via 192.168.1.1
client2:
kind: linux
exec:
- ip address add 192.168.2.2/24 dev eth1
- ip route add 192.168.1.0/24 via 192.168.2.1
- ip route add 192.168.3.0/24 via 192.168.2.1
client3:
kind: linux
exec:
- ip address add 192.168.3.2/24 dev eth1
- ip route add 192.168.1.0/24 via 192.168.3.1
- ip route add 192.168.2.0/24 via 192.168.3.1
client4:
kind: linux
exec:
- ip address add 192.168.3.3/24 dev eth1
- ip route add 192.168.1.0/24 via 192.168.3.1
- ip route add 192.168.2.0/24 via 192.168.3.1
links:
- endpoints: ["leaf1:e1-49", "spine1:e1-1"] # leaf to spine
- endpoints: ["leaf2:e1-49", "spine1:e1-2"] # leaf to spine
- endpoints: ["edge1:eth1", "edge2:eth1"] # edge to edge
- endpoints: ["leaf1:ethernet-1/55", "edge1:eth2"] # leaf to edge
- endpoints: ["leaf2:ethernet-1/55", "edge2:eth2"] # leaf to edge
- endpoints: ["leaf1:ethernet-1/1", "client1:eth1"] # leaf to client1 (L3)
- endpoints: ["leaf2:ethernet-1/1", "client2:eth1"] # leaf to client2 (L3)
- endpoints: ["leaf1:ethernet-1/2", "client3:eth1"] # leaf to client3 (L2)
- endpoints: ["leaf2:ethernet-1/2", "client4:eth1"] # leaf to client4 (L2)