Debian Codegraph @

ansible_collections/dellemc/enterprise_sonic/tests/regression/roles/sonic_vrrp/defaults/main.yml

raw symbols SCIP
1 ---
2 ansible_connection: httpapi
3 module_name: vrrp
4
5 sonic_vrrp_test_vars:
6 vrf1: "VrfReg1"
7 vrf2: "VrfReg2"
8 po1: "PortChannel100"
9 po2: "PortChannel101"
10 vlan1: "vlan100"
11 vlan2: "vlan101"
12
13 sonic_vrrp_preparation_task_input:
14 vrfs:
15 - name: '{{ sonic_vrrp_test_vars.vrf1 }}'
16 - name: '{{ sonic_vrrp_test_vars.vrf2 }}'
17 lag_interfaces:
18 - name: '{{ sonic_vrrp_test_vars.po1 }}'
19 - name: '{{ sonic_vrrp_test_vars.po2 }}'
20 vlans:
21 - vlan_id: 100
22 - vlan_id: 101
23 l3_interfaces:
24 - name: '{{ interface1 }}'
25 ipv4:
26 addresses:
27 - address: 80.1.1.1/24
28 ipv6:
29 addresses:
30 - address: 80::1/64
31 - name: '{{ interface2 }}'
32 ipv4:
33 addresses:
34 - address: 90.1.1.1/24
35 ipv6:
36 addresses:
37 - address: 90::1/64
38 - name: '{{ sonic_vrrp_test_vars.vlan1 }}'
39 ipv4:
40 addresses:
41 - address: 81.1.1.1/24
42 ipv6:
43 addresses:
44 - address: 81::1/64
45 - name: '{{ sonic_vrrp_test_vars.vlan2 }}'
46 ipv4:
47 addresses:
48 - address: 91.1.1.1/24
49 ipv6:
50 addresses:
51 - address: 91::1/64
52 - name: '{{ sonic_vrrp_test_vars.po1 }}'
53 ipv4:
54 addresses:
55 - address: 101.1.1.1/24
56 ipv6:
57 addresses:
58 - address: 101::1/64
59 - name: '{{ sonic_vrrp_test_vars.po2 }}'
60 ipv4:
61 addresses:
62 - address: 102.1.1.1/24
63 ipv6:
64 addresses:
65 - address: 102::1/64
66
67 sonic_vrrp_tests:
68 - name: test_case_01
69 description: Add VRRP and VRRP6 configuration
70 state: merged
71 input:
72 - name: '{{ interface1 }}'
73 group:
74 - virtual_router_id: 1
75 afi: ipv4
76 virtual_address:
77 - address: 80.1.1.3
78 - address: 80.1.1.4
79 preempt: true
80 preempt_delay: 10
81 - virtual_router_id: 10
82 afi: ipv6
83 virtual_address:
84 - address: 80::3
85 - address: 80::4
86 advertisement_interval: 4
87 priority: 10
88 - name: '{{ interface2 }}'
89 group:
90 - virtual_router_id: 5
91 afi: ipv4
92 virtual_address:
93 - address: 90.1.1.3
94 priority: 20
95 - virtual_router_id: 15
96 afi: ipv4
97 virtual_address:
98 - address: 90.1.1.4
99 preempt: true
100 preempt_delay: 10
101 priority: 20
102 - name: test_case_02
103 description: Modify VRRP and VRRP6 configuration
104 state: merged
105 input:
106 - name: '{{ interface1 }}'
107 group:
108 - virtual_router_id: 1
109 afi: ipv4
110 virtual_address:
111 - address: 80.1.1.5
112 preempt: false
113 preempt_delay: 20
114 use_v2_checksum: true
115 - virtual_router_id: 10
116 afi: ipv6
117 virtual_address:
118 - address: 80::4
119 advertisement_interval: 4
120 priority: 10
121 - virtual_router_id: 15
122 afi: ipv4
123 virtual_address:
124 - address: 80.1.1.6
125 track_interface:
126 - interface: '{{ interface5 }}'
127 priority_increment: 10
128 - name: '{{ interface2 }}'
129 group:
130 - virtual_router_id: 5
131 afi: ipv4
132 priority: 30
133 version: 3
134 - virtual_router_id: 10
135 afi: ipv6
136 virtual_address:
137 - address: 90::10
138 priority: 20
139 - name: '{{ sonic_vrrp_test_vars.vlan1 }}'
140 group:
141 - virtual_router_id: 12
142 afi: ipv6
143 virtual_address:
144 - address: 81::15
145 - address: 81::16
146 track_interface:
147 - interface: '{{ interface1 }}'
148 priority_increment: 15
149 - name: test_case_03
150 description: Update VRRP and VRRP6 configuration
151 state: merged
152 input:
153 - name: '{{ sonic_vrrp_test_vars.vlan1 }}'
154 group:
155 - virtual_router_id: 1
156 afi: ipv4
157 virtual_address:
158 - address: 81.1.1.4
159 - address: 81.1.1.5
160 preempt: false
161 track_interface:
162 - interface: '{{ interface5 }}'
163 priority_increment: 25
164 - name: '{{ sonic_vrrp_test_vars.po1 }}'
165 group:
166 - virtual_router_id: 25
167 afi: ipv4
168 virtual_address:
169 - address: 101.1.1.3
170 priority: 100
171 - virtual_router_id: 15
172 afi: ipv6
173 virtual_address:
174 - address: 101::3
175 - name: '{{ sonic_vrrp_test_vars.po2 }}'
176 group:
177 - virtual_router_id: 20
178 afi: ipv4
179 virtual_address:
180 - address: 102.1.1.3
181 - virtual_router_id: 15
182 afi: ipv6
183 virtual_address:
184 - address: 102::3
185 advertisement_interval: 10
186 - name: '{{ sonic_vrrp_test_vars.vlan2 }}'
187 group:
188 - virtual_router_id: 1
189 afi: ipv4
190 virtual_address:
191 - address: 91.1.1.3
192 - address: 91.1.1.5
193 preempt: true
194 preempt_delay: 10
195 - virtual_router_id: 2
196 afi: ipv6
197 virtual_address:
198 - address: 91::3
199 - address: 91::5
200 - address: 91::7
201 advertisement_interval: 15
202 - name: test_case_04
203 description: Delete VRRP and VRRP6 configuration
204 state: deleted
205 input:
206 - name: '{{ sonic_vrrp_test_vars.vlan1 }}'
207 group:
208 - virtual_router_id: 1
209 afi: ipv4
210 virtual_address:
211 - address: 81.1.1.5
212 preempt: false
213 - name: '{{ sonic_vrrp_test_vars.po2 }}'
214 group:
215 - virtual_router_id: 20
216 afi: ipv4
217 - virtual_router_id: 15
218 afi: ipv6
219 advertisement_interval: 10
220 virtual_address:
221 - address: 102::3
222 - name: '{{ interface1 }}'
223 group:
224 - virtual_router_id: 10
225 afi: ipv6
226 virtual_address:
227 - address: 80::3
228 - address: 80::4
229 advertisement_interval: 4
230 priority: 10
231 - name: '{{ interface2 }}'
232 group:
233 - virtual_router_id: 15
234 afi: ipv4
235 virtual_address:
236 - address: 90.1.1.4
237 preempt: true
238 preempt_delay: 10
239 - name: test_case_05
240 description: Delete VRRP and VRRP6 configuration
241 state: deleted
242 input:
243 - name: '{{ interface1 }}'
244 group:
245 - virtual_router_id: 1
246 afi: ipv4
247 virtual_address:
248 - address: 80.1.1.4
249 - virtual_router_id: 15
250 afi: ipv4
251 track_interface:
252 - interface: '{{ interface5 }}'
253 priority_increment: 10
254 - name: '{{ sonic_vrrp_test_vars.vlan1 }}'
255 group:
256 - virtual_router_id: 12
257 afi: ipv6
258 track_interface:
259 - interface: '{{ interface1 }}'
260 priority_increment: 15
261 - name: test_case_replace_01
262 description: Replace VRRP and VRRP6 configuration by VRRP/VRRP6 groups
263 state: replaced
264 input:
265 - name: '{{ sonic_vrrp_test_vars.vlan2 }}'
266 group:
267 - virtual_router_id: 2
268 afi: ipv6
269 preempt: false
270 - virtual_router_id: 10
271 afi: ipv4
272 version: 2
273 use_v2_checksum: true
274 - name: '{{ interface1 }}'
275 group:
276 - virtual_router_id: 15
277 afi: ipv4
278 - name: test_case_replace_02
279 description: Replace VRRP and VRRP6 configuration
280 state: replaced
281 input:
282 - name: '{{ interface1 }}'
283 group:
284 - virtual_router_id: 10
285 afi: ipv4
286 preempt: false
287 priority: 20
288 - virtual_router_id: 13
289 afi: ipv6
290 - name: test_case_over_01
291 description: Override VRRP and VRRP6 configuration
292 state: overridden
293 input:
294 - name: '{{ sonic_vrrp_test_vars.po1 }}'
295 group:
296 - virtual_router_id: 11
297 afi: ipv6
298 virtual_address:
299 - address: 101::11
300 track_interface:
301 - interface: '{{ sonic_vrrp_test_vars.po2 }}'
302 priority_increment: 10
303 - name: '{{ sonic_vrrp_test_vars.po2 }}'
304 group:
305 - virtual_router_id: 15
306 afi: ipv6
307 virtual_address:
308 - address: 102::15
309 - address: 102::16
310 advertisement_interval: 20
311 - name: '{{ sonic_vrrp_test_vars.vlan2 }}'
312 group:
313 - virtual_router_id: 20
314 afi: ipv4
315 virtual_address:
316 - address: 91.1.1.4
317 preempt: false
318 - name: test_case_06
319 description: Delete all VRRP and VRRP6 configurations for specified interface
320 state: deleted
321 input:
322 - name: '{{ sonic_vrrp_test_vars.po1 }}'
323 group: []
324 - name: '{{ sonic_vrrp_test_vars.po2 }}'
325 group: []
326 - name: test_case_07
327 description: Delete all VRRP and VRRP6 configurations
328 state: deleted
329 input: []