Debian Codegraph @

ansible_collections/cisco/nxos/docs/cisco.nxos.nxos_ospf_interfaces_module.rst

raw
1 .. _cisco.nxos.nxos_ospf_interfaces_module:
2
3
4 *******************************
5 cisco.nxos.nxos_ospf_interfaces
6 *******************************
7
8 **OSPF Interfaces Resource Module.**
9
10
11 Version added: 1.3.0
12
13 .. contents::
14 :local:
15 :depth: 1
16
17
18 Synopsis
19 --------
20 - This module manages OSPF(v2/v3) configuration of interfaces on devices running Cisco NX-OS.
21
22
23
24
25 Parameters
26 ----------
27
28 .. raw:: html
29
30 <table border=0 cellpadding=0 class="documentation-table">
31 <tr>
32 <th colspan="5">Parameter</th>
33 <th>Choices/<font color="blue">Defaults</font></th>
34 <th width="100%">Comments</th>
35 </tr>
36 <tr>
37 <td colspan="5">
38 <div class="ansibleOptionAnchor" id="parameter-"></div>
39 <b>config</b>
40 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
41 <div style="font-size: small">
42 <span style="color: purple">list</span>
43 / <span style="color: purple">elements=dictionary</span>
44 </div>
45 </td>
46 <td>
47 </td>
48 <td>
49 <div>A list of OSPF configuration for interfaces.</div>
50 </td>
51 </tr>
52 <tr>
53 <td class="elbow-placeholder"></td>
54 <td colspan="4">
55 <div class="ansibleOptionAnchor" id="parameter-"></div>
56 <b>address_family</b>
57 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
58 <div style="font-size: small">
59 <span style="color: purple">list</span>
60 / <span style="color: purple">elements=dictionary</span>
61 </div>
62 </td>
63 <td>
64 </td>
65 <td>
66 <div>OSPF settings on the interfaces in address-family context.</div>
67 </td>
68 </tr>
69 <tr>
70 <td class="elbow-placeholder"></td>
71 <td class="elbow-placeholder"></td>
72 <td colspan="3">
73 <div class="ansibleOptionAnchor" id="parameter-"></div>
74 <b>afi</b>
75 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
76 <div style="font-size: small">
77 <span style="color: purple">string</span>
78 / <span style="color: red">required</span>
79 </div>
80 </td>
81 <td>
82 <ul style="margin: 0; padding: 0"><b>Choices:</b>
83 <li>ipv4</li>
84 <li>ipv6</li>
85 </ul>
86 </td>
87 <td>
88 <div>Address Family Identifier (AFI) for OSPF settings on the interfaces.</div>
89 </td>
90 </tr>
91 <tr>
92 <td class="elbow-placeholder"></td>
93 <td class="elbow-placeholder"></td>
94 <td colspan="3">
95 <div class="ansibleOptionAnchor" id="parameter-"></div>
96 <b>authentication</b>
97 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
98 <div style="font-size: small">
99 <span style="color: purple">dictionary</span>
100 </div>
101 </td>
102 <td>
103 </td>
104 <td>
105 <div>Authentication settings on the interface.</div>
106 </td>
107 </tr>
108 <tr>
109 <td class="elbow-placeholder"></td>
110 <td class="elbow-placeholder"></td>
111 <td class="elbow-placeholder"></td>
112 <td colspan="2">
113 <div class="ansibleOptionAnchor" id="parameter-"></div>
114 <b>enable</b>
115 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
116 <div style="font-size: small">
117 <span style="color: purple">boolean</span>
118 </div>
119 </td>
120 <td>
121 <ul style="margin: 0; padding: 0"><b>Choices:</b>
122 <li>no</li>
123 <li>yes</li>
124 </ul>
125 </td>
126 <td>
127 <div>Enable/disable authentication on the interface.</div>
128 </td>
129 </tr>
130 <tr>
131 <td class="elbow-placeholder"></td>
132 <td class="elbow-placeholder"></td>
133 <td class="elbow-placeholder"></td>
134 <td colspan="2">
135 <div class="ansibleOptionAnchor" id="parameter-"></div>
136 <b>key_chain</b>
137 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
138 <div style="font-size: small">
139 <span style="color: purple">string</span>
140 </div>
141 </td>
142 <td>
143 </td>
144 <td>
145 <div>Authentication password key-chain.</div>
146 </td>
147 </tr>
148 <tr>
149 <td class="elbow-placeholder"></td>
150 <td class="elbow-placeholder"></td>
151 <td class="elbow-placeholder"></td>
152 <td colspan="2">
153 <div class="ansibleOptionAnchor" id="parameter-"></div>
154 <b>message_digest</b>
155 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
156 <div style="font-size: small">
157 <span style="color: purple">boolean</span>
158 </div>
159 </td>
160 <td>
161 <ul style="margin: 0; padding: 0"><b>Choices:</b>
162 <li>no</li>
163 <li>yes</li>
164 </ul>
165 </td>
166 <td>
167 <div>Use message-digest authentication.</div>
168 </td>
169 </tr>
170 <tr>
171 <td class="elbow-placeholder"></td>
172 <td class="elbow-placeholder"></td>
173 <td class="elbow-placeholder"></td>
174 <td colspan="2">
175 <div class="ansibleOptionAnchor" id="parameter-"></div>
176 <b>null_auth</b>
177 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
178 <div style="font-size: small">
179 <span style="color: purple">boolean</span>
180 </div>
181 </td>
182 <td>
183 <ul style="margin: 0; padding: 0"><b>Choices:</b>
184 <li>no</li>
185 <li>yes</li>
186 </ul>
187 </td>
188 <td>
189 <div>Use null(disable) authentication.</div>
190 </td>
191 </tr>
192
193 <tr>
194 <td class="elbow-placeholder"></td>
195 <td class="elbow-placeholder"></td>
196 <td colspan="3">
197 <div class="ansibleOptionAnchor" id="parameter-"></div>
198 <b>authentication_key</b>
199 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
200 <div style="font-size: small">
201 <span style="color: purple">dictionary</span>
202 </div>
203 </td>
204 <td>
205 </td>
206 <td>
207 <div>Configure the authentication key for the interface.</div>
208 </td>
209 </tr>
210 <tr>
211 <td class="elbow-placeholder"></td>
212 <td class="elbow-placeholder"></td>
213 <td class="elbow-placeholder"></td>
214 <td colspan="2">
215 <div class="ansibleOptionAnchor" id="parameter-"></div>
216 <b>encryption</b>
217 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
218 <div style="font-size: small">
219 <span style="color: purple">integer</span>
220 </div>
221 </td>
222 <td>
223 </td>
224 <td>
225 <div>0 Specifies an UNENCRYPTED authentication key will follow.</div>
226 <div>3 Specifies an 3DES ENCRYPTED authentication key will follow.</div>
227 <div>7 Specifies a Cisco type 7 ENCRYPTED authentication key will follow.</div>
228 </td>
229 </tr>
230 <tr>
231 <td class="elbow-placeholder"></td>
232 <td class="elbow-placeholder"></td>
233 <td class="elbow-placeholder"></td>
234 <td colspan="2">
235 <div class="ansibleOptionAnchor" id="parameter-"></div>
236 <b>key</b>
237 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
238 <div style="font-size: small">
239 <span style="color: purple">string</span>
240 / <span style="color: red">required</span>
241 </div>
242 </td>
243 <td>
244 </td>
245 <td>
246 <div>Authentication key.</div>
247 <div>Valid values are Cisco type 7 ENCRYPTED password, 3DES ENCRYPTED password and UNENCRYPTED (cleartext) password based on the value of encryption key.</div>
248 </td>
249 </tr>
250
251 <tr>
252 <td class="elbow-placeholder"></td>
253 <td class="elbow-placeholder"></td>
254 <td colspan="3">
255 <div class="ansibleOptionAnchor" id="parameter-"></div>
256 <b>cost</b>
257 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
258 <div style="font-size: small">
259 <span style="color: purple">integer</span>
260 </div>
261 </td>
262 <td>
263 </td>
264 <td>
265 <div>Cost associated with interface.</div>
266 </td>
267 </tr>
268 <tr>
269 <td class="elbow-placeholder"></td>
270 <td class="elbow-placeholder"></td>
271 <td colspan="3">
272 <div class="ansibleOptionAnchor" id="parameter-"></div>
273 <b>dead_interval</b>
274 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
275 <div style="font-size: small">
276 <span style="color: purple">integer</span>
277 </div>
278 </td>
279 <td>
280 </td>
281 <td>
282 <div>Dead interval value (in seconds).</div>
283 </td>
284 </tr>
285 <tr>
286 <td class="elbow-placeholder"></td>
287 <td class="elbow-placeholder"></td>
288 <td colspan="3">
289 <div class="ansibleOptionAnchor" id="parameter-"></div>
290 <b>default_passive_interface</b>
291 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
292 <div style="font-size: small">
293 <span style="color: purple">boolean</span>
294 </div>
295 </td>
296 <td>
297 <ul style="margin: 0; padding: 0"><b>Choices:</b>
298 <li>no</li>
299 <li>yes</li>
300 </ul>
301 </td>
302 <td>
303 <div>Set passive-interface attribute on this interface to default.</div>
304 <div>This option is mutually exclusive with <em>passive_interface</em>.</div>
305 </td>
306 </tr>
307 <tr>
308 <td class="elbow-placeholder"></td>
309 <td class="elbow-placeholder"></td>
310 <td colspan="3">
311 <div class="ansibleOptionAnchor" id="parameter-"></div>
312 <b>hello_interval</b>
313 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
314 <div style="font-size: small">
315 <span style="color: purple">integer</span>
316 </div>
317 </td>
318 <td>
319 </td>
320 <td>
321 <div>Hello interval value (in seconds).</div>
322 </td>
323 </tr>
324 <tr>
325 <td class="elbow-placeholder"></td>
326 <td class="elbow-placeholder"></td>
327 <td colspan="3">
328 <div class="ansibleOptionAnchor" id="parameter-"></div>
329 <b>instance</b>
330 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
331 <div style="font-size: small">
332 <span style="color: purple">integer</span>
333 </div>
334 </td>
335 <td>
336 </td>
337 <td>
338 <div>Instance identifier.</div>
339 </td>
340 </tr>
341 <tr>
342 <td class="elbow-placeholder"></td>
343 <td class="elbow-placeholder"></td>
344 <td colspan="3">
345 <div class="ansibleOptionAnchor" id="parameter-"></div>
346 <b>message_digest_key</b>
347 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
348 <div style="font-size: small">
349 <span style="color: purple">dictionary</span>
350 </div>
351 </td>
352 <td>
353 </td>
354 <td>
355 <div>Message digest authentication password (key) settings.</div>
356 </td>
357 </tr>
358 <tr>
359 <td class="elbow-placeholder"></td>
360 <td class="elbow-placeholder"></td>
361 <td class="elbow-placeholder"></td>
362 <td colspan="2">
363 <div class="ansibleOptionAnchor" id="parameter-"></div>
364 <b>encryption</b>
365 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
366 <div style="font-size: small">
367 <span style="color: purple">integer</span>
368 </div>
369 </td>
370 <td>
371 </td>
372 <td>
373 <div>0 Specifies an UNENCRYPTED ospf password (key) will follow.</div>
374 <div>3 Specifies an 3DES ENCRYPTED ospf password (key) will follow.</div>
375 <div>7 Specifies a Cisco type 7 ENCRYPTED the ospf password (key) will follow.</div>
376 </td>
377 </tr>
378 <tr>
379 <td class="elbow-placeholder"></td>
380 <td class="elbow-placeholder"></td>
381 <td class="elbow-placeholder"></td>
382 <td colspan="2">
383 <div class="ansibleOptionAnchor" id="parameter-"></div>
384 <b>key</b>
385 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
386 <div style="font-size: small">
387 <span style="color: purple">string</span>
388 / <span style="color: red">required</span>
389 </div>
390 </td>
391 <td>
392 </td>
393 <td>
394 <div>Authentication key.</div>
395 <div>Valid values are Cisco type 7 ENCRYPTED password, 3DES ENCRYPTED password and UNENCRYPTED (cleartext) password based on the value of encryption key.</div>
396 </td>
397 </tr>
398 <tr>
399 <td class="elbow-placeholder"></td>
400 <td class="elbow-placeholder"></td>
401 <td class="elbow-placeholder"></td>
402 <td colspan="2">
403 <div class="ansibleOptionAnchor" id="parameter-"></div>
404 <b>key_id</b>
405 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
406 <div style="font-size: small">
407 <span style="color: purple">integer</span>
408 / <span style="color: red">required</span>
409 </div>
410 </td>
411 <td>
412 </td>
413 <td>
414 <div>Key ID.</div>
415 </td>
416 </tr>
417
418 <tr>
419 <td class="elbow-placeholder"></td>
420 <td class="elbow-placeholder"></td>
421 <td colspan="3">
422 <div class="ansibleOptionAnchor" id="parameter-"></div>
423 <b>mtu_ignore</b>
424 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
425 <div style="font-size: small">
426 <span style="color: purple">boolean</span>
427 </div>
428 </td>
429 <td>
430 <ul style="margin: 0; padding: 0"><b>Choices:</b>
431 <li>no</li>
432 <li>yes</li>
433 </ul>
434 </td>
435 <td>
436 <div>Enable/disable OSPF MTU mismatch detection.</div>
437 </td>
438 </tr>
439 <tr>
440 <td class="elbow-placeholder"></td>
441 <td class="elbow-placeholder"></td>
442 <td colspan="3">
443 <div class="ansibleOptionAnchor" id="parameter-"></div>
444 <b>multi_areas</b>
445 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
446 <div style="font-size: small">
447 <span style="color: purple">list</span>
448 / <span style="color: purple">elements=string</span>
449 </div>
450 </td>
451 <td>
452 </td>
453 <td>
454 <div>Multi-Areas associated with interface (not tied to OSPF process).</div>
455 <div>Valid values are Area Ids as an integer or IP address.</div>
456 </td>
457 </tr>
458 <tr>
459 <td class="elbow-placeholder"></td>
460 <td class="elbow-placeholder"></td>
461 <td colspan="3">
462 <div class="ansibleOptionAnchor" id="parameter-"></div>
463 <b>network</b>
464 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
465 <div style="font-size: small">
466 <span style="color: purple">string</span>
467 </div>
468 </td>
469 <td>
470 <ul style="margin: 0; padding: 0"><b>Choices:</b>
471 <li>broadcast</li>
472 <li>point-to-point</li>
473 </ul>
474 </td>
475 <td>
476 <div>Network type.</div>
477 </td>
478 </tr>
479 <tr>
480 <td class="elbow-placeholder"></td>
481 <td class="elbow-placeholder"></td>
482 <td colspan="3">
483 <div class="ansibleOptionAnchor" id="parameter-"></div>
484 <b>passive_interface</b>
485 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
486 <div style="font-size: small">
487 <span style="color: purple">boolean</span>
488 </div>
489 </td>
490 <td>
491 <ul style="margin: 0; padding: 0"><b>Choices:</b>
492 <li>no</li>
493 <li>yes</li>
494 </ul>
495 </td>
496 <td>
497 <div>Suppress routing updates on the interface.</div>
498 <div>This option is mutually exclusive with <em>default_passive_interface</em>.</div>
499 </td>
500 </tr>
501 <tr>
502 <td class="elbow-placeholder"></td>
503 <td class="elbow-placeholder"></td>
504 <td colspan="3">
505 <div class="ansibleOptionAnchor" id="parameter-"></div>
506 <b>priority</b>
507 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
508 <div style="font-size: small">
509 <span style="color: purple">integer</span>
510 </div>
511 </td>
512 <td>
513 </td>
514 <td>
515 <div>Router priority.</div>
516 </td>
517 </tr>
518 <tr>
519 <td class="elbow-placeholder"></td>
520 <td class="elbow-placeholder"></td>
521 <td colspan="3">
522 <div class="ansibleOptionAnchor" id="parameter-"></div>
523 <b>processes</b>
524 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
525 <div style="font-size: small">
526 <span style="color: purple">list</span>
527 / <span style="color: purple">elements=dictionary</span>
528 </div>
529 </td>
530 <td>
531 </td>
532 <td>
533 <div>Interfaces configuration for an OSPF process.</div>
534 </td>
535 </tr>
536 <tr>
537 <td class="elbow-placeholder"></td>
538 <td class="elbow-placeholder"></td>
539 <td class="elbow-placeholder"></td>
540 <td colspan="2">
541 <div class="ansibleOptionAnchor" id="parameter-"></div>
542 <b>area</b>
543 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
544 <div style="font-size: small">
545 <span style="color: purple">dictionary</span>
546 </div>
547 </td>
548 <td>
549 </td>
550 <td>
551 <div>Area associated with interface.</div>
552 </td>
553 </tr>
554 <tr>
555 <td class="elbow-placeholder"></td>
556 <td class="elbow-placeholder"></td>
557 <td class="elbow-placeholder"></td>
558 <td class="elbow-placeholder"></td>
559 <td colspan="1">
560 <div class="ansibleOptionAnchor" id="parameter-"></div>
561 <b>area_id</b>
562 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
563 <div style="font-size: small">
564 <span style="color: purple">string</span>
565 / <span style="color: red">required</span>
566 </div>
567 </td>
568 <td>
569 </td>
570 <td>
571 <div>Area ID in IP address format.</div>
572 </td>
573 </tr>
574 <tr>
575 <td class="elbow-placeholder"></td>
576 <td class="elbow-placeholder"></td>
577 <td class="elbow-placeholder"></td>
578 <td class="elbow-placeholder"></td>
579 <td colspan="1">
580 <div class="ansibleOptionAnchor" id="parameter-"></div>
581 <b>secondaries</b>
582 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
583 <div style="font-size: small">
584 <span style="color: purple">boolean</span>
585 </div>
586 </td>
587 <td>
588 <ul style="margin: 0; padding: 0"><b>Choices:</b>
589 <li>no</li>
590 <li>yes</li>
591 </ul>
592 </td>
593 <td>
594 <div>Do not include secondary IPv4/IPv6 addresses.</div>
595 </td>
596 </tr>
597
598 <tr>
599 <td class="elbow-placeholder"></td>
600 <td class="elbow-placeholder"></td>
601 <td class="elbow-placeholder"></td>
602 <td colspan="2">
603 <div class="ansibleOptionAnchor" id="parameter-"></div>
604 <b>multi_areas</b>
605 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
606 <div style="font-size: small">
607 <span style="color: purple">list</span>
608 / <span style="color: purple">elements=string</span>
609 </div>
610 </td>
611 <td>
612 </td>
613 <td>
614 <div>Multi-Areas associated with interface.</div>
615 <div>Valid values are Area Ids as an integer or IP address.</div>
616 </td>
617 </tr>
618 <tr>
619 <td class="elbow-placeholder"></td>
620 <td class="elbow-placeholder"></td>
621 <td class="elbow-placeholder"></td>
622 <td colspan="2">
623 <div class="ansibleOptionAnchor" id="parameter-"></div>
624 <b>process_id</b>
625 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
626 <div style="font-size: small">
627 <span style="color: purple">string</span>
628 / <span style="color: red">required</span>
629 </div>
630 </td>
631 <td>
632 </td>
633 <td>
634 <div>OSPF process tag.</div>
635 </td>
636 </tr>
637
638 <tr>
639 <td class="elbow-placeholder"></td>
640 <td class="elbow-placeholder"></td>
641 <td colspan="3">
642 <div class="ansibleOptionAnchor" id="parameter-"></div>
643 <b>retransmit_interval</b>
644 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
645 <div style="font-size: small">
646 <span style="color: purple">integer</span>
647 </div>
648 </td>
649 <td>
650 </td>
651 <td>
652 <div>Packet retransmission interval.</div>
653 </td>
654 </tr>
655 <tr>
656 <td class="elbow-placeholder"></td>
657 <td class="elbow-placeholder"></td>
658 <td colspan="3">
659 <div class="ansibleOptionAnchor" id="parameter-"></div>
660 <b>shutdown</b>
661 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
662 <div style="font-size: small">
663 <span style="color: purple">boolean</span>
664 </div>
665 </td>
666 <td>
667 <ul style="margin: 0; padding: 0"><b>Choices:</b>
668 <li>no</li>
669 <li>yes</li>
670 </ul>
671 </td>
672 <td>
673 <div>Shutdown OSPF on this interface.</div>
674 </td>
675 </tr>
676 <tr>
677 <td class="elbow-placeholder"></td>
678 <td class="elbow-placeholder"></td>
679 <td colspan="3">
680 <div class="ansibleOptionAnchor" id="parameter-"></div>
681 <b>transmit_delay</b>
682 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
683 <div style="font-size: small">
684 <span style="color: purple">integer</span>
685 </div>
686 </td>
687 <td>
688 </td>
689 <td>
690 <div>Packet transmission delay.</div>
691 </td>
692 </tr>
693
694 <tr>
695 <td class="elbow-placeholder"></td>
696 <td colspan="4">
697 <div class="ansibleOptionAnchor" id="parameter-"></div>
698 <b>name</b>
699 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
700 <div style="font-size: small">
701 <span style="color: purple">string</span>
702 / <span style="color: red">required</span>
703 </div>
704 </td>
705 <td>
706 </td>
707 <td>
708 <div>Name/Identifier of the interface.</div>
709 </td>
710 </tr>
711
712 <tr>
713 <td colspan="5">
714 <div class="ansibleOptionAnchor" id="parameter-"></div>
715 <b>running_config</b>
716 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
717 <div style="font-size: small">
718 <span style="color: purple">string</span>
719 </div>
720 </td>
721 <td>
722 </td>
723 <td>
724 <div>This option is used only with state <em>parsed</em>.</div>
725 <div>The value of this option should be the output received from the NX-OS device by executing the command <b>show running-config | section &quot;^interface&quot;</b>.</div>
726 <div>The state <em>parsed</em> reads the configuration from <code>running_config</code> option and transforms it into Ansible structured data as per the resource module&#x27;s argspec and the value is then returned in the <em>parsed</em> key within the result.</div>
727 </td>
728 </tr>
729 <tr>
730 <td colspan="5">
731 <div class="ansibleOptionAnchor" id="parameter-"></div>
732 <b>state</b>
733 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
734 <div style="font-size: small">
735 <span style="color: purple">string</span>
736 </div>
737 </td>
738 <td>
739 <ul style="margin: 0; padding: 0"><b>Choices:</b>
740 <li><div style="color: blue"><b>merged</b>&nbsp;&larr;</div></li>
741 <li>replaced</li>
742 <li>overridden</li>
743 <li>deleted</li>
744 <li>gathered</li>
745 <li>parsed</li>
746 <li>rendered</li>
747 </ul>
748 </td>
749 <td>
750 <div>The state the configuration should be left in.</div>
751 </td>
752 </tr>
753 </table>
754 <br/>
755
756
757 Notes
758 -----
759
760 .. note::
761 - Unsupported for Cisco MDS
762
763
764
765 Examples
766 --------
767
768 .. code-block:: yaml
769
770 # Using merged
771
772 # Before state:
773 # -------------
774 # NXOS# show running-config | section ^interface
775 # interface Ethernet1/1
776 # no switchport
777 # interface Ethernet1/2
778 # no switchport
779 # interface Ethernet1/3
780 # no switchport
781
782 - name: Merge the provided configuration with the existing running configuration
783 cisco.nxos.nxos_ospf_interfaces:
784 config:
785 - name: Ethernet1/1
786 address_family:
787 - afi: ipv4
788 processes:
789 - process_id: '100'
790 area:
791 area_id: 1.1.1.1
792 secondaries: false
793 multi_areas:
794 - 11.11.11.11
795 - afi: ipv6
796 processes:
797 - process_id: '200'
798 area:
799 area_id: 2.2.2.2
800 multi_areas:
801 - 21.0.0.0
802 - process_id: '300'
803 multi_areas:
804 - 50.50.50.50
805 multi_areas:
806 - 16.10.10.10
807 - name: Ethernet1/2
808 address_family:
809 - afi: ipv4
810 authentication:
811 enable: true
812 key_chain: test-1
813 message_digest_key:
814 key_id: 10
815 encryption: 3
816 key: abc01d272be25d29
817 cost: 100
818 - afi: ipv6
819 network: broadcast
820 shutdown: true
821 - name: Ethernet1/3
822 address_family:
823 - afi: ipv4
824 authentication_key:
825 encryption: 7
826 key: 12090404011C03162E
827 state: merged
828
829 # Task output:
830 # ------------
831 # before:
832 # - name: Ethernet1/1
833 # - name: Ethernet1/2
834 # - name: Ethernet1/3
835 #
836 # commands:
837 # - interface Ethernet1/1
838 # - ip router ospf multi-area 11.11.11.11
839 # - ip router ospf 100 area 1.1.1.1 secondaries none
840 # - ipv6 router ospfv3 multi-area 16.10.10.10
841 # - ipv6 router ospfv3 200 area 2.2.2.2
842 # - ipv6 router ospfv3 200 multi-area 21.0.0.0
843 # - ipv6 router ospfv3 300 multi-area 50.50.50.50
844 # - interface Ethernet1/2
845 # - ip ospf authentication key-chain test-1
846 # - ip ospf authentication
847 # - ip ospf message-digest-key 10 md5 3 abc01d272be25d29
848 # - ip ospf cost 100
849 # - ospfv3 network broadcast
850 # - ospfv3 shutdown
851 # - interface Ethernet1/3
852 # - ip ospf authentication-key 7 12090404011C03162E
853 #
854 # after:
855 # - address_family:
856 # - afi: ipv4
857 # multi_areas:
858 # - 11.11.11.11
859 # processes:
860 # - area:
861 # area_id: 1.1.1.1
862 # secondaries: false
863 # process_id: '100'
864 # - afi: ipv6
865 # multi_areas:
866 # - 16.10.10.10
867 # processes:
868 # - area:
869 # area_id: 2.2.2.2
870 # multi_areas:
871 # - 21.0.0.0
872 # process_id: '200'
873 # - multi_areas:
874 # - 50.50.50.50
875 # process_id: '300'
876 # name: Ethernet1/1
877 # - address_family:
878 # - afi: ipv4
879 # authentication:
880 # enable: true
881 # key_chain: test-1
882 # cost: 100
883 # message_digest_key:
884 # encryption: 3
885 # key: VALUE_SPECIFIED_IN_NO_LOG_PARAMETER
886 # key_id: 10
887 # - afi: ipv6
888 # network: broadcast
889 # shutdown: true
890 # name: Ethernet1/2
891 # - address_family:
892 # - afi: ipv4
893 # authentication_key:
894 # encryption: 7
895 # key: VALUE_SPECIFIED_IN_NO_LOG_PARAMETER
896 # name: Ethernet1/3
897
898 # After state:
899 # ------------
900 # NXOS# show running-config | section ^interface
901 # interface Ethernet1/1
902 # no switchport
903 # ip router ospf 100 area 1.1.1.1 secondaries none
904 # ip router ospf multi-area 11.11.11.11
905 # ipv6 router ospfv3 200 area 2.2.2.2
906 # ipv6 router ospfv3 multi-area 16.10.10.10
907 # ipv6 router ospfv3 200 multi-area 21.0.0.0
908 # ipv6 router ospfv3 300 multi-area 50.50.50.50
909 # interface Ethernet1/2
910 # no switchport
911 # ip ospf authentication
912 # ip ospf authentication key-chain test-1
913 # ip ospf message-digest-key 10 md5 3 abc01d272be25d29
914 # ip ospf cost 100
915 # ospfv3 network broadcast
916 # ospfv3 shutdown
917 # interface Ethernet1/3
918 # no switchport
919 # ip ospf authentication-key 7 12090404011C03162E
920
921
922 # Using replaced
923
924 # Before state:
925 # -------------
926 # NXOS# show running-config | section ^interface
927 # interface Ethernet1/1
928 # no switchport
929 # ip router ospf 100 area 1.1.1.1 secondaries none
930 # ip router ospf multi-area 11.11.11.11
931 # ipv6 router ospfv3 200 area 2.2.2.2
932 # ipv6 router ospfv3 multi-area 16.10.10.10
933 # ipv6 router ospfv3 200 multi-area 21.0.0.0
934 # ipv6 router ospfv3 300 multi-area 50.50.50.50
935 # interface Ethernet1/2
936 # no switchport
937 # ip ospf authentication
938 # ip ospf authentication key-chain test-1
939 # ip ospf message-digest-key 10 md5 3 abc01d272be25d29
940 # ip ospf cost 100
941 # ospfv3 network broadcast
942 # ospfv3 shutdown
943 # interface Ethernet1/3
944 # no switchport
945 # ip ospf authentication-key 7 12090404011C03162E
946
947 - name: Replace OSPF configurations of listed interfaces with provided configurations
948 cisco.nxos.nxos_ospf_interfaces:
949 config:
950 - name: Ethernet1/1
951 address_family:
952 - afi: ipv4
953 processes:
954 - process_id: "100"
955 area:
956 area_id: 1.1.1.1
957 secondaries: false
958 multi_areas:
959 - 11.11.11.12
960 - name: Ethernet1/3
961 state: replaced
962
963 # Task output:
964 # ------------
965 # before:
966 # - address_family:
967 # - afi: ipv4
968 # multi_areas:
969 # - 11.11.11.11
970 # processes:
971 # - area:
972 # area_id: 1.1.1.1
973 # secondaries: false
974 # process_id: '100'
975 # - afi: ipv6
976 # multi_areas:
977 # - 16.10.10.10
978 # processes:
979 # - area:
980 # area_id: 2.2.2.2
981 # multi_areas:
982 # - 21.0.0.0
983 # process_id: '200'
984 # - multi_areas:
985 # - 50.50.50.50
986 # process_id: '300'
987 # name: Ethernet1/1
988 # - address_family:
989 # - afi: ipv4
990 # authentication:
991 # enable: true
992 # key_chain: test-1
993 # cost: 100
994 # message_digest_key:
995 # encryption: 3
996 # key: VALUE_SPECIFIED_IN_NO_LOG_PARAMETER
997 # key_id: 10
998 # - afi: ipv6
999 # network: broadcast
1000 # shutdown: true
1001 # name: Ethernet1/2
1002 # - address_family:
1003 # - afi: ipv4
1004 # authentication_key:
1005 # encryption: 7
1006 # key: VALUE_SPECIFIED_IN_NO_LOG_PARAMETER
1007 # name: Ethernet1/3
1008 #
1009 # commands:
1010 # - interface Ethernet1/1
1011 # - ip router ospf multi-area 11.11.11.12
1012 # - no ip router ospf multi-area 11.11.11.11
1013 # - no ipv6 router ospfv3 multi-area 16.10.10.10
1014 # - no ipv6 router ospfv3 200 area 2.2.2.2
1015 # - no ipv6 router ospfv3 200 multi-area 21.0.0.0
1016 # - no ipv6 router ospfv3 300 multi-area 50.50.50.50
1017 # - interface Ethernet1/3
1018 # - no ip ospf authentication-key 7 12090404011C03162E
1019 #
1020 # after:
1021 # - address_family:
1022 # - afi: ipv4
1023 # multi_areas:
1024 # - 11.11.11.12
1025 # processes:
1026 # - area:
1027 # area_id: 1.1.1.1
1028 # secondaries: false
1029 # process_id: '100'
1030 # name: Ethernet1/1
1031 # - address_family:
1032 # - afi: ipv4
1033 # authentication:
1034 # enable: true
1035 # key_chain: test-1
1036 # cost: 100
1037 # message_digest_key:
1038 # encryption: 3
1039 # key: VALUE_SPECIFIED_IN_NO_LOG_PARAMETER
1040 # key_id: 10
1041 # - afi: ipv6
1042 # network: broadcast
1043 # shutdown: true
1044 # name: Ethernet1/2
1045 # - name: Ethernet1/3
1046 #
1047 # After state:
1048 # ------------
1049 # NXOS# show running-config | section ^interface
1050 # interface Ethernet1/1
1051 # no switchport
1052 # ip router ospf 100 area 1.1.1.1 secondaries none
1053 # ip router ospf multi-area 11.11.11.12
1054 # interface Ethernet1/2
1055 # no switchport
1056 # ip ospf authentication
1057 # ip ospf authentication key-chain test-1
1058 # ip ospf message-digest-key 10 md5 3 abc01d272be25d29
1059 # ip ospf cost 100
1060 # ospfv3 network broadcast
1061 # ospfv3 shutdown
1062 # interface Ethernet1/3
1063 # no switchport
1064
1065
1066 # Using overridden
1067
1068 # Before state:
1069 # -------------
1070 # NXOS# show running-config | section ^interface
1071 # interface Ethernet1/1
1072 # no switchport
1073 # ip router ospf 100 area 1.1.1.1 secondaries none
1074 # ip router ospf multi-area 11.11.11.11
1075 # ipv6 router ospfv3 200 area 2.2.2.2
1076 # ipv6 router ospfv3 multi-area 16.10.10.10
1077 # ipv6 router ospfv3 200 multi-area 21.0.0.0
1078 # ipv6 router ospfv3 300 multi-area 50.50.50.50
1079 # interface Ethernet1/2
1080 # no switchport
1081 # ip ospf authentication
1082 # ip ospf authentication key-chain test-1
1083 # ip ospf message-digest-key 10 md5 3 abc01d272be25d29
1084 # ip ospf cost 100
1085 # ospfv3 network broadcast
1086 # ospfv3 shutdown
1087 # interface Ethernet1/3
1088 # no switchport
1089 # ip ospf authentication-key 7 12090404011C03162E
1090
1091 - name: Override all OSPF interfaces configuration with provided configuration
1092 cisco.nxos.nxos_ospf_interfaces:
1093 config:
1094 - name: Ethernet1/1
1095 address_family:
1096 - afi: ipv4
1097 processes:
1098 - process_id: "100"
1099 area:
1100 area_id: 1.1.1.1
1101 secondaries: false
1102 multi_areas:
1103 - 11.11.11.12
1104 state: overridden
1105
1106 # Task output:
1107 # ------------
1108 # before:
1109 # - address_family:
1110 # - afi: ipv4
1111 # multi_areas:
1112 # - 11.11.11.11
1113 # processes:
1114 # - area:
1115 # area_id: 1.1.1.1
1116 # secondaries: false
1117 # process_id: '100'
1118 # - afi: ipv6
1119 # multi_areas:
1120 # - 16.10.10.10
1121 # processes:
1122 # - area:
1123 # area_id: 2.2.2.2
1124 # multi_areas:
1125 # - 21.0.0.0
1126 # process_id: '200'
1127 # - multi_areas:
1128 # - 50.50.50.50
1129 # process_id: '300'
1130 # name: Ethernet1/1
1131 # - address_family:
1132 # - afi: ipv4
1133 # authentication:
1134 # enable: true
1135 # key_chain: test-1
1136 # cost: 100
1137 # message_digest_key:
1138 # encryption: 3
1139 # key: VALUE_SPECIFIED_IN_NO_LOG_PARAMETER
1140 # key_id: 10
1141 # - afi: ipv6
1142 # network: broadcast
1143 # shutdown: true
1144 # name: Ethernet1/2
1145 # - address_family:
1146 # - afi: ipv4
1147 # authentication_key:
1148 # encryption: 7
1149 # key: VALUE_SPECIFIED_IN_NO_LOG_PARAMETER
1150 # name: Ethernet1/3
1151 #
1152 # commands:
1153 # - interface Ethernet1/2
1154 # - no ip ospf authentication key-chain test-1
1155 # - no ip ospf authentication
1156 # - no ip ospf message-digest-key 10 md5 3 abc01d272be25d29
1157 # - no ip ospf cost 100
1158 # - no ospfv3 network broadcast
1159 # - no ospfv3 shutdown
1160 # - interface Ethernet1/3
1161 # - no ip ospf authentication-key 7 12090404011C03162E
1162 # - interface Ethernet1/1
1163 # - ip router ospf multi-area 11.11.11.12
1164 # - no ip router ospf multi-area 11.11.11.11
1165 # - no ipv6 router ospfv3 multi-area 16.10.10.10
1166 # - no ipv6 router ospfv3 200 area 2.2.2.2
1167 # - no ipv6 router ospfv3 200 multi-area 21.0.0.0
1168 # - no ipv6 router ospfv3 300 multi-area 50.50.50.50
1169 #
1170 # after:
1171 # - address_family:
1172 # - afi: ipv4
1173 # multi_areas:
1174 # - 11.11.11.12
1175 # processes:
1176 # - area:
1177 # area_id: 1.1.1.1
1178 # secondaries: false
1179 # process_id: '100'
1180 # name: Ethernet1/1
1181 # - name: Ethernet1/2
1182 # - name: Ethernet1/3
1183
1184 # After state:
1185 # -------------
1186 # NXOS# show running-config | section ^interface
1187 # interface Ethernet1/1
1188 # no switchport
1189 # ip router ospf 100 area 1.1.1.1 secondaries none
1190 # ip router ospf multi-area 11.11.11.12
1191 # interface Ethernet1/2
1192 # no switchport
1193 # interface Ethernet1/3
1194 # no switchport
1195
1196 # Using deleted to delete OSPF config of a single interface
1197
1198 # Before state:
1199 # -------------
1200 # NXOS# show running-config | section ^interface
1201 # interface Ethernet1/1
1202 # no switchport
1203 # ip router ospf 100 area 1.1.1.1 secondaries none
1204 # ip router ospf multi-area 11.11.11.11
1205 # ipv6 router ospfv3 200 area 2.2.2.2
1206 # ipv6 router ospfv3 multi-area 16.10.10.10
1207 # ipv6 router ospfv3 200 multi-area 21.0.0.0
1208 # ipv6 router ospfv3 300 multi-area 50.50.50.50
1209 # interface Ethernet1/2
1210 # no switchport
1211 # ip ospf authentication
1212 # ip ospf authentication key-chain test-1
1213 # ip ospf message-digest-key 10 md5 3 abc01d272be25d29
1214 # ip ospf cost 100
1215 # ospfv3 network broadcast
1216 # ospfv3 shutdown
1217 # interface Ethernet1/3
1218 # no switchport
1219 # ip ospf authentication-key 7 12090404011C03162E
1220
1221 - name: Delete OSPF config from a single interface
1222 cisco.nxos.nxos_ospf_interfaces:
1223 config:
1224 - name: Ethernet1/1
1225 state: deleted
1226
1227 # Task output:
1228 # ------------
1229 # before:
1230 # - address_family:
1231 # - afi: ipv4
1232 # multi_areas:
1233 # - 11.11.11.11
1234 # processes:
1235 # - area:
1236 # area_id: 1.1.1.1
1237 # secondaries: false
1238 # process_id: '100'
1239 # - afi: ipv6
1240 # multi_areas:
1241 # - 16.10.10.10
1242 # processes:
1243 # - area:
1244 # area_id: 2.2.2.2
1245 # multi_areas:
1246 # - 21.0.0.0
1247 # process_id: '200'
1248 # - multi_areas:
1249 # - 50.50.50.50
1250 # process_id: '300'
1251 # name: Ethernet1/1
1252 # - address_family:
1253 # - afi: ipv4
1254 # authentication:
1255 # enable: true
1256 # key_chain: test-1
1257 # cost: 100
1258 # message_digest_key:
1259 # encryption: 3
1260 # key: VALUE_SPECIFIED_IN_NO_LOG_PARAMETER
1261 # key_id: 10
1262 # - afi: ipv6
1263 # network: broadcast
1264 # shutdown: true
1265 # name: Ethernet1/2
1266 # - address_family:
1267 # - afi: ipv4
1268 # authentication_key:
1269 # encryption: 7
1270 # key: VALUE_SPECIFIED_IN_NO_LOG_PARAMETER
1271 # name: Ethernet1/3
1272 #
1273 # commands:
1274 # - interface Ethernet1/1
1275 # - no ip router ospf multi-area 11.11.11.11
1276 # - no ip router ospf 100 area 1.1.1.1 secondaries none
1277 # - no ipv6 router ospfv3 multi-area 16.10.10.10
1278 # - no ipv6 router ospfv3 200 area 2.2.2.2
1279 # - no ipv6 router ospfv3 200 multi-area 21.0.0.0
1280 # - no ipv6 router ospfv3 300 multi-area 50.50.50.50
1281 #
1282 # after:
1283 # - name: Ethernet1/1
1284 # - address_family:
1285 # - afi: ipv4
1286 # authentication:
1287 # enable: true
1288 # key_chain: test-1
1289 # cost: 100
1290 # message_digest_key:
1291 # encryption: 3
1292 # key: VALUE_SPECIFIED_IN_NO_LOG_PARAMETER
1293 # key_id: 10
1294 # - afi: ipv6
1295 # network: broadcast
1296 # shutdown: true
1297 # name: Ethernet1/2
1298 # - address_family:
1299 # - afi: ipv4
1300 # authentication_key:
1301 # encryption: 7
1302 # key: VALUE_SPECIFIED_IN_NO_LOG_PARAMETER
1303 # name: Ethernet1/3
1304
1305
1306 # After state:
1307 # ------------
1308 # NXOS# show running-config | section ^interface
1309 # interface Ethernet1/1
1310 # no switchport
1311 # interface Ethernet1/2
1312 # no switchport
1313 # ip ospf authentication
1314 # ip ospf authentication key-chain test-1
1315 # ip ospf message-digest-key 10 md5 3 abc01d272be25d29
1316 # ip ospf cost 100
1317 # ospfv3 network broadcast
1318 # ospfv3 shutdown
1319 # interface Ethernet1/3
1320 # no switchport
1321 # ip ospf authentication-key 7 12090404011C03162E
1322
1323 # Using deleted to delete OSPF config from all interfaces
1324
1325 # Before state:
1326 # -------------
1327 # NXOS# show running-config | section ^interface
1328 # interface Ethernet1/1
1329 # no switchport
1330 # ip router ospf 100 area 1.1.1.1 secondaries none
1331 # ip router ospf multi-area 11.11.11.11
1332 # ipv6 router ospfv3 200 area 2.2.2.2
1333 # ipv6 router ospfv3 multi-area 16.10.10.10
1334 # ipv6 router ospfv3 200 multi-area 21.0.0.0
1335 # ipv6 router ospfv3 300 multi-area 50.50.50.50
1336 # interface Ethernet1/2
1337 # no switchport
1338 # ip ospf authentication
1339 # ip ospf authentication key-chain test-1
1340 # ip ospf message-digest-key 10 md5 3 abc01d272be25d29
1341 # ip ospf cost 100
1342 # ospfv3 network broadcast
1343 # ospfv3 shutdown
1344 # interface Ethernet1/3
1345 # no switchport
1346 # ip ospf authentication-key 7 12090404011C03162E
1347
1348 - name: Delete OSPF config from all interfaces
1349 cisco.nxos.nxos_ospf_interfaces:
1350 state: deleted
1351
1352 # Task output:
1353 # ------------
1354 # before:
1355 # - name: Ethernet1/1
1356 # - address_family:
1357 # - afi: ipv4
1358 # authentication:
1359 # enable: true
1360 # key_chain: test-1
1361 # cost: 100
1362 # message_digest_key:
1363 # encryption: 3
1364 # key: VALUE_SPECIFIED_IN_NO_LOG_PARAMETER
1365 # key_id: 10
1366 # - afi: ipv6
1367 # network: broadcast
1368 # shutdown: true
1369 # name: Ethernet1/2
1370 # - address_family:
1371 # - afi: ipv4
1372 # authentication_key:
1373 # encryption: 7
1374 # key: VALUE_SPECIFIED_IN_NO_LOG_PARAMETER
1375 # name: Ethernet1/3
1376 #
1377 # commands:
1378 # - interface Ethernet1/1
1379 # - no ip router ospf multi-area 11.11.11.11
1380 # - no ip router ospf 100 area 1.1.1.1 secondaries none
1381 # - no ipv6 router ospfv3 multi-area 16.10.10.10
1382 # - no ipv6 router ospfv3 200 area 2.2.2.2
1383 # - no ipv6 router ospfv3 200 multi-area 21.0.0.0
1384 # - no ipv6 router ospfv3 300 multi-area 50.50.50.50
1385 # - interface Ethernet1/2
1386 # - no ip ospf authentication key-chain test-1
1387 # - no ip ospf authentication
1388 # - no ip ospf message-digest-key 10 md5 3 abc01d272be25d29
1389 # - no ip ospf cost 100
1390 # - no ospfv3 network broadcast
1391 # - no ospfv3 shutdown
1392 # - interface Ethernet1/3
1393 # - no ip ospf authentication-key 7 12090404011C03162E
1394 #
1395 # after:
1396 # - name: Ethernet1/1
1397 # - name: Ethernet1/2
1398 # - name: Ethernet1/3
1399
1400 # After state:
1401 # ------------
1402 # NXOS# show running-config | section ^interface
1403 # interface Ethernet1/1
1404 # no switchport
1405 # interface Ethernet1/2
1406 # no switchport
1407 # interface Ethernet1/3
1408 # no switchport
1409
1410 # Using rendered
1411
1412 - name: >-
1413 Render platform specific configuration lines with state rendered (without
1414 connecting to the device)
1415 cisco.nxos.nxos_ospf_interfaces:
1416 config:
1417 - name: Ethernet1/1
1418 address_family:
1419 - afi: ipv4
1420 processes:
1421 - process_id: '100'
1422 area:
1423 area_id: 1.1.1.1
1424 secondaries: false
1425 multi_areas:
1426 - 11.11.11.11
1427 - afi: ipv6
1428 processes:
1429 - process_id: '200'
1430 area:
1431 area_id: 2.2.2.2
1432 multi_areas:
1433 - 21.0.0.0
1434 - process_id: '300'
1435 multi_areas:
1436 - 50.50.50.50
1437 multi_areas:
1438 - 16.10.10.10
1439 - name: Ethernet1/2
1440 address_family:
1441 - afi: ipv4
1442 authentication:
1443 enable: true
1444 key_chain: test-1
1445 message_digest_key:
1446 key_id: 10
1447 encryption: 3
1448 key: abc01d272be25d29
1449 cost: 100
1450 - afi: ipv6
1451 network: broadcast
1452 shutdown: true
1453 - name: Ethernet1/3
1454 address_family:
1455 - afi: ipv4
1456 authentication_key:
1457 encryption: 7
1458 key: 12090404011C03162E
1459 state: rendered
1460
1461
1462 # Task Output:
1463 # ------------
1464 # rendered:
1465 # - interface Ethernet1/1
1466 # - ip router ospf multi-area 11.11.11.11
1467 # - ip router ospf 100 area 1.1.1.1 secondaries none
1468 # - ipv6 router ospfv3 multi-area 16.10.10.10
1469 # - ipv6 router ospfv3 200 area 2.2.2.2
1470 # - ipv6 router ospfv3 200 multi-area 21.0.0.0
1471 # - ipv6 router ospfv3 300 multi-area 50.50.50.50
1472 # - interface Ethernet1/2
1473 # - ip ospf authentication key-chain test-1
1474 # - ip ospf authentication
1475 # - ip ospf message-digest-key 10 md5 3 abc01d272be25d29
1476 # - ip ospf cost 100
1477 # - ospfv3 network broadcast
1478 # - ospfv3 shutdown
1479 # - interface Ethernet1/3
1480 # - ip ospf authentication-key 7 12090404011C03162E
1481
1482 # Using parsed
1483
1484 # parsed.cfg
1485 # ------------
1486 # interface Ethernet1/1
1487 # ip router ospf 100 area 1.1.1.1 secondaries none
1488 # ip router ospf multi-area 11.11.11.11
1489 # ipv6 router ospfv3 200 area 2.2.2.2
1490 # ipv6 router ospfv3 200 multi-area 21.0.0.0
1491 # ipv6 router ospfv3 300 multi-area 50.50.50.50
1492 # ipv6 router ospfv3 multi-area 16.10.10.10
1493 # interface Ethernet1/2
1494 # ip ospf authentication
1495 # ip ospf authentication key-chain test-1
1496 # ip ospf message-digest-key 10 md5 3 abc01d272be25d29
1497 # ip ospf cost 100
1498 # ospfv3 network broadcast
1499 # ospfv3 shutdown
1500 # interface Ethernet1/3
1501 # ip ospf authentication-key 7 12090404011C03162E
1502
1503 - name: arse externally provided OSPF interfaces config
1504 cisco.nxos.nxos_ospf_interfaces:
1505 running_config: "{{ lookup('file', 'ospf_interfaces.cfg') }}"
1506 state: parsed
1507
1508 # Task output:
1509 # ------------
1510 # parsed:
1511 # - address_family:
1512 # - afi: ipv4
1513 # multi_areas:
1514 # - 11.11.11.11
1515 # processes:
1516 # - area:
1517 # area_id: 1.1.1.1
1518 # secondaries: false
1519 # process_id: '100'
1520 # - afi: ipv6
1521 # multi_areas:
1522 # - 16.10.10.10
1523 # processes:
1524 # - area:
1525 # area_id: 2.2.2.2
1526 # multi_areas:
1527 # - 21.0.0.0
1528 # process_id: '200'
1529 # - multi_areas:
1530 # - 50.50.50.50
1531 # process_id: '300'
1532 # name: Ethernet1/1
1533 # - address_family:
1534 # - afi: ipv4
1535 # authentication:
1536 # enable: true
1537 # key_chain: test-1
1538 # cost: 100
1539 # message_digest_key:
1540 # encryption: 3
1541 # key: VALUE_SPECIFIED_IN_NO_LOG_PARAMETER
1542 # key_id: 10
1543 # - afi: ipv6
1544 # network: broadcast
1545 # shutdown: true
1546 # name: Ethernet1/2
1547 # - address_family:
1548 # - afi: ipv4
1549 # authentication_key:
1550 # encryption: 7
1551 # key: VALUE_SPECIFIED_IN_NO_LOG_PARAMETER
1552 # name: Ethernet1/3
1553
1554 # Using gathered
1555
1556 # On-box config
1557
1558 # NXOS# show running-config | section ^interface
1559 # interface Ethernet1/1
1560 # no switchport
1561 # ip router ospf 100 area 1.1.1.1 secondaries none
1562 # ip router ospf multi-area 11.11.11.12
1563 # interface Ethernet1/2
1564 # no switchport
1565 # ip ospf authentication
1566 # ip ospf authentication key-chain test-1
1567 # ip ospf message-digest-key 10 md5 3 abc01d272be25d29
1568 # ip ospf cost 100
1569 # ospfv3 network broadcast
1570 # ospfv3 shutdown
1571 # interface Ethernet1/3
1572 # no switchport
1573
1574 # Task output:
1575 # ------------
1576 # gathered:
1577 # - address_family:
1578 # - afi: ipv4
1579 # multi_areas:
1580 # - 11.11.11.12
1581 # processes:
1582 # - area:
1583 # area_id: 1.1.1.1
1584 # secondaries: false
1585 # process_id: '100'
1586 # name: Ethernet1/1
1587 # - address_family:
1588 # - afi: ipv4
1589 # authentication:
1590 # enable: true
1591 # key_chain: test-1
1592 # cost: 100
1593 # message_digest_key:
1594 # encryption: 3
1595 # key: VALUE_SPECIFIED_IN_NO_LOG_PARAMETER
1596 # key_id: 10
1597 # - afi: ipv6
1598 # network: broadcast
1599 # shutdown: true
1600 # name: Ethernet1/2
1601 # - name: Ethernet1/3
1602
1603
1604
1605 Return Values
1606 -------------
1607 Common return values are documented `here <https://docs.ansible.com/ansible/latest/reference_appendices/common_return_values.html#common-return-values>`_, the following are the fields unique to this module:
1608
1609 .. raw:: html
1610
1611 <table border=0 cellpadding=0 class="documentation-table">
1612 <tr>
1613 <th colspan="1">Key</th>
1614 <th>Returned</th>
1615 <th width="100%">Description</th>
1616 </tr>
1617 <tr>
1618 <td colspan="1">
1619 <div class="ansibleOptionAnchor" id="return-"></div>
1620 <b>after</b>
1621 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
1622 <div style="font-size: small">
1623 <span style="color: purple">list</span>
1624 </div>
1625 </td>
1626 <td>when changed</td>
1627 <td>
1628 <div>The resulting configuration model invocation.</div>
1629 <br/>
1630 <div style="font-size: smaller"><b>Sample:</b></div>
1631 <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
1632 of the parameters above.</div>
1633 </td>
1634 </tr>
1635 <tr>
1636 <td colspan="1">
1637 <div class="ansibleOptionAnchor" id="return-"></div>
1638 <b>before</b>
1639 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
1640 <div style="font-size: small">
1641 <span style="color: purple">list</span>
1642 </div>
1643 </td>
1644 <td>always</td>
1645 <td>
1646 <div>The configuration prior to the model invocation.</div>
1647 <br/>
1648 <div style="font-size: smaller"><b>Sample:</b></div>
1649 <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
1650 of the parameters above.</div>
1651 </td>
1652 </tr>
1653 <tr>
1654 <td colspan="1">
1655 <div class="ansibleOptionAnchor" id="return-"></div>
1656 <b>commands</b>
1657 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
1658 <div style="font-size: small">
1659 <span style="color: purple">list</span>
1660 </div>
1661 </td>
1662 <td>always</td>
1663 <td>
1664 <div>The set of commands pushed to the remote device.</div>
1665 <br/>
1666 <div style="font-size: smaller"><b>Sample:</b></div>
1667 <div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">[&#x27;interface Ethernet1/1&#x27;, &#x27;ip router ospf multi-area 11.11.11.11&#x27;, &#x27;ip router ospf 100 area 1.1.1.1 secondaries none&#x27;, &#x27;no ipv6 router ospfv3 multi-area 16.10.10.10&#x27;, &#x27;ipv6 router ospfv3 200 area 2.2.2.2&#x27;, &#x27;ipv6 router ospfv3 200 multi-area 21.0.0.0&#x27;, &#x27;ipv6 router ospfv3 300 multi-area 50.50.50.50&#x27;, &#x27;interface Ethernet1/2&#x27;, &#x27;no ip ospf authentication key-chain test-1&#x27;, &#x27;ip ospf authentication&#x27;]</div>
1668 </td>
1669 </tr>
1670 <tr>
1671 <td colspan="1">
1672 <div class="ansibleOptionAnchor" id="return-"></div>
1673 <b>gathered</b>
1674 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
1675 <div style="font-size: small">
1676 <span style="color: purple">list</span>
1677 </div>
1678 </td>
1679 <td>when <em>state</em> is <code>gathered</code></td>
1680 <td>
1681 <div>Facts about the network resource gathered from the remote device as structured data.</div>
1682 <br/>
1683 <div style="font-size: smaller"><b>Sample:</b></div>
1684 <div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">This output will always be in the same format as the module argspec.</div>
1685 </td>
1686 </tr>
1687 <tr>
1688 <td colspan="1">
1689 <div class="ansibleOptionAnchor" id="return-"></div>
1690 <b>parsed</b>
1691 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
1692 <div style="font-size: small">
1693 <span style="color: purple">list</span>
1694 </div>
1695 </td>
1696 <td>when <em>state</em> is <code>parsed</code></td>
1697 <td>
1698 <div>The device native config provided in <em>running_config</em> option parsed into structured data as per module argspec.</div>
1699 <br/>
1700 <div style="font-size: smaller"><b>Sample:</b></div>
1701 <div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">This output will always be in the same format as the module argspec.</div>
1702 </td>
1703 </tr>
1704 <tr>
1705 <td colspan="1">
1706 <div class="ansibleOptionAnchor" id="return-"></div>
1707 <b>rendered</b>
1708 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
1709 <div style="font-size: small">
1710 <span style="color: purple">list</span>
1711 </div>
1712 </td>
1713 <td>when <em>state</em> is <code>rendered</code></td>
1714 <td>
1715 <div>The provided configuration in the task rendered in device-native format (offline).</div>
1716 <br/>
1717 <div style="font-size: smaller"><b>Sample:</b></div>
1718 <div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">[&#x27;interface Ethernet1/1&#x27;, &#x27;ip router ospf multi-area 11.11.11.11&#x27;, &#x27;ip router ospf 100 area 1.1.1.1 secondaries none&#x27;]</div>
1719 </td>
1720 </tr>
1721 </table>
1722 <br/><br/>
1723
1724
1725 Status
1726 ------
1727
1728
1729 Authors
1730 ~~~~~~~
1731
1732 - Nilashish Chakraborty (@NilashishC)