Debian Codegraph @

ansible_collections/cisco/nxos/docs/cisco.nxos.nxos_hsrp_interfaces_module.rst

raw
1 .. _cisco.nxos.nxos_hsrp_interfaces_module:
2
3
4 *******************************
5 cisco.nxos.nxos_hsrp_interfaces
6 *******************************
7
8 **HSRP interfaces resource module**
9
10
11 Version added: 10.1.0
12
13 .. contents::
14 :local:
15 :depth: 1
16
17
18 Synopsis
19 --------
20 - Resource module to configure HSRP on interfaces.
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="4">Parameter</th>
33 <th>Choices/<font color="blue">Defaults</font></th>
34 <th width="100%">Comments</th>
35 </tr>
36 <tr>
37 <td colspan="4">
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 dictionary of HSRP configuration options to add to interface</div>
50 </td>
51 </tr>
52 <tr>
53 <td class="elbow-placeholder"></td>
54 <td colspan="3">
55 <div class="ansibleOptionAnchor" id="parameter-"></div>
56 <b>bfd</b>
57 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
58 <div style="font-size: small">
59 <span style="color: purple">string</span>
60 </div>
61 </td>
62 <td>
63 <ul style="margin: 0; padding: 0"><b>Choices:</b>
64 <li>enable</li>
65 <li>disable</li>
66 </ul>
67 </td>
68 <td>
69 <div>Enable/Disable HSRP Bidirectional Forwarding Detection (BFD) on the interface.</div>
70 <div><b>Deprecated</b>, Use standby.bfd instead, the facts would always render bfd information as a part of standby configuration</div>
71 <div>This option has been deprecated and will be removed in a release after 2028-06-01.</div>
72 </td>
73 </tr>
74 <tr>
75 <td class="elbow-placeholder"></td>
76 <td colspan="3">
77 <div class="ansibleOptionAnchor" id="parameter-"></div>
78 <b>name</b>
79 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
80 <div style="font-size: small">
81 <span style="color: purple">string</span>
82 </div>
83 </td>
84 <td>
85 </td>
86 <td>
87 <div>The name of the interface.</div>
88 </td>
89 </tr>
90 <tr>
91 <td class="elbow-placeholder"></td>
92 <td colspan="3">
93 <div class="ansibleOptionAnchor" id="parameter-"></div>
94 <b>standby</b>
95 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
96 <div style="font-size: small">
97 <span style="color: purple">dictionary</span>
98 </div>
99 </td>
100 <td>
101 </td>
102 <td>
103 <div>Standby options generic, not idempotent when version 1 (HSRP)</div>
104 </td>
105 </tr>
106 <tr>
107 <td class="elbow-placeholder"></td>
108 <td class="elbow-placeholder"></td>
109 <td colspan="2">
110 <div class="ansibleOptionAnchor" id="parameter-"></div>
111 <b>bfd</b>
112 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
113 <div style="font-size: small">
114 <span style="color: purple">boolean</span>
115 </div>
116 </td>
117 <td>
118 <ul style="margin: 0; padding: 0"><b>Choices:</b>
119 <li>no</li>
120 <li>yes</li>
121 </ul>
122 </td>
123 <td>
124 <div>Enable HSRP BFD</div>
125 </td>
126 </tr>
127 <tr>
128 <td class="elbow-placeholder"></td>
129 <td class="elbow-placeholder"></td>
130 <td colspan="2">
131 <div class="ansibleOptionAnchor" id="parameter-"></div>
132 <b>delay</b>
133 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
134 <div style="font-size: small">
135 <span style="color: purple">dictionary</span>
136 </div>
137 </td>
138 <td>
139 </td>
140 <td>
141 <div>HSRP initialization delay</div>
142 </td>
143 </tr>
144 <tr>
145 <td class="elbow-placeholder"></td>
146 <td class="elbow-placeholder"></td>
147 <td class="elbow-placeholder"></td>
148 <td colspan="1">
149 <div class="ansibleOptionAnchor" id="parameter-"></div>
150 <b>minimum</b>
151 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
152 <div style="font-size: small">
153 <span style="color: purple">integer</span>
154 </div>
155 </td>
156 <td>
157 </td>
158 <td>
159 <div>Delay at least this long</div>
160 </td>
161 </tr>
162 <tr>
163 <td class="elbow-placeholder"></td>
164 <td class="elbow-placeholder"></td>
165 <td class="elbow-placeholder"></td>
166 <td colspan="1">
167 <div class="ansibleOptionAnchor" id="parameter-"></div>
168 <b>reload</b>
169 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
170 <div style="font-size: small">
171 <span style="color: purple">integer</span>
172 </div>
173 </td>
174 <td>
175 </td>
176 <td>
177 <div>Delay after reload</div>
178 </td>
179 </tr>
180
181 <tr>
182 <td class="elbow-placeholder"></td>
183 <td class="elbow-placeholder"></td>
184 <td colspan="2">
185 <div class="ansibleOptionAnchor" id="parameter-"></div>
186 <b>mac_refresh</b>
187 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
188 <div style="font-size: small">
189 <span style="color: purple">integer</span>
190 </div>
191 </td>
192 <td>
193 </td>
194 <td>
195 <div>Refresh MAC cache on switch by periodically sending packet from virtual mac address</div>
196 </td>
197 </tr>
198 <tr>
199 <td class="elbow-placeholder"></td>
200 <td class="elbow-placeholder"></td>
201 <td colspan="2">
202 <div class="ansibleOptionAnchor" id="parameter-"></div>
203 <b>use_bia</b>
204 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
205 <div style="font-size: small">
206 <span style="color: purple">dictionary</span>
207 </div>
208 </td>
209 <td>
210 </td>
211 <td>
212 <div>HSRP uses interface&#x27;s burned in address (does not work with mac address)</div>
213 </td>
214 </tr>
215 <tr>
216 <td class="elbow-placeholder"></td>
217 <td class="elbow-placeholder"></td>
218 <td class="elbow-placeholder"></td>
219 <td colspan="1">
220 <div class="ansibleOptionAnchor" id="parameter-"></div>
221 <b>scope</b>
222 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
223 <div style="font-size: small">
224 <span style="color: purple">boolean</span>
225 </div>
226 </td>
227 <td>
228 <ul style="margin: 0; padding: 0"><b>Choices:</b>
229 <li>no</li>
230 <li>yes</li>
231 </ul>
232 </td>
233 <td>
234 <div>Scope interface option (hsrp use-bia scope interface)</div>
235 </td>
236 </tr>
237 <tr>
238 <td class="elbow-placeholder"></td>
239 <td class="elbow-placeholder"></td>
240 <td class="elbow-placeholder"></td>
241 <td colspan="1">
242 <div class="ansibleOptionAnchor" id="parameter-"></div>
243 <b>set</b>
244 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
245 <div style="font-size: small">
246 <span style="color: purple">boolean</span>
247 </div>
248 </td>
249 <td>
250 <ul style="margin: 0; padding: 0"><b>Choices:</b>
251 <li>no</li>
252 <li>yes</li>
253 </ul>
254 </td>
255 <td>
256 <div>Set use-bia only</div>
257 </td>
258 </tr>
259
260 <tr>
261 <td class="elbow-placeholder"></td>
262 <td class="elbow-placeholder"></td>
263 <td colspan="2">
264 <div class="ansibleOptionAnchor" id="parameter-"></div>
265 <b>version</b>
266 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
267 <div style="font-size: small">
268 <span style="color: purple">integer</span>
269 </div>
270 </td>
271 <td>
272 <ul style="margin: 0; padding: 0"><b>Choices:</b>
273 <li>1</li>
274 <li>2</li>
275 </ul>
276 </td>
277 <td>
278 <div>HSRP version</div>
279 </td>
280 </tr>
281
282 <tr>
283 <td class="elbow-placeholder"></td>
284 <td colspan="3">
285 <div class="ansibleOptionAnchor" id="parameter-"></div>
286 <b>standby_options</b>
287 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
288 <div style="font-size: small">
289 <span style="color: purple">list</span>
290 / <span style="color: purple">elements=dictionary</span>
291 </div>
292 </td>
293 <td>
294 </td>
295 <td>
296 <div>Group number and group options for standby (HSRP)</div>
297 </td>
298 </tr>
299 <tr>
300 <td class="elbow-placeholder"></td>
301 <td class="elbow-placeholder"></td>
302 <td colspan="2">
303 <div class="ansibleOptionAnchor" id="parameter-"></div>
304 <b>authentication</b>
305 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
306 <div style="font-size: small">
307 <span style="color: purple">dictionary</span>
308 </div>
309 </td>
310 <td>
311 </td>
312 <td>
313 <div>Authentication configuration</div>
314 </td>
315 </tr>
316 <tr>
317 <td class="elbow-placeholder"></td>
318 <td class="elbow-placeholder"></td>
319 <td class="elbow-placeholder"></td>
320 <td colspan="1">
321 <div class="ansibleOptionAnchor" id="parameter-"></div>
322 <b>key_chain</b>
323 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
324 <div style="font-size: small">
325 <span style="color: purple">string</span>
326 </div>
327 </td>
328 <td>
329 </td>
330 <td>
331 <div>Set key chain</div>
332 </td>
333 </tr>
334 <tr>
335 <td class="elbow-placeholder"></td>
336 <td class="elbow-placeholder"></td>
337 <td class="elbow-placeholder"></td>
338 <td colspan="1">
339 <div class="ansibleOptionAnchor" id="parameter-"></div>
340 <b>key_string</b>
341 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
342 <div style="font-size: small">
343 <span style="color: purple">string</span>
344 </div>
345 </td>
346 <td>
347 </td>
348 <td>
349 <div>Set key string</div>
350 </td>
351 </tr>
352 <tr>
353 <td class="elbow-placeholder"></td>
354 <td class="elbow-placeholder"></td>
355 <td class="elbow-placeholder"></td>
356 <td colspan="1">
357 <div class="ansibleOptionAnchor" id="parameter-"></div>
358 <b>password_text</b>
359 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
360 <div style="font-size: small">
361 <span style="color: purple">string</span>
362 </div>
363 </td>
364 <td>
365 </td>
366 <td>
367 <div>Password text valid for plain text and and key-string</div>
368 </td>
369 </tr>
370
371 <tr>
372 <td class="elbow-placeholder"></td>
373 <td class="elbow-placeholder"></td>
374 <td colspan="2">
375 <div class="ansibleOptionAnchor" id="parameter-"></div>
376 <b>follow</b>
377 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
378 <div style="font-size: small">
379 <span style="color: purple">string</span>
380 </div>
381 </td>
382 <td>
383 </td>
384 <td>
385 <div>Groups to be followed</div>
386 </td>
387 </tr>
388 <tr>
389 <td class="elbow-placeholder"></td>
390 <td class="elbow-placeholder"></td>
391 <td colspan="2">
392 <div class="ansibleOptionAnchor" id="parameter-"></div>
393 <b>group_name</b>
394 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
395 <div style="font-size: small">
396 <span style="color: purple">string</span>
397 </div>
398 </td>
399 <td>
400 </td>
401 <td>
402 <div>Redundancy name string</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>group_no</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>Group number</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>ip</b>
428 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
429 <div style="font-size: small">
430 <span style="color: purple">list</span>
431 / <span style="color: purple">elements=dictionary</span>
432 </div>
433 </td>
434 <td>
435 </td>
436 <td>
437 <div>Enable HSRP IPv4 and set the virtual IP address</div>
438 </td>
439 </tr>
440 <tr>
441 <td class="elbow-placeholder"></td>
442 <td class="elbow-placeholder"></td>
443 <td class="elbow-placeholder"></td>
444 <td colspan="1">
445 <div class="ansibleOptionAnchor" id="parameter-"></div>
446 <b>secondary</b>
447 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
448 <div style="font-size: small">
449 <span style="color: purple">boolean</span>
450 </div>
451 </td>
452 <td>
453 <ul style="margin: 0; padding: 0"><b>Choices:</b>
454 <li>no</li>
455 <li>yes</li>
456 </ul>
457 </td>
458 <td>
459 <div>Make this IP address a secondary virtual IP address</div>
460 </td>
461 </tr>
462 <tr>
463 <td class="elbow-placeholder"></td>
464 <td class="elbow-placeholder"></td>
465 <td class="elbow-placeholder"></td>
466 <td colspan="1">
467 <div class="ansibleOptionAnchor" id="parameter-"></div>
468 <b>virtual_ip</b>
469 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
470 <div style="font-size: small">
471 <span style="color: purple">string</span>
472 </div>
473 </td>
474 <td>
475 </td>
476 <td>
477 <div>Virtual IP address</div>
478 </td>
479 </tr>
480
481 <tr>
482 <td class="elbow-placeholder"></td>
483 <td class="elbow-placeholder"></td>
484 <td colspan="2">
485 <div class="ansibleOptionAnchor" id="parameter-"></div>
486 <b>mac_address</b>
487 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
488 <div style="font-size: small">
489 <span style="color: purple">string</span>
490 </div>
491 </td>
492 <td>
493 </td>
494 <td>
495 <div>Virtual MAC address</div>
496 </td>
497 </tr>
498 <tr>
499 <td class="elbow-placeholder"></td>
500 <td class="elbow-placeholder"></td>
501 <td colspan="2">
502 <div class="ansibleOptionAnchor" id="parameter-"></div>
503 <b>preempt</b>
504 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
505 <div style="font-size: small">
506 <span style="color: purple">dictionary</span>
507 </div>
508 </td>
509 <td>
510 </td>
511 <td>
512 <div>Overthrow lower priority Active routers</div>
513 </td>
514 </tr>
515 <tr>
516 <td class="elbow-placeholder"></td>
517 <td class="elbow-placeholder"></td>
518 <td class="elbow-placeholder"></td>
519 <td colspan="1">
520 <div class="ansibleOptionAnchor" id="parameter-"></div>
521 <b>minimum</b>
522 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
523 <div style="font-size: small">
524 <span style="color: purple">integer</span>
525 </div>
526 </td>
527 <td>
528 </td>
529 <td>
530 <div>Delay at least this long</div>
531 </td>
532 </tr>
533 <tr>
534 <td class="elbow-placeholder"></td>
535 <td class="elbow-placeholder"></td>
536 <td class="elbow-placeholder"></td>
537 <td colspan="1">
538 <div class="ansibleOptionAnchor" id="parameter-"></div>
539 <b>reload</b>
540 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
541 <div style="font-size: small">
542 <span style="color: purple">integer</span>
543 </div>
544 </td>
545 <td>
546 </td>
547 <td>
548 <div>Delay after reload</div>
549 </td>
550 </tr>
551 <tr>
552 <td class="elbow-placeholder"></td>
553 <td class="elbow-placeholder"></td>
554 <td class="elbow-placeholder"></td>
555 <td colspan="1">
556 <div class="ansibleOptionAnchor" id="parameter-"></div>
557 <b>sync</b>
558 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
559 <div style="font-size: small">
560 <span style="color: purple">integer</span>
561 </div>
562 </td>
563 <td>
564 </td>
565 <td>
566 <div>Wait for IP redundancy clients</div>
567 </td>
568 </tr>
569
570 <tr>
571 <td class="elbow-placeholder"></td>
572 <td class="elbow-placeholder"></td>
573 <td colspan="2">
574 <div class="ansibleOptionAnchor" id="parameter-"></div>
575 <b>priority</b>
576 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
577 <div style="font-size: small">
578 <span style="color: purple">dictionary</span>
579 </div>
580 </td>
581 <td>
582 </td>
583 <td>
584 <div>Priority level</div>
585 </td>
586 </tr>
587 <tr>
588 <td class="elbow-placeholder"></td>
589 <td class="elbow-placeholder"></td>
590 <td class="elbow-placeholder"></td>
591 <td colspan="1">
592 <div class="ansibleOptionAnchor" id="parameter-"></div>
593 <b>level</b>
594 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
595 <div style="font-size: small">
596 <span style="color: purple">integer</span>
597 </div>
598 </td>
599 <td>
600 <b>Default:</b><br/><div style="color: blue">100</div>
601 </td>
602 <td>
603 <div>Priority level value</div>
604 </td>
605 </tr>
606 <tr>
607 <td class="elbow-placeholder"></td>
608 <td class="elbow-placeholder"></td>
609 <td class="elbow-placeholder"></td>
610 <td colspan="1">
611 <div class="ansibleOptionAnchor" id="parameter-"></div>
612 <b>lower</b>
613 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
614 <div style="font-size: small">
615 <span style="color: purple">integer</span>
616 </div>
617 </td>
618 <td>
619 </td>
620 <td>
621 <div>Set lower threshold value (forwarding-threshold)</div>
622 </td>
623 </tr>
624 <tr>
625 <td class="elbow-placeholder"></td>
626 <td class="elbow-placeholder"></td>
627 <td class="elbow-placeholder"></td>
628 <td colspan="1">
629 <div class="ansibleOptionAnchor" id="parameter-"></div>
630 <b>upper</b>
631 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
632 <div style="font-size: small">
633 <span style="color: purple">integer</span>
634 </div>
635 </td>
636 <td>
637 </td>
638 <td>
639 <div>Set upper threshold value (forwarding-threshold)</div>
640 </td>
641 </tr>
642
643 <tr>
644 <td class="elbow-placeholder"></td>
645 <td class="elbow-placeholder"></td>
646 <td colspan="2">
647 <div class="ansibleOptionAnchor" id="parameter-"></div>
648 <b>timer</b>
649 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
650 <div style="font-size: small">
651 <span style="color: purple">dictionary</span>
652 </div>
653 </td>
654 <td>
655 </td>
656 <td>
657 <div>Overthrow lower priority Active routers</div>
658 </td>
659 </tr>
660 <tr>
661 <td class="elbow-placeholder"></td>
662 <td class="elbow-placeholder"></td>
663 <td class="elbow-placeholder"></td>
664 <td colspan="1">
665 <div class="ansibleOptionAnchor" id="parameter-"></div>
666 <b>hello_interval</b>
667 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
668 <div style="font-size: small">
669 <span style="color: purple">integer</span>
670 </div>
671 </td>
672 <td>
673 </td>
674 <td>
675 <div>Hello interval in seconds</div>
676 </td>
677 </tr>
678 <tr>
679 <td class="elbow-placeholder"></td>
680 <td class="elbow-placeholder"></td>
681 <td class="elbow-placeholder"></td>
682 <td colspan="1">
683 <div class="ansibleOptionAnchor" id="parameter-"></div>
684 <b>hold_time</b>
685 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
686 <div style="font-size: small">
687 <span style="color: purple">integer</span>
688 </div>
689 </td>
690 <td>
691 </td>
692 <td>
693 <div>Hold time in seconds</div>
694 </td>
695 </tr>
696 <tr>
697 <td class="elbow-placeholder"></td>
698 <td class="elbow-placeholder"></td>
699 <td class="elbow-placeholder"></td>
700 <td colspan="1">
701 <div class="ansibleOptionAnchor" id="parameter-"></div>
702 <b>msec</b>
703 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
704 <div style="font-size: small">
705 <span style="color: purple">boolean</span>
706 </div>
707 </td>
708 <td>
709 <ul style="margin: 0; padding: 0"><b>Choices:</b>
710 <li>no</li>
711 <li>yes</li>
712 </ul>
713 </td>
714 <td>
715 <div>Specify hello interval in milliseconds</div>
716 </td>
717 </tr>
718
719 <tr>
720 <td class="elbow-placeholder"></td>
721 <td class="elbow-placeholder"></td>
722 <td colspan="2">
723 <div class="ansibleOptionAnchor" id="parameter-"></div>
724 <b>track</b>
725 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
726 <div style="font-size: small">
727 <span style="color: purple">list</span>
728 / <span style="color: purple">elements=dictionary</span>
729 </div>
730 </td>
731 <td>
732 </td>
733 <td>
734 <div>Priority tracking</div>
735 </td>
736 </tr>
737 <tr>
738 <td class="elbow-placeholder"></td>
739 <td class="elbow-placeholder"></td>
740 <td class="elbow-placeholder"></td>
741 <td colspan="1">
742 <div class="ansibleOptionAnchor" id="parameter-"></div>
743 <b>decrement</b>
744 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
745 <div style="font-size: small">
746 <span style="color: purple">integer</span>
747 </div>
748 </td>
749 <td>
750 </td>
751 <td>
752 <div>Priority decrement</div>
753 </td>
754 </tr>
755 <tr>
756 <td class="elbow-placeholder"></td>
757 <td class="elbow-placeholder"></td>
758 <td class="elbow-placeholder"></td>
759 <td colspan="1">
760 <div class="ansibleOptionAnchor" id="parameter-"></div>
761 <b>object_no</b>
762 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
763 <div style="font-size: small">
764 <span style="color: purple">integer</span>
765 </div>
766 </td>
767 <td>
768 </td>
769 <td>
770 <div>Track object number</div>
771 </td>
772 </tr>
773
774
775
776 <tr>
777 <td colspan="4">
778 <div class="ansibleOptionAnchor" id="parameter-"></div>
779 <b>running_config</b>
780 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
781 <div style="font-size: small">
782 <span style="color: purple">string</span>
783 </div>
784 </td>
785 <td>
786 </td>
787 <td>
788 <div>This option is used only with state <em>parsed</em>.</div>
789 <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 &#x27;^interface&#x27;</b>.</div>
790 <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>
791 </td>
792 </tr>
793 <tr>
794 <td colspan="4">
795 <div class="ansibleOptionAnchor" id="parameter-"></div>
796 <b>state</b>
797 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
798 <div style="font-size: small">
799 <span style="color: purple">string</span>
800 </div>
801 </td>
802 <td>
803 <ul style="margin: 0; padding: 0"><b>Choices:</b>
804 <li><div style="color: blue"><b>merged</b>&nbsp;&larr;</div></li>
805 <li>replaced</li>
806 <li>overridden</li>
807 <li>deleted</li>
808 <li>rendered</li>
809 <li>gathered</li>
810 <li>parsed</li>
811 </ul>
812 </td>
813 <td>
814 <div>The state the configuration should be left in</div>
815 <div>The states <em>rendered</em>, <em>gathered</em> and <em>parsed</em> does not perform any change on the device.</div>
816 <div>The state <em>rendered</em> will transform the configuration in <code>config</code> option to platform specific CLI commands which will be returned in the <em>rendered</em> key within the result. For state <em>rendered</em> active connection to remote host is not required.</div>
817 <div>The state <em>gathered</em> will fetch the running configuration from device and transform it into structured data in the format as per the resource module argspec and the value is returned in the <em>gathered</em> key within the result.</div>
818 <div>The state <em>parsed</em> reads the configuration from <code>running_config</code> option and transforms it into JSON format as per the resource module parameters and the value is returned in the <em>parsed</em> key within the result. The value of <code>running_config</code> option should be the same format as the output of command <em>show running-config | section ^interface</em> executed on device. For state <em>parsed</em> active connection to remote host is not required.</div>
819 </td>
820 </tr>
821 </table>
822 <br/>
823
824
825 Notes
826 -----
827
828 .. note::
829 - Tested against NX-OS 10.4(2) Nexus 9000v.
830 - Feature bfd and hsrp, should be enabled for this module.
831 - Unsupported for Cisco MDS
832
833
834
835 Examples
836 --------
837
838 .. code-block:: yaml
839
840 # Using merged
841
842 # Before state:
843 # -------------
844 #
845 # switch# show running-config | section interface
846 # interface Vlan1
847 # interface Vlan10
848 # interface Vlan14
849 # bandwidth 99999
850 # interface Vlan1000
851 # interface Ethernet1/1
852 # interface Ethernet1/2
853 # interface Ethernet1/3
854 # interface Ethernet1/4
855 # interface Ethernet1/5
856 # interface Ethernet1/6
857 # interface Ethernet1/7
858
859 - name: Merge provided configuration with device configuration
860 cisco.nxos.nxos_hsrp_interfaces:
861 config:
862 - name: Ethernet1/1
863 standby:
864 bfd: true
865 mac_refresh: 400
866 version: 2
867 standby_options:
868 - authentication:
869 key_string: SECUREKEY10
870 group_name: VLAN10-GROUP
871 group_no: 10
872 ip:
873 - secondary: true
874 virtual_ip: 10.10.10.2
875 mac_address: 00CC.10DD.10EE
876 state: merged
877
878 # Task Output
879 # -----------
880 #
881 # before:
882 # - name: Vlan1
883 # - name: Vlan10
884 # - name: Vlan14
885 # - name: Vlan1000
886 # - name: Ethernet1/1
887 # standby:
888 # bfd: true
889 # - name: Ethernet1/2
890 # - name: Ethernet1/3
891 # - name: Ethernet1/4
892 # - name: Ethernet1/5
893 # - name: Ethernet1/6
894 # - name: Ethernet1/7
895 # commands:
896 # - interface Ethernet1/1
897 # - hsrp version 2
898 # - hsrp mac-refresh 400
899 # - hsrp 10
900 # - mac-address 00CC.10DD.10EE
901 # - name VLAN10-GROUP
902 # - authentication md5 key-string SECUREKEY10
903 # - ip 10.10.10.2 secondary
904 # - interface Ethernet1/2
905 # - hsrp bfd
906 # - hsrp version 2
907 # - hsrp mac-refresh 400
908 # - hsrp 20
909 # - mac-address 00CC.10DD.10EF
910 # - name VLAN20-GROUP
911 # - authentication md5 key-chain SECUREKEY20
912 # - ip 10.10.10.3 secondary
913 # after:
914 # - name: Vlan1
915 # - name: Vlan10
916 # - name: Vlan14
917 # - name: Vlan1000
918 # - name: Ethernet1/1
919 # standby:
920 # bfd: true
921 # mac_refresh: 400
922 # version: 2
923 # standby_options:
924 # - authentication:
925 # key_string: SECUREKEY10
926 # group_name: VLAN10-GROUP
927 # group_no: 10
928 # ip:
929 # - secondary: true
930 # virtual_ip: 10.10.10.2
931 # mac_address: 00CC.10DD.10EE
932 # - name: Ethernet1/2
933 # standby:
934 # bfd: true
935 # mac_refresh: 400
936 # version: 2
937 # standby_options:
938 # - authentication:
939 # key_chain: SECUREKEY20
940 # group_name: VLAN20-GROUP
941 # group_no: 20
942 # ip:
943 # - secondary: true
944 # virtual_ip: 10.10.10.3
945 # mac_address: 00CC.10DD.10EF
946 # - name: Ethernet1/3
947 # - name: Ethernet1/4
948 # - name: Ethernet1/5
949 # - name: Ethernet1/6
950 # - name: Ethernet1/7
951
952 # After state:
953 # ------------
954 #
955 # switch# show running-config | section interface
956 # interface Vlan1
957 # interface Vlan10
958 # interface Vlan14
959 # bandwidth 99999
960 # interface Vlan1000
961 # interface Ethernet1/1
962 # no switchport
963 # hsrp bfd
964 # hsrp version 2
965 # hsrp mac-refresh 400
966 # hsrp 10
967 # authentication md5 key-string SECUREKEY10
968 # name VLAN10-GROUP
969 # mac-address 00CC.10DD.10EE
970 # ip 10.10.10.2 secondary
971 # interface Ethernet1/2
972 # no switchport
973 # hsrp bfd
974 # hsrp version 2
975 # hsrp mac-refresh 400
976 # hsrp 20
977 # authentication md5 key-chain SECUREKEY20
978 # name VLAN20-GROUP
979 # mac-address 00CC.10DD.10EF
980 # ip 10.10.10.3 secondary
981 # interface Ethernet1/3
982 # interface Ethernet1/4
983 # interface Ethernet1/5
984 # interface Ethernet1/6
985 # interface Ethernet1/7
986
987 # Using replaced
988
989 # Before state:
990 # -------------
991 #
992 # switch# show running-config | section interface
993 # interface Vlan1
994 # interface Vlan10
995 # interface Vlan14
996 # bandwidth 99999
997 # interface Vlan1000
998 # interface Ethernet1/1
999 # no switchport
1000 # hsrp bfd
1001 # hsrp version 2
1002 # hsrp mac-refresh 400
1003 # hsrp 10
1004 # authentication md5 key-string SECUREKEY10
1005 # name VLAN10-GROUP
1006 # mac-address 00CC.10DD.10EE
1007 # ip 10.10.10.2 secondary
1008 # interface Ethernet1/2
1009 # no switchport
1010 # hsrp bfd
1011 # hsrp version 2
1012 # hsrp mac-refresh 400
1013 # hsrp 20
1014 # authentication md5 key-chain SECUREKEY20
1015 # name VLAN20-GROUP
1016 # mac-address 00CC.10DD.10EF
1017 # ip 10.10.10.3 secondary
1018 # interface Ethernet1/3
1019 # interface Ethernet1/4
1020 # interface Ethernet1/5
1021 # interface Ethernet1/6
1022 # interface Ethernet1/7
1023
1024 - name: Replaces device configuration of listed interfaces with provided configuration
1025 cisco.nxos.nxos_hsrp_interfaces:
1026 config:
1027 - name: Ethernet1/1
1028 standby:
1029 bfd: true
1030 mac_refresh: 400
1031 version: 2
1032 standby_options:
1033 - authentication:
1034 key_string: SECUREKEY10
1035 group_name: VLAN11-GROUP
1036 group_no: 11
1037 mac_address: 00CC.10DD.10EE
1038 - name: Ethernet1/2
1039 standby:
1040 bfd: true
1041 mac_refresh: 400
1042 version: 2
1043 standby_options:
1044 - authentication:
1045 key_chain: SECUREKEY20
1046 group_name: VLAN20-GROUP
1047 group_no: 20
1048 mac_address: 00CC.10DD.10EF
1049 state: replaced
1050
1051 # Task Output
1052 # -----------
1053 #
1054 # before:
1055 # - name: Vlan1
1056 # - name: Vlan10
1057 # - name: Vlan14
1058 # - name: Vlan1000
1059 # - name: Ethernet1/1
1060 # standby:
1061 # bfd: true
1062 # mac_refresh: 400
1063 # version: 2
1064 # standby_options:
1065 # - authentication:
1066 # key_string: SECUREKEY10
1067 # group_name: VLAN10-GROUP
1068 # group_no: 10
1069 # ip:
1070 # - secondary: true
1071 # virtual_ip: 10.10.10.2
1072 # mac_address: 00CC.10DD.10EE
1073 # - name: Ethernet1/2
1074 # standby:
1075 # bfd: true
1076 # mac_refresh: 400
1077 # version: 2
1078 # standby_options:
1079 # - authentication:
1080 # key_chain: SECUREKEY20
1081 # group_name: VLAN20-GROUP
1082 # group_no: 20
1083 # ip:
1084 # - secondary: true
1085 # virtual_ip: 10.10.10.3
1086 # mac_address: 00CC.10DD.10EF
1087 # - name: Ethernet1/3
1088 # - name: Ethernet1/4
1089 # - name: Ethernet1/5
1090 # - name: Ethernet1/6
1091 # - name: Ethernet1/7
1092 # commands:
1093 # - interface Ethernet1/1
1094 # - hsrp 11
1095 # - mac-address 00CC.10DD.10EE
1096 # - name VLAN11-GROUP
1097 # - authentication md5 key-string SECUREKEY10
1098 # - no hsrp 10
1099 # - interface Ethernet1/2
1100 # - hsrp 20
1101 # - no ip 10.10.10.3 secondary
1102 # after:
1103 # - name: Vlan1
1104 # - name: Vlan10
1105 # - name: Vlan14
1106 # - name: Vlan1000
1107 # - name: Ethernet1/1
1108 # standby:
1109 # bfd: true
1110 # mac_refresh: 400
1111 # version: 2
1112 # standby_options:
1113 # - authentication:
1114 # key_string: SECUREKEY10
1115 # group_name: VLAN11-GROUP
1116 # group_no: 11
1117 # mac_address: 00CC.10DD.10EE
1118 # - name: Ethernet1/2
1119 # standby:
1120 # bfd: true
1121 # mac_refresh: 400
1122 # version: 2
1123 # standby_options:
1124 # - authentication:
1125 # key_chain: SECUREKEY20
1126 # group_name: VLAN20-GROUP
1127 # group_no: 20
1128 # mac_address: 00CC.10DD.10EF
1129 # - name: Ethernet1/3
1130 # - name: Ethernet1/4
1131 # - name: Ethernet1/5
1132 # - name: Ethernet1/6
1133 # - name: Ethernet1/7
1134
1135
1136 # After state:
1137 # ------------
1138 #
1139 # switch# show running-config | section interface
1140 # interface Vlan1
1141 # interface Vlan10
1142 # interface Vlan14
1143 # bandwidth 99999
1144 # interface Vlan1000
1145 # interface Ethernet1/1
1146 # no switchport
1147 # hsrp bfd
1148 # hsrp version 2
1149 # hsrp mac-refresh 400
1150 # hsrp 11
1151 # authentication md5 key-string SECUREKEY10
1152 # name VLAN11-GROUP
1153 # mac-address 00CC.10DD.10EE
1154 # interface Ethernet1/2
1155 # no switchport
1156 # hsrp bfd
1157 # hsrp version 2
1158 # hsrp mac-refresh 400
1159 # hsrp 20
1160 # authentication md5 key-chain SECUREKEY20
1161 # name VLAN20-GROUP
1162 # mac-address 00CC.10DD.10EF
1163 # interface Ethernet1/3
1164 # interface Ethernet1/4
1165 # interface Ethernet1/5
1166 # interface Ethernet1/6
1167 # interface Ethernet1/7
1168
1169 # Using overridden
1170
1171 # Before state:
1172 # -------------
1173 #
1174 # switch# show running-config | section interface
1175 # interface Vlan1
1176 # interface Vlan10
1177 # interface Vlan14
1178 # bandwidth 99999
1179 # interface Vlan1000
1180 # interface Ethernet1/1
1181 # no switchport
1182 # hsrp bfd
1183 # hsrp version 2
1184 # hsrp mac-refresh 400
1185 # hsrp 10
1186 # authentication md5 key-string SECUREKEY10
1187 # name VLAN10-GROUP
1188 # mac-address 00CC.10DD.10EE
1189 # ip 10.10.10.2 secondary
1190 # interface Ethernet1/2
1191 # no switchport
1192 # hsrp bfd
1193 # hsrp version 2
1194 # hsrp mac-refresh 400
1195 # hsrp 20
1196 # authentication md5 key-chain SECUREKEY20
1197 # name VLAN20-GROUP
1198 # mac-address 00CC.10DD.10EF
1199 # ip 10.10.10.3 secondary
1200
1201 - name: Override device configuration of all interfaces with provided configuration
1202 cisco.nxos.nxos_hsrp_interfaces:
1203 config:
1204 - name: Ethernet1/1
1205 standby:
1206 bfd: true
1207 mac_refresh: 400
1208 version: 2
1209 standby_options:
1210 - authentication:
1211 key_string: SECUREKEY10
1212 group_name: VLAN11-GROUP
1213 group_no: 11
1214 mac_address: 00CC.10DD.10EE
1215 - name: Ethernet1/2
1216 standby:
1217 bfd: true
1218 mac_refresh: 400
1219 version: 2
1220 standby_options:
1221 - authentication:
1222 key_chain: SECUREKEY20
1223 group_name: VLAN20-GROUP
1224 group_no: 20
1225 mac_address: 00CC.10DD.10EF
1226 state: overridden
1227
1228 # Task Output
1229 # -----------
1230 #
1231 # before:
1232 # - name: Vlan1
1233 # - name: Vlan10
1234 # - name: Vlan14
1235 # - name: Vlan1000
1236 # - name: Ethernet1/1
1237 # standby:
1238 # bfd: true
1239 # mac_refresh: 400
1240 # version: 2
1241 # standby_options:
1242 # - authentication:
1243 # key_string: SECUREKEY10
1244 # group_name: VLAN10-GROUP
1245 # group_no: 10
1246 # ip:
1247 # - secondary: true
1248 # virtual_ip: 10.10.10.2
1249 # mac_address: 00CC.10DD.10EE
1250 # - name: Ethernet1/2
1251 # standby:
1252 # bfd: true
1253 # mac_refresh: 400
1254 # version: 2
1255 # standby_options:
1256 # - authentication:
1257 # key_chain: SECUREKEY20
1258 # group_name: VLAN20-GROUP
1259 # group_no: 20
1260 # ip:
1261 # - secondary: true
1262 # virtual_ip: 10.10.10.3
1263 # mac_address: 00CC.10DD.10EF
1264 # - name: Ethernet1/3
1265 # - name: Ethernet1/4
1266 # - name: Ethernet1/5
1267 # - name: Ethernet1/6
1268 # - name: Ethernet1/7
1269 # commands:
1270 # - interface Ethernet1/1
1271 # - hsrp 11
1272 # - mac-address 00CC.10DD.10EE
1273 # - name VLAN11-GROUP
1274 # - authentication md5 key-string SECUREKEY10
1275 # - no hsrp 10
1276 # - interface Ethernet1/2
1277 # - hsrp 20
1278 # - no ip 10.10.10.3 secondary
1279 # after:
1280 # - name: Vlan1
1281 # - name: Vlan10
1282 # - name: Vlan14
1283 # - name: Vlan1000
1284 # - name: Ethernet1/1
1285 # standby:
1286 # bfd: true
1287 # mac_refresh: 400
1288 # version: 2
1289 # standby_options:
1290 # - authentication:
1291 # key_string: SECUREKEY10
1292 # group_name: VLAN11-GROUP
1293 # group_no: 11
1294 # mac_address: 00CC.10DD.10EE
1295 # - name: Ethernet1/2
1296 # standby:
1297 # bfd: true
1298 # mac_refresh: 400
1299 # version: 2
1300 # standby_options:
1301 # - authentication:
1302 # key_chain: SECUREKEY20
1303 # group_name: VLAN20-GROUP
1304 # group_no: 20
1305 # mac_address: 00CC.10DD.10EF
1306 # - name: Ethernet1/3
1307 # - name: Ethernet1/4
1308 # - name: Ethernet1/5
1309 # - name: Ethernet1/6
1310 # - name: Ethernet1/7
1311
1312 # After state:
1313 # ------------
1314 #
1315 # switch# show running-config | section interface
1316 # interface Vlan1
1317 # interface Vlan10
1318 # interface Vlan14
1319 # bandwidth 99999
1320 # interface Vlan1000
1321 # interface Ethernet1/1
1322 # no switchport
1323 # hsrp bfd
1324 # hsrp version 2
1325 # hsrp mac-refresh 400
1326 # hsrp 11
1327 # authentication md5 key-string SECUREKEY10
1328 # name VLAN11-GROUP
1329 # mac-address 00CC.10DD.10EE
1330 # interface Ethernet1/2
1331 # no switchport
1332 # hsrp bfd
1333 # hsrp version 2
1334 # hsrp mac-refresh 400
1335 # hsrp 20
1336 # authentication md5 key-chain SECUREKEY20
1337 # name VLAN20-GROUP
1338 # mac-address 00CC.10DD.10EF
1339 # interface Ethernet1/3
1340 # interface Ethernet1/4
1341 # interface Ethernet1/5
1342 # interface Ethernet1/6
1343 # interface Ethernet1/7
1344
1345
1346 # Using deleted
1347
1348 # Before state:
1349 # -------------
1350 #
1351 # switch# show running-config | section interface
1352 # interface Vlan1
1353 # interface Vlan10
1354 # interface Vlan14
1355 # bandwidth 99999
1356 # interface Vlan1000
1357 # interface Ethernet1/1
1358 # no switchport
1359 # hsrp bfd
1360 # hsrp version 2
1361 # hsrp mac-refresh 400
1362 # hsrp 10
1363 # authentication md5 key-string SECUREKEY10
1364 # name VLAN10-GROUP
1365 # mac-address 00CC.10DD.10EE
1366 # ip 10.10.10.2 secondary
1367 # interface Ethernet1/2
1368 # no switchport
1369 # hsrp bfd
1370 # hsrp version 2
1371 # hsrp mac-refresh 400
1372 # hsrp 20
1373 # authentication md5 key-chain SECUREKEY20
1374 # name VLAN20-GROUP
1375 # mac-address 00CC.10DD.10EF
1376 # ip 10.10.10.3 secondary
1377 # interface Ethernet1/3
1378 # interface Ethernet1/4
1379 # interface Ethernet1/5
1380 # interface Ethernet1/6
1381 # interface Ethernet1/7
1382
1383 - name: Delete or return interface parameters to default settings
1384 cisco.nxos.nxos_hsrp_interfaces:
1385 config:
1386 - name: Ethernet1/1
1387 standby:
1388 bfd: true
1389 mac_refresh: 400
1390 version: 2
1391 standby_options:
1392 - authentication:
1393 key_string: SECUREKEY10
1394 group_name: VLAN11-GROUP
1395 group_no: 11
1396 mac_address: 00CC.10DD.10EE
1397 - name: Ethernet1/2
1398 standby:
1399 bfd: true
1400 mac_refresh: 400
1401 version: 2
1402 standby_options:
1403 - authentication:
1404 key_chain: SECUREKEY20
1405 group_name: VLAN20-GROUP
1406 group_no: 20
1407 mac_address: 00CC.10DD.10EF
1408 state: deleted
1409
1410 # Task Output
1411 # -----------
1412 #
1413 # before:
1414 # - name: Vlan1
1415 # - name: Vlan10
1416 # - name: Vlan14
1417 # - name: Vlan1000
1418 # - name: Ethernet1/1
1419 # standby:
1420 # bfd: true
1421 # mac_refresh: 400
1422 # version: 2
1423 # standby_options:
1424 # - authentication:
1425 # key_string: SECUREKEY10
1426 # group_name: VLAN10-GROUP
1427 # group_no: 10
1428 # ip:
1429 # - secondary: true
1430 # virtual_ip: 10.10.10.2
1431 # mac_address: 00CC.10DD.10EE
1432 # - name: Ethernet1/2
1433 # standby:
1434 # bfd: true
1435 # mac_refresh: 400
1436 # version: 2
1437 # standby_options:
1438 # - authentication:
1439 # key_chain: SECUREKEY20
1440 # group_name: VLAN20-GROUP
1441 # group_no: 20
1442 # ip:
1443 # - secondary: true
1444 # virtual_ip: 10.10.10.3
1445 # mac_address: 00CC.10DD.10EF
1446 # - name: Ethernet1/3
1447 # - name: Ethernet1/4
1448 # - name: Ethernet1/5
1449 # - name: Ethernet1/6
1450 # - name: Ethernet1/7
1451 # commands:
1452 # - interface Ethernet1/1
1453 # - no hsrp bfd
1454 # - no hsrp version 2
1455 # - no hsrp mac-refresh 400
1456 # - no hsrp 10
1457 # - interface Ethernet1/2
1458 # - no hsrp bfd
1459 # - no hsrp version 2
1460 # - no hsrp mac-refresh 400
1461 # - no hsrp 20
1462 # after:
1463 # - name: Vlan1
1464 # - name: Vlan10
1465 # - name: Vlan14
1466 # - name: Vlan1000
1467 # - name: Ethernet1/1
1468 # - name: Ethernet1/2
1469 # - name: Ethernet1/3
1470 # - name: Ethernet1/4
1471 # - name: Ethernet1/5
1472 # - name: Ethernet1/6
1473
1474 # After state:
1475 # ------------
1476 #
1477 # switch# show running-config | section interface
1478 # interface Vlan1
1479 # interface Vlan10
1480 # interface Vlan14
1481 # bandwidth 99999
1482 # interface Vlan1000
1483 # interface Ethernet1/1
1484 # no switchport
1485 # interface Ethernet1/2
1486 # no switchport
1487 # interface Ethernet1/3
1488 # interface Ethernet1/4
1489 # interface Ethernet1/5
1490 # interface Ethernet1/6
1491 # interface Ethernet1/7
1492
1493 # Using rendered
1494
1495 - name: Use rendered state to convert task input to device specific commands
1496 cisco.nxos.nxos_hsrp_interfaces:
1497 config:
1498 - name: Ethernet1/1
1499 description: outbound-intf
1500 mode: layer3
1501 speed: 100
1502 - name: Ethernet1/2
1503 mode: layer2
1504 enabled: true
1505 duplex: full
1506 state: rendered
1507
1508 # Task Output
1509 # -----------
1510 #
1511 # rendered:
1512 # - interface Vlan1
1513 # - hsrp version 2
1514 # - hsrp 10
1515 # - timers msec 250 255
1516 # - authentication md5 key-chain test
1517 # - interface Vlan10
1518 # - hsrp bfd
1519 # - hsrp version 2
1520 # - hsrp mac-refresh 400
1521 # - hsrp 10
1522 # - mac-address 00CC.10DD.10EE
1523 # - name VLAN10-GROUP
1524 # - preempt delay minimum 15 reload 120 sync 10
1525 # - authentication md5 key-string SECUREKEY10
1526 # - ip 10.10.10.2 secondary
1527 # - interface Vlan14
1528 # - hsrp bfd
1529 # - hsrp version 2
1530 # - hsrp delay 22 123
1531 # - hsrp mac-refresh 300
1532 # - hsrp 14
1533 # - follow VLAN14-GROUP
1534 # - mac-address 00AA.14BB.14CC
1535 # - ip 192.168.14.1 secondary
1536 # - ip 192.168.14.2 secondary
1537 # - hsrp 15
1538 # - mac-address 00BB.14CC.15DD
1539 # - preempt delay minimum 10 reload 100 sync 5
1540 # - priority 22 forwarding-threshold lower 12 upper 22
1541 # - timers msec 456 33
1542 # - authentication md5 key-string SECUREKEY14
1543 # - interface Vlan1000
1544 # - hsrp 10
1545 # - mac-address 0423.4567.89AB
1546 # - name testhsr
1547 # - preempt delay minimum 33 reload 23 sync 22
1548 # - priority 22 forwarding-threshold lower 12 upper 22
1549 # - timers msec 456 33
1550 # - authentication md5 key-string testmesecurte
1551 # - ip 10.15.8.1 secondary
1552
1553
1554 # Using parsed
1555
1556 # parsed.cfg
1557 # ------------
1558 #
1559 # interface Vlan1
1560 # hsrp version 2
1561 # hsrp 10
1562 # authentication md5 key-chain test
1563 # timers msec 250 255
1564 # interface Vlan10
1565 # hsrp bfd
1566 # hsrp version 2
1567 # hsrp mac-refresh 400
1568 # hsrp 10
1569 # authentication md5 key-string SECUREKEY10
1570 # name VLAN10-GROUP
1571 # mac-address 00CC.10DD.10EE
1572 # preempt delay minimum 15 reload 120 sync 10
1573 # ip 10.10.10.2 secondary
1574 # interface Vlan14
1575 # bandwidth 99999
1576 # hsrp bfd
1577 # hsrp version 2
1578 # hsrp delay minimum 22 reload 123
1579 # hsrp mac-refresh 300
1580 # hsrp 14
1581 # follow VLAN14-GROUP
1582 # mac-address 00AA.14BB.14CC
1583 # ip 192.168.14.1 secondary
1584 # ip 192.168.14.2 secondary
1585 # hsrp 15
1586 # authentication md5 key-string SECUREKEY14
1587 # mac-address 00BB.14CC.15DD
1588 # preempt delay minimum 10 reload 100 sync 5
1589 # priority 22 forwarding-threshold lower 12 upper 22
1590 # timers msec 456 33
1591 # interface Vlan1000
1592 # hsrp 10
1593 # authentication md5 key-string testmesecurte
1594 # name testhsr
1595 # mac-address 0423.4567.89AB
1596 # preempt delay minimum 33 reload 23 sync 22
1597 # priority 22 forwarding-threshold lower 12 upper 22
1598 # timers msec 456 33
1599 # ip 10.15.8.1 secondary
1600
1601 - name: Use parsed state to convert externally supplied config to structured format
1602 cisco.nxos.nxos_hsrp_interfaces:
1603 running_config: "{{ lookup('file', 'parsed.cfg') }}"
1604 state: parsed
1605
1606 # Task output
1607 # -----------
1608 #
1609 # {"parsed": [
1610 # {
1611 # "name": "Vlan1",
1612 # "standby": {
1613 # "version": 2
1614 # },
1615 # "standby_options": [
1616 # {
1617 # "authentication": {
1618 # "key_chain": "test"
1619 # },
1620 # "group_no": 10,
1621 # "timer": {
1622 # "hello_interval": 250,
1623 # "hold_time": 255,
1624 # "msec": true
1625 # }
1626 # }
1627 # ]
1628 # },
1629 # {
1630 # "name": "Vlan10",
1631 # "standby": {
1632 # "bfd": true,
1633 # "mac_refresh": 400,
1634 # "version": 2
1635 # },
1636 # "standby_options": [
1637 # {
1638 # "authentication": {
1639 # "key_string": "SECUREKEY10"
1640 # },
1641 # "group_name": "VLAN10-GROUP",
1642 # "group_no": 10,
1643 # "ip": [
1644 # {
1645 # "secondary": true,
1646 # "virtual_ip": "10.10.10.2"
1647 # }
1648 # ],
1649 # "mac_address": "00CC.10DD.10EE",
1650 # "preempt": {
1651 # "minimum": 15,
1652 # "reload": 120,
1653 # "sync": 10
1654 # }
1655 # }
1656 # ]
1657 # },
1658 # {
1659 # "name": "Vlan14",
1660 # "standby": {
1661 # "bfd": true,
1662 # "delay": {
1663 # "minimum": 22,
1664 # "reload": 123
1665 # },
1666 # "mac_refresh": 300,
1667 # "version": 2
1668 # },
1669 # "standby_options": [
1670 # {
1671 # "follow": "VLAN14-GROUP",
1672 # "group_no": 14,
1673 # "ip": [
1674 # {
1675 # "secondary": true,
1676 # "virtual_ip": "192.168.14.1"
1677 # },
1678 # {
1679 # "secondary": true,
1680 # "virtual_ip": "192.168.14.2"
1681 # }
1682 # ],
1683 # "mac_address": "00AA.14BB.14CC"
1684 # },
1685 # {
1686 # "authentication": {
1687 # "key_string": "SECUREKEY14"
1688 # },
1689 # "group_no": 15,
1690 # "mac_address": "00BB.14CC.15DD",
1691 # "preempt": {
1692 # "minimum": 10,
1693 # "reload": 100,
1694 # "sync": 5
1695 # },
1696 # "priority": {
1697 # "level": 22,
1698 # "lower": 12,
1699 # "upper": 22
1700 # },
1701 # "timer": {
1702 # "hello_interval": 456,
1703 # "hold_time": 33,
1704 # "msec": true
1705 # }
1706 # }
1707 # ]
1708 # },
1709 # {
1710 # "name": "Vlan1000",
1711 # "standby_options": [
1712 # {
1713 # "authentication": {
1714 # "key_string": "testmesecurte"
1715 # },
1716 # "group_name": "testhsr",
1717 # "group_no": 10,
1718 # "ip": [
1719 # {
1720 # "secondary": true,
1721 # "virtual_ip": "10.15.8.1"
1722 # }
1723 # ],
1724 # "mac_address": "0423.4567.89AB",
1725 # "preempt": {
1726 # "minimum": 33,
1727 # "reload": 23,
1728 # "sync": 22
1729 # },
1730 # "priority": {
1731 # "level": 22,
1732 # "lower": 12,
1733 # "upper": 22
1734 # },
1735 # "timer": {
1736 # "hello_interval": 456,
1737 # "hold_time": 33,
1738 # "msec": true
1739 # }
1740 # }
1741 # ]}
1742
1743
1744
1745 Return Values
1746 -------------
1747 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:
1748
1749 .. raw:: html
1750
1751 <table border=0 cellpadding=0 class="documentation-table">
1752 <tr>
1753 <th colspan="1">Key</th>
1754 <th>Returned</th>
1755 <th width="100%">Description</th>
1756 </tr>
1757 <tr>
1758 <td colspan="1">
1759 <div class="ansibleOptionAnchor" id="return-"></div>
1760 <b>after</b>
1761 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
1762 <div style="font-size: small">
1763 <span style="color: purple">dictionary</span>
1764 </div>
1765 </td>
1766 <td>when changed</td>
1767 <td>
1768 <div>The resulting configuration after module execution.</div>
1769 <br/>
1770 <div style="font-size: smaller"><b>Sample:</b></div>
1771 <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>
1772 </td>
1773 </tr>
1774 <tr>
1775 <td colspan="1">
1776 <div class="ansibleOptionAnchor" id="return-"></div>
1777 <b>before</b>
1778 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
1779 <div style="font-size: small">
1780 <span style="color: purple">dictionary</span>
1781 </div>
1782 </td>
1783 <td>when <em>state</em> is <code>merged</code>, <code>replaced</code>, <code>overridden</code>, <code>deleted</code> or <code>purged</code></td>
1784 <td>
1785 <div>The configuration prior to the module execution.</div>
1786 <br/>
1787 <div style="font-size: smaller"><b>Sample:</b></div>
1788 <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>
1789 </td>
1790 </tr>
1791 <tr>
1792 <td colspan="1">
1793 <div class="ansibleOptionAnchor" id="return-"></div>
1794 <b>commands</b>
1795 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
1796 <div style="font-size: small">
1797 <span style="color: purple">list</span>
1798 </div>
1799 </td>
1800 <td>when <em>state</em> is <code>merged</code>, <code>replaced</code>, <code>overridden</code>, <code>deleted</code> or <code>purged</code></td>
1801 <td>
1802 <div>The set of commands pushed to the remote device.</div>
1803 <br/>
1804 <div style="font-size: smaller"><b>Sample:</b></div>
1805 <div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">[&#x27;hsrp 14&#x27;, &#x27;follow VLAN14-GROUP&#x27;, &#x27;mac-address 00AA.14BB.14CC&#x27;]</div>
1806 </td>
1807 </tr>
1808 <tr>
1809 <td colspan="1">
1810 <div class="ansibleOptionAnchor" id="return-"></div>
1811 <b>gathered</b>
1812 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
1813 <div style="font-size: small">
1814 <span style="color: purple">list</span>
1815 </div>
1816 </td>
1817 <td>when <em>state</em> is <code>gathered</code></td>
1818 <td>
1819 <div>Facts about the network resource gathered from the remote device as structured data.</div>
1820 <br/>
1821 <div style="font-size: smaller"><b>Sample:</b></div>
1822 <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>
1823 </td>
1824 </tr>
1825 <tr>
1826 <td colspan="1">
1827 <div class="ansibleOptionAnchor" id="return-"></div>
1828 <b>parsed</b>
1829 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
1830 <div style="font-size: small">
1831 <span style="color: purple">list</span>
1832 </div>
1833 </td>
1834 <td>when <em>state</em> is <code>parsed</code></td>
1835 <td>
1836 <div>The device native config provided in <em>running_config</em> option parsed into structured data as per module argspec.</div>
1837 <br/>
1838 <div style="font-size: smaller"><b>Sample:</b></div>
1839 <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>
1840 </td>
1841 </tr>
1842 <tr>
1843 <td colspan="1">
1844 <div class="ansibleOptionAnchor" id="return-"></div>
1845 <b>rendered</b>
1846 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
1847 <div style="font-size: small">
1848 <span style="color: purple">list</span>
1849 </div>
1850 </td>
1851 <td>when <em>state</em> is <code>rendered</code></td>
1852 <td>
1853 <div>The provided configuration in the task rendered in device-native format (offline).</div>
1854 <br/>
1855 <div style="font-size: smaller"><b>Sample:</b></div>
1856 <div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">[&#x27;hsrp 14&#x27;, &#x27;follow VLAN14-GROUP&#x27;, &#x27;mac-address 00AA.14BB.14CC&#x27;]</div>
1857 </td>
1858 </tr>
1859 </table>
1860 <br/><br/>
1861
1862
1863 Status
1864 ------
1865
1866
1867 Authors
1868 ~~~~~~~
1869
1870 - Chris Van Heuveln (@chrisvanheuveln)
1871 - Sagar Paul (@KB-perByte)