Skip to content

Commit 9a925c2

Browse files
authored
add t0-52 topology (#476)
1 parent 17fd10b commit 9a925c2

File tree

4 files changed

+183
-3
lines changed

4 files changed

+183
-3
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
t0-leaf.j2

ansible/testbed_add_vm_topology.yml

+10-2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,11 @@
5353

5454
- name: Check that variable topo is defined
5555
fail: msg="Define topo variable with -e topo=something"
56-
when: topo is not defined or topo not in topologies
56+
when: topo is not defined
57+
58+
- name: Check if it is a known topology
59+
fail: msg="Unknown topology {{ topo }}"
60+
when: topo not in topologies
5761

5862
- name: Check that variable ptf_imagename is defined
5963
fail: msg="Define ptf_imagename variable with -e ptf_imagename=something"
@@ -77,7 +81,11 @@
7781
pre_tasks:
7882
- name: Check that variable topo is defined
7983
fail: msg="Define topo variable with -e topo=something"
80-
when: topo is not defined or topo not in topologies
84+
when: topo is not defined
85+
86+
- name: Check if it is a known topology
87+
fail: msg="Unknown topology {{ topo }}"
88+
when: topo not in topologies
8189

8290
- name: Check that variable VM_base is defined
8391
fail: msg="Define VM_base variable with -e VM_base=something"

ansible/vars/topo_t0-52.yml

+171
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,171 @@
1+
topology:
2+
host_interfaces:
3+
- 0
4+
- 1
5+
- 2
6+
- 3
7+
- 4
8+
- 5
9+
- 6
10+
- 7
11+
- 8
12+
- 9
13+
- 10
14+
- 11
15+
- 12
16+
- 13
17+
- 14
18+
- 15
19+
- 16
20+
- 17
21+
- 18
22+
- 19
23+
- 20
24+
- 21
25+
- 22
26+
- 23
27+
- 24
28+
- 25
29+
- 26
30+
- 27
31+
- 28
32+
- 29
33+
- 30
34+
- 31
35+
- 32
36+
- 33
37+
- 34
38+
- 35
39+
- 36
40+
- 37
41+
- 38
42+
- 39
43+
- 40
44+
- 41
45+
- 42
46+
- 43
47+
- 44
48+
- 45
49+
- 46
50+
- 47
51+
VMs:
52+
ARISTA01T1:
53+
vlans:
54+
- 48
55+
vm_offset: 0
56+
ARISTA02T1:
57+
vlans:
58+
- 49
59+
vm_offset: 1
60+
ARISTA03T1:
61+
vlans:
62+
- 50
63+
vm_offset: 2
64+
ARISTA04T1:
65+
vlans:
66+
- 51
67+
vm_offset: 3
68+
69+
configuration_properties:
70+
common:
71+
swrole: leaf
72+
podset_number: 200
73+
tor_number: 16
74+
tor_subnet_number: 2
75+
max_tor_subnet_number: 16
76+
tor_subnet_size: 64
77+
spine_asn: 65534
78+
leaf_asn_start: 64600
79+
tor_asn_start: 65100
80+
failure_rate: 0
81+
nhipv4: 10.10.246.100
82+
nhipv6: FC0A::C9
83+
84+
configuration:
85+
ARISTA01T1:
86+
properties:
87+
- common
88+
bgp:
89+
asn: 64600
90+
peers:
91+
65100:
92+
- 10.0.0.56
93+
- FC00::71
94+
interfaces:
95+
Loopback0:
96+
ipv4: 100.1.0.29/32
97+
ipv6: 2064:100::1d/128
98+
Ethernet1:
99+
lacp: 1
100+
Port-Channel1:
101+
ipv4: 10.0.0.57/31
102+
ipv6: fc00::72/126
103+
bp_interface:
104+
ipv4: 10.10.246.29/24
105+
ipv6: fc0a::3a/64
106+
107+
ARISTA02T1:
108+
properties:
109+
- common
110+
bgp:
111+
asn: 64600
112+
peers:
113+
65100:
114+
- 10.0.0.58
115+
- FC00::75
116+
interfaces:
117+
Loopback0:
118+
ipv4: 100.1.0.30/32
119+
ipv6: 2064:100::1e/128
120+
Ethernet1:
121+
lacp: 1
122+
Port-Channel1:
123+
ipv4: 10.0.0.59/31
124+
ipv6: fc00::76/126
125+
bp_interface:
126+
ipv4: 10.10.246.30/24
127+
ipv6: fc0a::3d/64
128+
129+
ARISTA03T1:
130+
properties:
131+
- common
132+
bgp:
133+
asn: 64600
134+
peers:
135+
65100:
136+
- 10.0.0.60
137+
- FC00::79
138+
interfaces:
139+
Loopback0:
140+
ipv4: 100.1.0.31/32
141+
ipv6: 2064:100::1f/128
142+
Ethernet1:
143+
lacp: 1
144+
Port-Channel1:
145+
ipv4: 10.0.0.61/31
146+
ipv6: fc00::7a/126
147+
bp_interface:
148+
ipv4: 10.10.246.31/24
149+
ipv6: fc0a::3e/64
150+
151+
ARISTA04T1:
152+
properties:
153+
- common
154+
bgp:
155+
asn: 64600
156+
peers:
157+
65100:
158+
- 10.0.0.62
159+
- FC00::7D
160+
interfaces:
161+
Loopback0:
162+
ipv4: 100.1.0.32/32
163+
ipv6: 2064:100::20/128
164+
Ethernet1:
165+
lacp: 1
166+
Port-Channel1:
167+
ipv4: 10.0.0.63/31
168+
ipv6: fc00::7e/126
169+
bp_interface:
170+
ipv4: 10.10.246.32/24
171+
ipv6: fc0a::41/64

ansible/veos

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,4 @@ server_1
7272
server_2
7373

7474
[servers:vars]
75-
topologies=['t1', 't1-lag', 't1-64-lag', 't0', 'ptf32', 'ptf64', 't0-64', 't0-64-32', 't0-116']
75+
topologies=['t1', 't1-lag', 't1-64-lag', 't0', 't0-52', 'ptf32', 'ptf64', 't0-64', 't0-64-32', 't0-116']

0 commit comments

Comments
 (0)