Debian Codegraph @

ansible_collections/dellemc/enterprise_sonic/docs/dellemc.enterprise_sonic.sonic_ospfv3_module.rst

raw
1 .. _dellemc.enterprise_sonic.sonic_ospfv3_module:
2
3
4 *************************************
5 dellemc.enterprise_sonic.sonic_ospfv3
6 *************************************
7
8 **Configure global OSPFv3 protocol settings on SONiC.**
9
10
11 Version added: 3.1.0
12
13 .. contents::
14 :local:
15 :depth: 1
16
17
18 Synopsis
19 --------
20 - This module provides configuration management of global OSPFv3 parameters on devices running SONiC.
21 - Configure VRF instance before configuring OSPFv3 in a VRF.
22
23
24
25
26 Parameters
27 ----------
28
29 .. raw:: html
30
31 <table border=0 cellpadding=0 class="documentation-table">
32 <tr>
33 <th colspan="4">Parameter</th>
34 <th>Choices/<font color="blue">Defaults</font></th>
35 <th width="100%">Comments</th>
36 </tr>
37 <tr>
38 <td colspan="4">
39 <div class="ansibleOptionAnchor" id="parameter-"></div>
40 <b>config</b>
41 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
42 <div style="font-size: small">
43 <span style="color: purple">list</span>
44 / <span style="color: purple">elements=dictionary</span>
45 </div>
46 </td>
47 <td>
48 </td>
49 <td>
50 <div>Specifies the OSPFv3 related configuration.</div>
51 </td>
52 </tr>
53 <tr>
54 <td class="elbow-placeholder"></td>
55 <td colspan="3">
56 <div class="ansibleOptionAnchor" id="parameter-"></div>
57 <b>auto_cost_reference_bandwidth</b>
58 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
59 <div style="font-size: small">
60 <span style="color: purple">integer</span>
61 </div>
62 </td>
63 <td>
64 </td>
65 <td>
66 <div>Configure interface auto cost reference bandwidth (1 to 4294967).</div>
67 </td>
68 </tr>
69 <tr>
70 <td class="elbow-placeholder"></td>
71 <td colspan="3">
72 <div class="ansibleOptionAnchor" id="parameter-"></div>
73 <b>distance</b>
74 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
75 <div style="font-size: small">
76 <span style="color: purple">dictionary</span>
77 </div>
78 </td>
79 <td>
80 </td>
81 <td>
82 <div>Configure route administrative distance.</div>
83 </td>
84 </tr>
85 <tr>
86 <td class="elbow-placeholder"></td>
87 <td class="elbow-placeholder"></td>
88 <td colspan="2">
89 <div class="ansibleOptionAnchor" id="parameter-"></div>
90 <b>all</b>
91 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
92 <div style="font-size: small">
93 <span style="color: purple">integer</span>
94 </div>
95 </td>
96 <td>
97 </td>
98 <td>
99 <div>Distance value for all type of routes (1 to 255).</div>
100 </td>
101 </tr>
102 <tr>
103 <td class="elbow-placeholder"></td>
104 <td class="elbow-placeholder"></td>
105 <td colspan="2">
106 <div class="ansibleOptionAnchor" id="parameter-"></div>
107 <b>external</b>
108 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
109 <div style="font-size: small">
110 <span style="color: purple">integer</span>
111 </div>
112 </td>
113 <td>
114 </td>
115 <td>
116 <div>External routes (1 to 255).</div>
117 </td>
118 </tr>
119 <tr>
120 <td class="elbow-placeholder"></td>
121 <td class="elbow-placeholder"></td>
122 <td colspan="2">
123 <div class="ansibleOptionAnchor" id="parameter-"></div>
124 <b>inter_area</b>
125 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
126 <div style="font-size: small">
127 <span style="color: purple">integer</span>
128 </div>
129 </td>
130 <td>
131 </td>
132 <td>
133 <div>Inter area routes (1 to 255).</div>
134 </td>
135 </tr>
136 <tr>
137 <td class="elbow-placeholder"></td>
138 <td class="elbow-placeholder"></td>
139 <td colspan="2">
140 <div class="ansibleOptionAnchor" id="parameter-"></div>
141 <b>intra_area</b>
142 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
143 <div style="font-size: small">
144 <span style="color: purple">integer</span>
145 </div>
146 </td>
147 <td>
148 </td>
149 <td>
150 <div>Intra area routes (1 to 255).</div>
151 </td>
152 </tr>
153
154 <tr>
155 <td class="elbow-placeholder"></td>
156 <td colspan="3">
157 <div class="ansibleOptionAnchor" id="parameter-"></div>
158 <b>graceful_restart</b>
159 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
160 <div style="font-size: small">
161 <span style="color: purple">dictionary</span>
162 </div>
163 </td>
164 <td>
165 </td>
166 <td>
167 <div>OSPFv3 non stop forwarding (NSF) also known as OSPFv3 Graceful Restart.</div>
168 </td>
169 </tr>
170 <tr>
171 <td class="elbow-placeholder"></td>
172 <td class="elbow-placeholder"></td>
173 <td colspan="2">
174 <div class="ansibleOptionAnchor" id="parameter-"></div>
175 <b>enable</b>
176 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
177 <div style="font-size: small">
178 <span style="color: purple">boolean</span>
179 </div>
180 </td>
181 <td>
182 <ul style="margin: 0; padding: 0"><b>Choices:</b>
183 <li>no</li>
184 <li>yes</li>
185 </ul>
186 </td>
187 <td>
188 <div>Enable graceful restart.</div>
189 </td>
190 </tr>
191 <tr>
192 <td class="elbow-placeholder"></td>
193 <td class="elbow-placeholder"></td>
194 <td colspan="2">
195 <div class="ansibleOptionAnchor" id="parameter-"></div>
196 <b>grace_period</b>
197 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
198 <div style="font-size: small">
199 <span style="color: purple">integer</span>
200 </div>
201 </td>
202 <td>
203 </td>
204 <td>
205 <div>Maximum length of the grace period (1 to 1800).</div>
206 </td>
207 </tr>
208 <tr>
209 <td class="elbow-placeholder"></td>
210 <td class="elbow-placeholder"></td>
211 <td colspan="2">
212 <div class="ansibleOptionAnchor" id="parameter-"></div>
213 <b>helper</b>
214 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
215 <div style="font-size: small">
216 <span style="color: purple">dictionary</span>
217 </div>
218 </td>
219 <td>
220 </td>
221 <td>
222 <div>OSPFv3 GR Helper.</div>
223 </td>
224 </tr>
225 <tr>
226 <td class="elbow-placeholder"></td>
227 <td class="elbow-placeholder"></td>
228 <td class="elbow-placeholder"></td>
229 <td colspan="1">
230 <div class="ansibleOptionAnchor" id="parameter-"></div>
231 <b>advertise_router_id</b>
232 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
233 <div style="font-size: small">
234 <span style="color: purple">list</span>
235 / <span style="color: purple">elements=string</span>
236 </div>
237 </td>
238 <td>
239 </td>
240 <td>
241 <div>Advertising Router ID.</div>
242 </td>
243 </tr>
244 <tr>
245 <td class="elbow-placeholder"></td>
246 <td class="elbow-placeholder"></td>
247 <td class="elbow-placeholder"></td>
248 <td colspan="1">
249 <div class="ansibleOptionAnchor" id="parameter-"></div>
250 <b>enable</b>
251 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
252 <div style="font-size: small">
253 <span style="color: purple">boolean</span>
254 </div>
255 </td>
256 <td>
257 <ul style="margin: 0; padding: 0"><b>Choices:</b>
258 <li>no</li>
259 <li>yes</li>
260 </ul>
261 </td>
262 <td>
263 <div>Enable Helper support.</div>
264 </td>
265 </tr>
266 <tr>
267 <td class="elbow-placeholder"></td>
268 <td class="elbow-placeholder"></td>
269 <td class="elbow-placeholder"></td>
270 <td colspan="1">
271 <div class="ansibleOptionAnchor" id="parameter-"></div>
272 <b>planned_only</b>
273 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
274 <div style="font-size: small">
275 <span style="color: purple">boolean</span>
276 </div>
277 </td>
278 <td>
279 <ul style="margin: 0; padding: 0"><b>Choices:</b>
280 <li>no</li>
281 <li>yes</li>
282 </ul>
283 </td>
284 <td>
285 <div>Supported only planned restart.</div>
286 </td>
287 </tr>
288 <tr>
289 <td class="elbow-placeholder"></td>
290 <td class="elbow-placeholder"></td>
291 <td class="elbow-placeholder"></td>
292 <td colspan="1">
293 <div class="ansibleOptionAnchor" id="parameter-"></div>
294 <b>strict_lsa_checking</b>
295 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
296 <div style="font-size: small">
297 <span style="color: purple">boolean</span>
298 </div>
299 </td>
300 <td>
301 <ul style="margin: 0; padding: 0"><b>Choices:</b>
302 <li>no</li>
303 <li>yes</li>
304 </ul>
305 </td>
306 <td>
307 <div>Enable strict LSA check.</div>
308 </td>
309 </tr>
310 <tr>
311 <td class="elbow-placeholder"></td>
312 <td class="elbow-placeholder"></td>
313 <td class="elbow-placeholder"></td>
314 <td colspan="1">
315 <div class="ansibleOptionAnchor" id="parameter-"></div>
316 <b>supported_grace_time</b>
317 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
318 <div style="font-size: small">
319 <span style="color: purple">integer</span>
320 </div>
321 </td>
322 <td>
323 </td>
324 <td>
325 <div>Supported grace interval (10 to 1800).</div>
326 </td>
327 </tr>
328
329
330 <tr>
331 <td class="elbow-placeholder"></td>
332 <td colspan="3">
333 <div class="ansibleOptionAnchor" id="parameter-"></div>
334 <b>log_adjacency_changes</b>
335 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
336 <div style="font-size: small">
337 <span style="color: purple">string</span>
338 </div>
339 </td>
340 <td>
341 <ul style="margin: 0; padding: 0"><b>Choices:</b>
342 <li>brief</li>
343 <li>detail</li>
344 </ul>
345 </td>
346 <td>
347 <div>Enable OSPFv3 adjacency state logs.</div>
348 </td>
349 </tr>
350 <tr>
351 <td class="elbow-placeholder"></td>
352 <td colspan="3">
353 <div class="ansibleOptionAnchor" id="parameter-"></div>
354 <b>maximum_paths</b>
355 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
356 <div style="font-size: small">
357 <span style="color: purple">integer</span>
358 </div>
359 </td>
360 <td>
361 </td>
362 <td>
363 <div>Configure maximum number of multiple paths for ECMP support (1 to 256).</div>
364 </td>
365 </tr>
366 <tr>
367 <td class="elbow-placeholder"></td>
368 <td colspan="3">
369 <div class="ansibleOptionAnchor" id="parameter-"></div>
370 <b>redistribute</b>
371 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
372 <div style="font-size: small">
373 <span style="color: purple">list</span>
374 / <span style="color: purple">elements=dictionary</span>
375 </div>
376 </td>
377 <td>
378 </td>
379 <td>
380 <div>Configure route redistribution into OSPFv3 router.</div>
381 </td>
382 </tr>
383 <tr>
384 <td class="elbow-placeholder"></td>
385 <td class="elbow-placeholder"></td>
386 <td colspan="2">
387 <div class="ansibleOptionAnchor" id="parameter-"></div>
388 <b>always</b>
389 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
390 <div style="font-size: small">
391 <span style="color: purple">boolean</span>
392 </div>
393 </td>
394 <td>
395 <ul style="margin: 0; padding: 0"><b>Choices:</b>
396 <li>no</li>
397 <li>yes</li>
398 </ul>
399 </td>
400 <td>
401 <div>Enable default route redistribution into OSPFv3 always.</div>
402 <div>Only available for <em>protocol=default_route</em>.</div>
403 </td>
404 </tr>
405 <tr>
406 <td class="elbow-placeholder"></td>
407 <td class="elbow-placeholder"></td>
408 <td colspan="2">
409 <div class="ansibleOptionAnchor" id="parameter-"></div>
410 <b>metric</b>
411 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
412 <div style="font-size: small">
413 <span style="color: purple">integer</span>
414 </div>
415 </td>
416 <td>
417 </td>
418 <td>
419 <div>Metric value for redistributed routes (0 to 16777214).</div>
420 </td>
421 </tr>
422 <tr>
423 <td class="elbow-placeholder"></td>
424 <td class="elbow-placeholder"></td>
425 <td colspan="2">
426 <div class="ansibleOptionAnchor" id="parameter-"></div>
427 <b>metric_type</b>
428 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
429 <div style="font-size: small">
430 <span style="color: purple">integer</span>
431 </div>
432 </td>
433 <td>
434 <ul style="margin: 0; padding: 0"><b>Choices:</b>
435 <li>1</li>
436 <li>2</li>
437 </ul>
438 </td>
439 <td>
440 <div>Metric type for redistributed routes.</div>
441 </td>
442 </tr>
443 <tr>
444 <td class="elbow-placeholder"></td>
445 <td class="elbow-placeholder"></td>
446 <td colspan="2">
447 <div class="ansibleOptionAnchor" id="parameter-"></div>
448 <b>protocol</b>
449 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
450 <div style="font-size: small">
451 <span style="color: purple">string</span>
452 / <span style="color: red">required</span>
453 </div>
454 </td>
455 <td>
456 <ul style="margin: 0; padding: 0"><b>Choices:</b>
457 <li>bgp</li>
458 <li>connected</li>
459 <li>default_route</li>
460 <li>kernel</li>
461 <li>static</li>
462 </ul>
463 </td>
464 <td>
465 <div>Configure the type of protocol to redistribute into OSPFv3.</div>
466 <div>Deleting <em>protocol</em> alone will also delete all the other configuration under <em>redistribute</em>.</div>
467 <div><code>bgp</code> - Border Gateway Protocol.</div>
468 <div><code>connected</code> - Directly connected or attached subnets and hosts.</div>
469 <div><code>default_route</code> - Default routes.</div>
470 <div><code>kernel</code> - Kernel routes other than FRR installed routes.</div>
471 <div><code>static</code> - Statically configured routes.</div>
472 </td>
473 </tr>
474 <tr>
475 <td class="elbow-placeholder"></td>
476 <td class="elbow-placeholder"></td>
477 <td colspan="2">
478 <div class="ansibleOptionAnchor" id="parameter-"></div>
479 <b>route_map</b>
480 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
481 <div style="font-size: small">
482 <span style="color: purple">string</span>
483 </div>
484 </td>
485 <td>
486 </td>
487 <td>
488 <div>Route map to filter redistributed routes.</div>
489 <div>Configure route map before.</div>
490 </td>
491 </tr>
492
493 <tr>
494 <td class="elbow-placeholder"></td>
495 <td colspan="3">
496 <div class="ansibleOptionAnchor" id="parameter-"></div>
497 <b>router_id</b>
498 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
499 <div style="font-size: small">
500 <span style="color: purple">string</span>
501 </div>
502 </td>
503 <td>
504 </td>
505 <td>
506 <div>Configure OSPFv3 router identifier (A.B.C.D).</div>
507 </td>
508 </tr>
509 <tr>
510 <td class="elbow-placeholder"></td>
511 <td colspan="3">
512 <div class="ansibleOptionAnchor" id="parameter-"></div>
513 <b>timers</b>
514 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
515 <div style="font-size: small">
516 <span style="color: purple">dictionary</span>
517 </div>
518 </td>
519 <td>
520 </td>
521 <td>
522 <div>Configures router timers.</div>
523 </td>
524 </tr>
525 <tr>
526 <td class="elbow-placeholder"></td>
527 <td class="elbow-placeholder"></td>
528 <td colspan="2">
529 <div class="ansibleOptionAnchor" id="parameter-"></div>
530 <b>lsa_min_arrival</b>
531 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
532 <div style="font-size: small">
533 <span style="color: purple">integer</span>
534 </div>
535 </td>
536 <td>
537 </td>
538 <td>
539 <div>LSA minimum arrival timer (0 to 600000).</div>
540 </td>
541 </tr>
542 <tr>
543 <td class="elbow-placeholder"></td>
544 <td class="elbow-placeholder"></td>
545 <td colspan="2">
546 <div class="ansibleOptionAnchor" id="parameter-"></div>
547 <b>throttle_spf</b>
548 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
549 <div style="font-size: small">
550 <span style="color: purple">dictionary</span>
551 </div>
552 </td>
553 <td>
554 </td>
555 <td>
556 <div>OSPFv3 SPF timers.</div>
557 <div><em>delay_time</em>, <em>initial_hold_time</em> and <em>maximum_hold_time</em> are required together.</div>
558 </td>
559 </tr>
560 <tr>
561 <td class="elbow-placeholder"></td>
562 <td class="elbow-placeholder"></td>
563 <td class="elbow-placeholder"></td>
564 <td colspan="1">
565 <div class="ansibleOptionAnchor" id="parameter-"></div>
566 <b>delay_time</b>
567 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
568 <div style="font-size: small">
569 <span style="color: purple">integer</span>
570 </div>
571 </td>
572 <td>
573 </td>
574 <td>
575 <div>SPF delay time in milliseconds (0 to 600000).</div>
576 </td>
577 </tr>
578 <tr>
579 <td class="elbow-placeholder"></td>
580 <td class="elbow-placeholder"></td>
581 <td class="elbow-placeholder"></td>
582 <td colspan="1">
583 <div class="ansibleOptionAnchor" id="parameter-"></div>
584 <b>initial_hold_time</b>
585 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
586 <div style="font-size: small">
587 <span style="color: purple">integer</span>
588 </div>
589 </td>
590 <td>
591 </td>
592 <td>
593 <div>SPF initial hold time in milliseconds (0 to 600000).</div>
594 </td>
595 </tr>
596 <tr>
597 <td class="elbow-placeholder"></td>
598 <td class="elbow-placeholder"></td>
599 <td class="elbow-placeholder"></td>
600 <td colspan="1">
601 <div class="ansibleOptionAnchor" id="parameter-"></div>
602 <b>maximum_hold_time</b>
603 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
604 <div style="font-size: small">
605 <span style="color: purple">integer</span>
606 </div>
607 </td>
608 <td>
609 </td>
610 <td>
611 <div>SPF maximum hold time in milliseconds (0 to 600000).</div>
612 </td>
613 </tr>
614
615
616 <tr>
617 <td class="elbow-placeholder"></td>
618 <td colspan="3">
619 <div class="ansibleOptionAnchor" id="parameter-"></div>
620 <b>vrf_name</b>
621 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
622 <div style="font-size: small">
623 <span style="color: purple">string</span>
624 </div>
625 </td>
626 <td>
627 <b>Default:</b><br/><div style="color: blue">"default"</div>
628 </td>
629 <td>
630 <div>Specifies the vrf name.</div>
631 </td>
632 </tr>
633 <tr>
634 <td class="elbow-placeholder"></td>
635 <td colspan="3">
636 <div class="ansibleOptionAnchor" id="parameter-"></div>
637 <b>write_multiplier</b>
638 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
639 <div style="font-size: small">
640 <span style="color: purple">integer</span>
641 </div>
642 </td>
643 <td>
644 </td>
645 <td>
646 <div>Configure write multiplier (1 to 100).</div>
647 <div>Maximum number of interfaces serviced per write.</div>
648 </td>
649 </tr>
650
651 <tr>
652 <td colspan="4">
653 <div class="ansibleOptionAnchor" id="parameter-"></div>
654 <b>state</b>
655 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
656 <div style="font-size: small">
657 <span style="color: purple">string</span>
658 </div>
659 </td>
660 <td>
661 <ul style="margin: 0; padding: 0"><b>Choices:</b>
662 <li><div style="color: blue"><b>merged</b>&nbsp;&larr;</div></li>
663 <li>deleted</li>
664 <li>replaced</li>
665 <li>overridden</li>
666 </ul>
667 </td>
668 <td>
669 <div>Specifies the operation to be performed on the OSPFv3 process configured on the device.</div>
670 <div>In case of merged, the input configuration will be merged with the existing OSPFv3 configuration on the device.</div>
671 <div>In case of deleted, the specified existing OSPFv3 configuration will be removed from the device.</div>
672 <div>In case of overridden, all the existing OSPFv3 configuration will be deleted and the specified input configuration will be installed.</div>
673 <div>In case of replaced, the existing OSPFv3 configuration on the device will be replaced by the configuration in the playbook for each VRF group configured by the playbook.</div>
674 </td>
675 </tr>
676 </table>
677 <br/>
678
679
680 Notes
681 -----
682
683 .. note::
684 - Supports ``check_mode``.
685 - Tested against Enterprise SONiC Distribution by Dell Technologies.
686
687
688
689 Examples
690 --------
691
692 .. code-block:: yaml
693
694 # Using deleted
695
696 # Before state:
697 # -------------
698 #
699 # sonic# show running-configuration ospfv3
700 # router ospfv3 vrf Vrf_1
701 # timers throttle spf 50 20 1000
702 # redistribute bgp metric 15 metric-type 2 route-map RMAP
703 # !
704 # router ospfv3
705 # ospfv3 router-id 20.20.20.20
706 # distance 30
707 # distance ospfv3 external 20
708 # write-multiplier 20
709 # !
710 # sonic#
711 # sonic# show running-configuration vrf Vrf_1
712 # !
713 # ip vrf Vrf_1
714 # sonic# show running-configuration ipv6 prefix-list
715 # !
716 # ipv6 prefix-list PRF_LIST seq 1 permit 1::1/64
717 # ipv6 prefix-list PRF_LIST2 seq 1 permit 2::1/64
718 # sonic# show running-configuration route-map
719 # !
720 # route-map RMAP permit 1
721 # sonic#
722
723 - name: Delete the OSPFv3 configurations
724 sonic_ospfv3:
725 config:
726 - vrf_name: 'default'
727 router_id: "20.20.20.20"
728 distance:
729 external: 20
730 - vrf_name: "Vrf_1"
731 timers:
732 throttle_spf:
733 delay_time: 50
734 initial_hold_time: 20
735 maximum_hold_time: 1000
736 state: deleted
737
738 # After state:
739 # ------------
740 #
741 # sonic# show running-configuration ospfv3
742 # router ospfv3 vrf Vrf_1
743 # redistribute bgp metric 15 metric-type 2 route-map RMAP
744 # !
745 # router ospfv3
746 # distance 30
747 # write-multiplier 20
748 # !
749 # sonic#
750
751
752 # Using deleted
753
754 # Before state:
755 # -------------
756 #
757 # sonic# show running-configuration ospfv3
758 # router ospfv3 vrf Vrf_1
759 # timers throttle spf 50 20 1000
760 # redistribute bgp metric 15 metric-type 2 route-map RMAP
761 # !
762 # router ospfv3
763 # distance 30
764 # write-multiplier 20
765 # !
766 # sonic#
767 # sonic# show running-configuration vrf Vrf_1
768 # !
769 # ip vrf Vrf_1
770 # sonic# show running-configuration ipv6 prefix-list
771 # !
772 # ipv6 prefix-list PRF_LIST seq 1 permit 1::1/24
773 # ipv6 prefix-list PRF_LIST2 seq 1 permit 2::1/24
774 # sonic# show running-configuration route-map
775 # !
776 # route-map RMAP permit 1
777 # sonic#
778
779 - name: Delete the OSPFv3 configurations
780 sonic_ospfv3:
781 config:
782 - vrf_name: "Vrf_1"
783 state: deleted
784
785 # After state:
786 # ------------
787 #
788 # sonic# show running-configuration ospfv3
789 # router ospfv3
790 # distance 30
791 # write-multiplier 20
792 # !
793 # sonic#
794
795
796 # Using merged
797
798 # Before state:
799 # -------------
800 #
801 # sonic# show running-configuration ospfv3
802 # (No ospfv3 configuration present)
803 # sonic# show running-configuration vrf Vrf_1
804 # !
805 # ip vrf Vrf_1
806 # sonic# show running-configuration ipv6 prefix-list
807 # !
808 # ipv6 prefix-list PRF_LIST seq 1 permit 1::1/24
809 # ipv6 prefix-list PRF_LIST2 seq 1 permit 2::1/24
810 # sonic# show running-configuration route-map
811 # !
812 # route-map RMAP permit 1
813 # sonic#
814
815 - name: Add the OSPFv3 configurations
816 sonic_ospfv3:
817 config:
818 - vrf_name: 'default'
819 router_id: "10.10.10.10"
820 distance:
821 external: 20
822 - vrf_name: "Vrf_1"
823 timers:
824 throttle_spf:
825 delay_time: 10
826 initial_hold_time: 20
827 maximum_hold_time: 50
828 redistribute:
829 - protocol: "bgp"
830 metric: 15
831 metric_type: 2
832 route_map: "RMAP"
833 state: merged
834
835 # After state:
836 # ------------
837 #
838 # sonic# show running-configuration ospfv3
839 # router ospfv3 vrf Vrf_1
840 # timers throttle spf 10 20 50
841 # redistribute bgp metric 15 metric-type 2 route-map RMAP
842 # !
843 # router ospfv3
844 # ospfv3 router-id 10.10.10.10
845 # distance ospfv3 external 20
846 # !
847 # sonic#
848
849
850 # Using merged
851
852 # Before state:
853 # -------------
854 #
855 # sonic# show running-configuration ospfv3
856 # router ospfv3 vrf Vrf_1
857 # timers throttle spf 10 20 50
858 # redistribute bgp metric 15 metric-type 2 route-map RMAP
859 # !
860 # router ospfv3
861 # ospfv3 router-id 10.10.10.10
862 # distance ospfv3 external 20
863 # !
864 # sonic#
865 # sonic# show running-configuration vrf Vrf_1
866 # !
867 # ip vrf Vrf_1
868 # sonic# show running-configuration ipv6 prefix-list
869 # !
870 # ipv6 prefix-list PRF_LIST seq 1 permit 1::1/24
871 # ipv6 prefix-list PRF_LIST2 seq 1 permit 2::1/24
872 # sonic# show running-configuration route-map
873 # !
874 # route-map RMAP permit 1
875 # sonic#
876
877 - name: Add the OSPFv3 configurations
878 sonic_ospfv3:
879 config:
880 - vrf_name: 'default'
881 write_multiplier: 20
882 router_id: "20.20.20.20"
883 distance:
884 all: 30
885 - vrf_name: "Vrf_1"
886 timers:
887 throttle_spf:
888 delay_time: 50
889 initial_hold_time: 20
890 maximum_hold_time: 100
891 state: merged
892
893 # After state:
894 # ------------
895 #
896 # sonic# show running-configuration ospfv3
897 # router ospfv3 vrf Vrf_1
898 # timers throttle spf 50 20 100
899 # redistribute bgp metric 15 metric-type 2 route-map RMAP
900 # !
901 # router ospfv3
902 # ospfv3 router-id 20.20.20.20
903 # distance 30
904 # distance ospfv3 external 20
905 # write-multiplier 20
906 # !
907 # sonic#
908
909
910 # Using replaced
911
912 # Before state:
913 # -------------
914 #
915 # sonic# show running-configuration ospfv3
916 # router ospfv3 vrf Vrf_1
917 # timers throttle spf 50 20 10
918 # redistribute bgp metric 15 metric-type 2 route-map RMAP
919 # !
920 # router ospfv3
921 # ospfv3 router-id 20.20.20.20
922 # distance 30
923 # distance ospfv3 external 20
924 # write-multiplier 20
925 # !
926 # sonic#
927 # sonic# show running-configuration vrf Vrf_1
928 # !
929 # ip vrf Vrf_1
930 # sonic# show running-configuration ipv6 prefix-list
931 # !
932 # ipv6 prefix-list PRF_LIST seq 1 permit 1::1/24
933 # ipv6 prefix-list PRF_LIST2 seq 1 permit 2::1/24
934 # sonic# show running-configuration route-map
935 # !
936 # route-map RMAP permit 1
937 # route-map RMAP2 permit 2
938 # sonic#
939
940 - name: Replace the OSPFv3 vrf default configurations
941 sonic_ospfv3:
942 config:
943 - vrf_name: 'default'
944 router_id: "20.20.20.20"
945 redistribute:
946 - protocol: "connected"
947 metric: 15
948 metric_type: 2
949 route_map: "RMAP2"
950 distance:
951 all: 20
952 state: replaced
953
954 # After state:
955 # ------------
956 #
957 # sonic# show running-configuration ospfv3
958 # router ospfv3 vrf Vrf_1
959 # timers throttle spf 50 20 10
960 # redistribute bgp metric 15 metric-type 2 route-map RMAP
961 # !
962 # router ospfv3
963 # ospfv3 router-id 20.20.20.20
964 # distance 20
965 # redistribute connected metric 15 metric-type 2 route-map RMAP2
966 # !
967
968
969 # Using overridden
970
971 # Before state:
972 # -------------
973 #
974 # sonic# show running-configuration ospfv3
975 # router ospfv3 vrf Vrf_1
976 # timers throttle spf 50 20 10
977 # redistribute bgp metric 15 metric-type 2 route-map RMAP
978 # !
979 # router ospfv3
980 # ospfv3 router-id 20.20.20.20
981 # distance 30
982 # distance ospfv3 external 20
983 # write-multiplier 20
984 # !
985 # sonic#
986 # sonic# show running-configuration vrf Vrf_1
987 # !
988 # ip vrf Vrf_1
989 # sonic# show running-configuration ipv6 prefix-list
990 # !
991 # ipv6 prefix-list PRF_LIST seq 1 permit 1::1/24
992 # ipv6 prefix-list PRF_LIST2 seq 1 permit 2::1/24
993 # sonic# show running-configuration route-map
994 # !
995 # route-map RMAP permit 1
996 # route-map RMAP2 permit 2
997 # sonic#
998
999 - name: Override the OSPFv3 configurations
1000 sonic_ospfv3:
1001 config:
1002 - vrf_name: 'default'
1003 router_id: "20.20.20.20"
1004 redistribute:
1005 - protocol: "connected"
1006 metric: 15
1007 metric_type: 2
1008 route_map: "RMAP2"
1009 distance:
1010 all: 20
1011 state: replaced
1012
1013 # After state:
1014 # ------------
1015 #
1016 # sonic# show running-configuration ospfv3
1017 # router ospfv3
1018 # ospfv3 router-id 20.20.20.20
1019 # distance 20
1020 # redistribute connected metric 15 metric-type 2 route-map RMAP2
1021 # !
1022
1023
1024
1025 Return Values
1026 -------------
1027 Common return values are documented `here <https://docs.ansible.com/projects/ansible/latest/reference_appendices/common_return_values.html#common-return-values>`_, the following are the fields unique to this module:
1028
1029 .. raw:: html
1030
1031 <table border=0 cellpadding=0 class="documentation-table">
1032 <tr>
1033 <th colspan="1">Key</th>
1034 <th>Returned</th>
1035 <th width="100%">Description</th>
1036 </tr>
1037 <tr>
1038 <td colspan="1">
1039 <div class="ansibleOptionAnchor" id="return-"></div>
1040 <b>after</b>
1041 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
1042 <div style="font-size: small">
1043 <span style="color: purple">list</span>
1044 </div>
1045 </td>
1046 <td>when changed</td>
1047 <td>
1048 <div>The configuration resulting from module invocation.</div>
1049 <br/>
1050 <div style="font-size: smaller"><b>Sample:</b></div>
1051 <div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">The configuration returned will always be in the same format
1052 as the parameters above.</div>
1053 </td>
1054 </tr>
1055 <tr>
1056 <td colspan="1">
1057 <div class="ansibleOptionAnchor" id="return-"></div>
1058 <b>after_generated</b>
1059 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
1060 <div style="font-size: small">
1061 <span style="color: purple">list</span>
1062 </div>
1063 </td>
1064 <td>when <code>check_mode</code></td>
1065 <td>
1066 <div>The generated (calculated) configuration that would be applied by module invocation.</div>
1067 <br/>
1068 <div style="font-size: smaller"><b>Sample:</b></div>
1069 <div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">The configuration returned will always be in the same format
1070 as the parameters above.</div>
1071 </td>
1072 </tr>
1073 <tr>
1074 <td colspan="1">
1075 <div class="ansibleOptionAnchor" id="return-"></div>
1076 <b>before</b>
1077 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
1078 <div style="font-size: small">
1079 <span style="color: purple">list</span>
1080 </div>
1081 </td>
1082 <td>always</td>
1083 <td>
1084 <div>The configuration prior to the module invocation.</div>
1085 <br/>
1086 <div style="font-size: smaller"><b>Sample:</b></div>
1087 <div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">The configuration returned will always be in the same format
1088 as the parameters above.</div>
1089 </td>
1090 </tr>
1091 <tr>
1092 <td colspan="1">
1093 <div class="ansibleOptionAnchor" id="return-"></div>
1094 <b>commands</b>
1095 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
1096 <div style="font-size: small">
1097 <span style="color: purple">list</span>
1098 </div>
1099 </td>
1100 <td>always</td>
1101 <td>
1102 <div>The set of commands pushed to the remote device.</div>
1103 <br/>
1104 <div style="font-size: smaller"><b>Sample:</b></div>
1105 <div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">[&#x27;command 1&#x27;, &#x27;command 2&#x27;, &#x27;command 3&#x27;]</div>
1106 </td>
1107 </tr>
1108 </table>
1109 <br/><br/>
1110
1111
1112 Status
1113 ------
1114
1115
1116 Authors
1117 ~~~~~~~
1118
1119 - Thenmozhi Gopal (@thenmozhi-gopal), Naresh Sasivarnan (@NareshSasivarnan)