-
Notifications
You must be signed in to change notification settings - Fork 245
/
cfg-clos.clab.yml
186 lines (180 loc) · 6.02 KB
/
cfg-clos.clab.yml
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
### 4 Leaf - 2 Spine - 2 DCGW
name: cfg-clos
######### Global Variables for Config Engine #########
topology:
defaults:
config:
vars:
overlay_as: 65555
#----------------------------------------------------#
kinds:
nokia_srlinux:
image: ghcr.io/nokia/srlinux:21.6.2-67
vr-sros:
image: vrnetlab/vr-sros:21.7.R1 # internal image, external users should build/use their own image
license: ./license_sr.key # license file must be obtained from Nokia
#######################################################
nodes:
#-----------------------------------------------------#
dcgw1:
kind: vr-sros
type: sr-1
config:
vars:
system_ip: 10.0.0.31
as: 65030
#-----------------------------------------------------#
dcgw2:
kind: vr-sros
type: sr-1
config:
vars:
system_ip: 10.0.0.32
as: 65030
#-----------------------------------------------------#
spine1:
kind: nokia_srlinux
type: ixrd3
config:
vars:
system_ip: 10.0.0.21
as: 65020
cluster_id: 10.10.10.10
#-----------------------------------------------------#
spine2:
kind: nokia_srlinux
type: ixrd3
config:
vars:
system_ip: 10.0.0.22
as: 65020
cluster_id: 10.10.10.10
#-----------------------------------------------------#
leaf1:
kind: nokia_srlinux
type: ixrd2
config:
vars:
system_ip: 10.0.0.11
as: 65011
#-----------------------------------------------------#
leaf2:
kind: nokia_srlinux
type: ixrd2
config:
vars:
system_ip: 10.0.0.12
as: 65012
#-----------------------------------------------------#
leaf3:
kind: nokia_srlinux
type: ixrd2
config:
vars:
system_ip: 10.0.0.13
as: 65013
#-----------------------------------------------------#
leaf4:
kind: nokia_srlinux
type: ixrd2
config:
vars:
system_ip: 10.0.0.14
as: 65014
#-----------------------------------------------------#
sros-client:
kind: vr-sros
type: sr-1
#-----------------------------------------------------#
links:
#######################################################
################## DCGW - Spine #######################
#######################################################
- endpoints: ["dcgw1:eth1", "spine1:e1-31"]
vars:
port: [1/1/c1, ethernet-1/31]
clab_link_ip: 100.31.21.1/30
bgp_underlay: true
#-----------------------------------------------------#
- endpoints: ["dcgw1:eth2", "spine2:e1-31"]
vars:
port: [1/1/c2, ethernet-1/31]
clab_link_ip: 100.31.22.1/30
bgp_underlay: true
#-----------------------------------------------------#
- endpoints: ["dcgw2:eth1", "spine1:e1-32"]
vars:
port: [1/1/c1, ethernet-1/32]
clab_link_ip: 100.32.21.1/30
bgp_underlay: true
#-----------------------------------------------------#
- endpoints: ["dcgw2:eth2", "spine2:e1-32"]
vars:
port: [1/1/c2, ethernet-1/32]
clab_link_ip: 100.32.22.1/30
bgp_underlay: true
#######################################################
################## Spine 1 - Leafs ####################
#######################################################
- endpoints: ["spine1:e1-11", "leaf1:e1-51"]
vars:
port: [ethernet-1/11, ethernet-1/51]
clab_link_ip: 100.21.11.1/30
bgp_underlay: true
#-----------------------------------------------------#
- endpoints: ["spine1:e1-12", "leaf2:e1-51"]
vars:
port: [ethernet-1/12, ethernet-1/51]
clab_link_ip: 100.21.12.1/30
bgp_underlay: true
#-----------------------------------------------------#
- endpoints: ["spine1:e1-13", "leaf3:e1-51"]
vars:
port: [ethernet-1/13, ethernet-1/51]
clab_link_ip: 100.21.13.1/30
bgp_underlay: true
#-----------------------------------------------------#
- endpoints: ["spine1:e1-14", "leaf4:e1-51"]
vars:
port: [ethernet-1/14, ethernet-1/51]
clab_link_ip: 100.21.14.1/30
bgp_underlay: true
#-----------------------------------------------------#
#######################################################
################## Spine 2 - Leafs ####################
#######################################################
- endpoints: ["spine2:e1-11", "leaf1:e1-52"]
vars:
port: [ethernet-1/11, ethernet-1/52]
clab_link_ip: 100.22.11.1/30
bgp_underlay: true
#-----------------------------------------------------#
- endpoints: ["spine2:e1-12", "leaf2:e1-52"]
vars:
port: [ethernet-1/12, ethernet-1/52]
clab_link_ip: 100.22.12.1/30
bgp_underlay: true
#-----------------------------------------------------#
- endpoints: ["spine2:e1-13", "leaf3:e1-52"]
vars:
port: [ethernet-1/13, ethernet-1/52]
clab_link_ip: 100.22.13.1/30
bgp_underlay: true
#-----------------------------------------------------#
- endpoints: ["spine2:e1-14", "leaf4:e1-52"]
vars:
port: [ethernet-1/14, ethernet-1/52]
clab_link_ip: 100.22.14.1/30
bgp_underlay: true
#-----------------------------------------------------#
#######################################################
################ Leaf - Client/Host ###################
#######################################################
- endpoints: ["leaf1:e1-1", "sros-client:eth1"]
- endpoints: ["leaf1:e1-2", "sros-client:eth2"]
- endpoints: ["leaf2:e1-1", "sros-client:eth3"]
- endpoints: ["leaf2:e1-2", "sros-client:eth4"]
- endpoints: ["leaf3:e1-1", "sros-client:eth5"]
- endpoints: ["leaf3:e1-2", "sros-client:eth6"]
- endpoints: ["leaf4:e1-1", "sros-client:eth7"]
- endpoints: ["leaf4:e1-2", "sros-client:eth8"]