Debian Codegraph @

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

raw symbols SCIP
1 ---
2 ansible_connection: httpapi
3
4 sonic_ospfv3_test_vars:
5 vrf1: "VrfReg1"
6 vrf2: "VrfReg2"
7
8 sonic_ospfv3_preparations_tests:
9 init_route_map:
10 - route-map rmap_reg1 permit 11
11 - route-map rmap_reg2 permit 11
12 vrfs:
13 - name: '{{ sonic_ospfv3_test_vars.vrf1 }}'
14 - name: '{{ sonic_ospfv3_test_vars.vrf2 }}'
15
16 sonic_ospfv3_tests:
17
18 - name: test_case_01
19 description: Add OSPFv3 configuration
20 state: merged
21 input:
22 - vrf_name: 'default'
23 router_id: "10.10.10.10"
24 distance:
25 external: 20
26 redistribute:
27 - protocol: "kernel"
28 metric: 15
29 metric_type: 2
30 route_map: "rmap_reg1"
31 - protocol: "default_route"
32 always: true
33 metric: 10
34 graceful_restart:
35 grace_period: 100
36 enable: true
37 helper:
38 enable: true
39 planned_only: true
40 advertise_router_id:
41 - '1.1.1.1'
42 - '2.2.2.2'
43 - vrf_name: '{{ sonic_ospfv3_test_vars.vrf1 }}'
44 timers:
45 throttle_spf:
46 delay_time: 10
47 initial_hold_time: 20
48 maximum_hold_time: 50
49 redistribute:
50 - protocol: "bgp"
51 metric: 15
52 metric_type: 2
53 route_map: "rmap_reg1"
54 auto_cost_reference_bandwidth: 155783
55 graceful_restart:
56 helper:
57 enable: true
58 planned_only: true
59 strict_lsa_checking: true
60 supported_grace_time: 30
61 log_adjacency_changes: "detail"
62
63 - name: test_case_02
64 description: Add OSPFv3 configuration for Vrfs
65 state: merged
66 input:
67 - vrf_name: '{{ sonic_ospfv3_test_vars.vrf2 }}'
68 write_multiplier: 20
69 router_id: "20.20.20.20"
70 distance:
71 all: 30
72 redistribute:
73 - protocol: 'default_route'
74 always: true
75 metric: 20
76 metric_type: 1
77 - protocol: "kernel"
78 metric: 87
79 metric_type: 1
80 route_map: "rmap_reg2"
81
82 - name: test_case_del_01
83 description: Delete OSPFv3 configuration
84 state: deleted
85 input:
86 - vrf_name: '{{ sonic_ospfv3_test_vars.vrf2 }}'
87 router_id: "20.20.20.20"
88 - vrf_name: '{{ sonic_ospfv3_test_vars.vrf1 }}'
89 redistribute:
90 - protocol: "bgp"
91 graceful_restart:
92 helper:
93 enable: true
94 supported_grace_time: 30
95 - vrf_name: 'default'
96 graceful_restart:
97 enable: true
98 grace_period: 100
99 helper:
100 enable: true
101 planned_only: true
102 advertise_router_id:
103 - '1.1.1.1'
104 - '2.2.2.2'
105 redistribute:
106 - protocol: "kernel"
107 metric: 15
108 metric_type: 2
109 route_map: "rmap_reg2"
110 - protocol: "default_route"
111 always: true
112
113 - name: test_case_del_02
114 description: Delete entire OSPFv3 configuration for Vrf1 and Vrf2
115 state: deleted
116 input:
117 - vrf_name: '{{ sonic_ospfv3_test_vars.vrf1 }}'
118 - vrf_name: '{{ sonic_ospfv3_test_vars.vrf2 }}'
119
120 - name: test_case_03
121 description: Add OSPFv3 configuration for Vrf2 and default
122 state: merged
123 input:
124 - vrf_name: '{{ sonic_ospfv3_test_vars.vrf2 }}'
125 write_multiplier: 20
126 timers:
127 throttle_spf:
128 delay_time: 10
129 initial_hold_time: 20
130 maximum_hold_time: 50
131 redistribute:
132 - protocol: "bgp"
133 metric: 15
134 metric_type: 2
135 route_map: "rmap_reg1"
136 graceful_restart:
137 helper:
138 enable: false
139 planned_only: false
140 - vrf_name: 'default'
141 redistribute:
142 - protocol: "kernel"
143 metric: 15
144 metric_type: 2
145 route_map: "rmap_reg2"
146 graceful_restart:
147 helper:
148 enable: false
149 maximum_paths: 200
150
151 - name: test_case_replace_01
152 description: Replace OSPFv3 configuration
153 state: replaced
154 input:
155 - vrf_name: '{{ sonic_ospfv3_test_vars.vrf2 }}'
156 write_multiplier: 20
157 timers:
158 throttle_spf:
159 delay_time: 10
160 initial_hold_time: 20
161 maximum_hold_time: 50
162 redistribute:
163 - protocol: "bgp"
164 metric: 15
165 metric_type: 2
166 route_map: "rmap_reg1"
167 auto_cost_reference_bandwidth: 234823
168 graceful_restart:
169 helper:
170 enable: true
171 planned_only: true
172 strict_lsa_checking: true
173 supported_grace_time: 70
174 log_adjacency_changes: "brief"
175 - vrf_name: '{{ sonic_ospfv3_test_vars.vrf1 }}'
176 timers:
177 throttle_spf:
178 delay_time: 10
179 initial_hold_time: 20
180 maximum_hold_time: 50
181 redistribute:
182 - protocol: "connected"
183 metric: 15
184 metric_type: 2
185 route_map: "rmap_reg1"
186 log_adjacency_changes: "brief"
187
188 - name: test_case_replace_02
189 description: Replace OSPFv3 configuration with existing same configuration
190 state: replaced
191 input:
192 - vrf_name: '{{ sonic_ospfv3_test_vars.vrf1 }}'
193 timers:
194 throttle_spf:
195 delay_time: 10
196 initial_hold_time: 20
197 maximum_hold_time: 50
198 redistribute:
199 - protocol: "connected"
200 metric: 15
201 metric_type: 2
202 route_map: "rmap_reg1"
203 auto_cost_reference_bandwidth: 334251
204 graceful_restart:
205 helper:
206 enable: false
207 planned_only: false
208 strict_lsa_checking: true
209 log_adjacency_changes: "detail"
210 - vrf_name: 'default'
211 router_id: "10.10.10.10"
212 graceful_restart:
213 helper:
214 enable: true
215
216 - name: test_case_over_01
217 description: Override OSPFv3 configuration
218 state: overridden
219 input:
220 - vrf_name: '{{ sonic_ospfv3_test_vars.vrf1 }}'
221 timers:
222 throttle_spf:
223 delay_time: 10
224 initial_hold_time: 20
225 maximum_hold_time: 50
226 redistribute:
227 - protocol: "connected"
228 metric: 15
229 metric_type: 2
230 route_map: "rmap_reg1"
231 auto_cost_reference_bandwidth: 222344
232 graceful_restart:
233 helper:
234 enable: true
235 planned_only: true
236 log_adjacency_changes: "brief"
237 - vrf_name: 'default'
238 write_multiplier: 20
239 timers:
240 throttle_spf:
241 delay_time: 10
242 initial_hold_time: 20
243 maximum_hold_time: 50
244 redistribute:
245 - protocol: "bgp"
246 metric: 15
247 metric_type: 2
248 route_map: "rmap_reg1"
249
250 - name: test_case_over_02
251 description: Override OSPFv3 configuration with existing same configuration
252 state: overridden
253 input:
254 - vrf_name: 'default'
255 write_multiplier: 20
256 timers:
257 throttle_spf:
258 delay_time: 10
259 initial_hold_time: 20
260 maximum_hold_time: 50
261 redistribute:
262 - protocol: "bgp"
263 metric: 15
264 metric_type: 2
265 route_map: "rmap_reg1"
266 graceful_restart:
267 helper:
268 enable: true
269 maximum_paths: 100
270 - vrf_name: '{{ sonic_ospfv3_test_vars.vrf2 }}'
271 write_multiplier: 30
272 timers:
273 throttle_spf:
274 delay_time: 10
275 initial_hold_time: 20
276 maximum_hold_time: 50
277 redistribute:
278 - protocol: "bgp"
279 metric: 15
280 metric_type: 2
281 route_map: "rmap_reg1"
282 auto_cost_reference_bandwidth: 11111
283 graceful_restart:
284 helper:
285 enable: false
286 planned_only: true
287 strict_lsa_checking: true
288 supported_grace_time: 55
289 log_adjacency_changes: "detail"
290
291 - name: test_case_del_all
292 description: Delete all OSPFv3 configuration
293 state: deleted
294 input: []