Debian Codegraph @

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

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