Debian Codegraph @

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

raw symbols SCIP
1 ---
2 ansible_connection: httpapi
3
4 vrf_1: VrfReg1
5 vrf_2: VrfReg2
6 vrf_3: VrfReg3
7 vrf_5: VrfReg5
8 vrf_6: VrfReg6
9 vrf_7: VrfReg7
10
11 bgp_as_1: 51
12 bgp_as_2: 52
13 bgp_as_3: 53
14 bgp_as_4: 54
15 bgp_as_5: 6553607
16 bgp_as_5_dot: "100.7"
17 bgp_as_6: 13107209
18 bgp_as_6_dot: "200.9"
19 bgp_as_7: 300
20 bgp_as_7_dot: "0.300"
21
22 preparations_tests:
23 init_vrf:
24 - "ip vrf {{ vrf_1 }}"
25 - "ip vrf {{ vrf_2 }}"
26 - "ip vrf {{ vrf_3 }}"
27 - "ip vrf {{ vrf_5 }}"
28 - "ip vrf {{ vrf_6 }}"
29 - "ip vrf {{ vrf_7 }}"
30
31 sonic_bgp_tests:
32 - name: test_case_01
33 description: Create BGP properties
34 state: merged
35 input:
36 - bgp_as: "{{ bgp_as_1 }}"
37 router_id: 110.2.2.4
38 rt_delay: 10
39 bestpath:
40 bandwidth: default_weight
41 - bgp_as: "{{ bgp_as_2 }}"
42 router_id: 110.2.2.5
43 rt_delay: 20
44 vrf_name: "{{ vrf_1 }}"
45 - bgp_as: "{{ bgp_as_5_dot }}"
46 router_id: 120.2.2.5
47 rt_delay: 50
48 vrf_name: "{{ vrf_5 }}"
49 - bgp_as: "{{ bgp_as_6 }}"
50 router_id: 130.2.2.6
51 rt_delay: 60
52 vrf_name: "{{ vrf_6 }}"
53 as_notation: "asdot"
54 - bgp_as: "{{ bgp_as_7 }}"
55 router_id: 140.2.2.7
56 rt_delay: 70
57 vrf_name: "{{ vrf_7 }}"
58 as_notation: "asdot+"
59
60 - name: test_case_02
61 description: Update BGP properties
62 state: merged
63 input:
64 - bgp_as: "{{ bgp_as_1 }}"
65 router_id: 110.2.2.30
66 rt_delay: 12
67 log_neighbor_changes: true
68 - bgp_as: "{{ bgp_as_2 }}"
69 router_id: 110.2.2.31
70 rt_delay: 22
71 vrf_name: "{{ vrf_1 }}"
72 log_neighbor_changes: true
73 - bgp_as: "{{ bgp_as_5_dot }}"
74 vrf_name: "{{ vrf_5 }}"
75 as_notation: "asdot"
76 - bgp_as: "{{ bgp_as_6 }}"
77 vrf_name: "{{ vrf_6 }}"
78 as_notation: "asdot+"
79 - bgp_as: "{{ bgp_as_7 }}"
80 vrf_name: "{{ vrf_7 }}"
81 as_notation: "asdot"
82
83 - name: test_case_03
84 description: Delete BGP properties
85 state: deleted
86 input:
87 - bgp_as: "{{ bgp_as_1 }}"
88 router_id: 110.2.2.30
89 rt_delay: 12
90 log_neighbor_changes: true
91 - bgp_as: "{{ bgp_as_2 }}"
92 router_id: 110.2.2.31
93 rt_delay: 22
94 vrf_name: "{{ vrf_1 }}"
95 log_neighbor_changes: true
96 - bgp_as: "{{ bgp_as_6 }}"
97 vrf_name: "{{ vrf_6 }}"
98 as_notation: "asdot+"
99 - bgp_as: "{{ bgp_as_7_dot }}"
100 vrf_name: "{{ vrf_7 }}"
101 as_notation: "asdot"
102
103 - name: test_case_04
104 description: Create bestpath BGP properties
105 state: merged
106 input:
107 - bgp_as: "{{ bgp_as_1 }}"
108 router_id: 110.2.2.4
109 rt_delay: 10
110 bestpath:
111 as_path:
112 confed: true
113 ignore: true
114 multipath_relax: true
115 multipath_relax_as_set: true
116 bandwidth: default_weight
117 compare_routerid: true
118 med:
119 confed: true
120 missing_as_worst: true
121 max_med:
122 on_startup:
123 timer: 889
124 med_val: 8854
125 graceful_restart:
126 enabled: true
127 restart_time: 3600
128 preserve_fw_state: false
129 - bgp_as: "{{ bgp_as_2 }}"
130 router_id: 110.2.2.5
131 rt_delay: 20
132 vrf_name: "{{ vrf_1 }}"
133 bestpath:
134 as_path:
135 confed: true
136 ignore: true
137 multipath_relax: true
138 multipath_relax_as_set: true
139 bandwidth: ignore_weight
140 compare_routerid: true
141 med:
142 confed: true
143 missing_as_worst: true
144 max_med:
145 on_startup:
146 timer: 556
147 med_val: 5567
148 graceful_restart:
149 restart_time: 1
150
151 - name: test_case_05
152 description: First update of bestpath BGP properties
153 state: merged
154 input:
155 - bgp_as: "{{ bgp_as_1 }}"
156 router_id: 110.2.2.51
157 rt_delay: 50
158 bestpath:
159 as_path:
160 confed: false
161 ignore: false
162 bandwidth: ignore_weight
163 compare_routerid: false
164 med:
165 confed: false
166 max_med:
167 on_startup:
168 timer: 776
169 med_val: 7768
170 graceful_restart:
171 restart_time: 3400
172 preserve_fw_state: true
173 - bgp_as: "{{ bgp_as_2 }}"
174 router_id: 110.2.2.52
175 rt_delay: 100
176 vrf_name: "{{ vrf_1 }}"
177 bestpath:
178 as_path:
179 multipath_relax: false
180 multipath_relax_as_set: false
181 bandwidth: default_weight
182 compare_routerid: false
183 med:
184 missing_as_worst: false
185 max_med:
186 on_startup:
187 timer: 445
188 med_val: 4458
189 graceful_restart:
190 enabled: true
191 preserve_fw_state: false
192 stale_routes_time: 1000
193
194 - name: test_case_06
195 description: Second update of bestpath BGP properties
196 state: merged
197 input:
198 - bgp_as: "{{ bgp_as_1 }}"
199 router_id: 110.2.2.51
200 bestpath:
201 as_path:
202 confed: true
203 ignore: true
204 bandwidth: skip_missing
205 compare_routerid: true
206 med:
207 confed: true
208 graceful_restart:
209 enabled: false
210 - bgp_as: "{{ bgp_as_2 }}"
211 router_id: 110.2.2.52
212 vrf_name: "{{ vrf_1 }}"
213 bestpath:
214 as_path:
215 multipath_relax: true
216 multipath_relax_as_set: true
217 bandwidth: skip_missing
218 compare_routerid: true
219 med:
220 missing_as_worst: true
221
222 - name: test_case_07
223 description: Delete BGP properties
224 state: deleted
225 input:
226 - bgp_as: "{{ bgp_as_1 }}"
227 bestpath:
228 as_path:
229 confed: false
230 ignore: false
231 bandwidth: skip_missing
232 compare_routerid: false
233 med:
234 confed: false
235 max_med:
236 on_startup:
237 timer: 889
238 med_val: 8854
239 graceful_restart:
240 enabled: false
241 restart_time: 3400
242 - bgp_as: "{{ bgp_as_2 }}"
243 vrf_name: "{{ vrf_1 }}"
244 bestpath:
245 as_path:
246 multipath_relax: true
247 multipath_relax_as_set: false
248 compare_routerid: true
249 med:
250 missing_as_worst: false
251 max_med:
252 on_startup:
253 timer: 889
254 med_val: 8854
255 graceful_restart:
256 enabled: true
257 restart_time: 1
258 stale_routes_time: 1000
259 preserve_fw_state: false
260
261 - name: test_case_08
262 description: Update bestpath BGP properties
263 state: merged
264 input:
265 - bgp_as: "{{ bgp_as_1 }}"
266 router_id: 110.2.2.51
267 bestpath:
268 as_path:
269 confed: true
270 ignore: true
271 bandwidth: skip_missing
272 compare_routerid: true
273 med:
274 confed: true
275 graceful_restart:
276 enabled: true
277 restart_time: 5
278 preserve_fw_state: true
279 - bgp_as: "{{ bgp_as_2 }}"
280 router_id: 110.2.2.52
281 vrf_name: "{{ vrf_1 }}"
282 bestpath:
283 as_path:
284 multipath_relax: true
285 multipath_relax_as_set: true
286 bandwidth: ignore_weight
287 compare_routerid: true
288 med:
289 missing_as_worst: true
290 graceful_restart:
291 stale_routes_time: 2000
292 - bgp_as: "{{ bgp_as_3 }}"
293 router_id: 120.2.2.52
294 vrf_name: "{{ vrf_2 }}"
295 bestpath:
296 as_path:
297 multipath_relax: true
298 multipath_relax_as_set: true
299 bandwidth: default_weight
300 compare_routerid: true
301 med:
302 missing_as_worst: true
303 graceful_restart:
304 restart_time: 500
305
306 - name: test_case_09
307 description: Delete entire BGP routing instance
308 state: deleted
309 input:
310 - bgp_as: "{{ bgp_as_2 }}"
311 vrf_name: "{{ vrf_1 }}"
312
313 - name: test_case_10
314 description: Replace BGP properties
315 state: replaced
316 input:
317 - bgp_as: "{{ bgp_as_1 }}"
318 router_id: 110.2.2.51
319 rt_delay: 15
320 bestpath:
321 as_path:
322 confed: true
323 bandwidth: default_weight
324 compare_routerid: false
325 med:
326 always_compare_med: true
327 max_med:
328 on_startup:
329 timer: 890
330 med_val: 8854
331 graceful_restart:
332 enabled: false
333 preserve_fw_state: true
334 - bgp_as: "{{ bgp_as_2 }}"
335 vrf_name: "{{ vrf_1 }}"
336 router_id: 110.2.2.52
337 bestpath:
338 as_path:
339 confed: true
340 med:
341 confed: true
342 timers:
343 holdtime: 90
344 keepalive_interval: 30
345 graceful_restart:
346 enabled: true
347 restart_time: 500
348 - bgp_as: "{{ bgp_as_5 }}"
349 router_id: 120.2.2.155
350 vrf_name: "{{ vrf_5 }}"
351 as_notation: "asdot+"
352 bestpath:
353 bandwidth: ignore_weight
354 - bgp_as: "{{ bgp_as_6_dot }}"
355 vrf_name: "{{ vrf_6 }}"
356 bestpath:
357 bandwidth: default_weight
358
359 - name: test_case_11
360 description: Override BGP properties
361 state: overridden
362 input:
363 - bgp_as: "{{ bgp_as_1 }}"
364 router_id: 110.2.2.51
365 bestpath:
366 as_path:
367 confed: true
368 bandwidth: ignore_weight
369 compare_routerid: true
370 med:
371 confed: true
372 timers:
373 holdtime: 90
374 keepalive_interval: 30
375 graceful_restart:
376 enabled: true
377 - bgp_as: "{{ bgp_as_3 }}"
378 vrf_name: "{{ vrf_3 }}"
379 router_id: 110.2.2.52
380 rt_delay: 15
381 bestpath:
382 as_path:
383 multipath_relax: true
384 multipath_relax_as_set: true
385 med:
386 missing_as_worst: true
387 graceful_restart:
388 enabled: false
389 preserve_fw_state: false
390 stale_routes_time: 200
391 - bgp_as: "{{ bgp_as_5 }}"
392 vrf_name: "{{ vrf_5 }}"
393 - bgp_as: "{{ bgp_as_7_dot }}"
394 router_id: 140.2.2.177
395 vrf_name: "{{ vrf_7 }}"
396 as_notation: "asdot+"
397
398 - name: test_case_12
399 description: Delete all BGP properties
400 state: deleted
401 input: []