Debian Codegraph @

ansible_collections/dellemc/enterprise_sonic/docs/dellemc.enterprise_sonic.sonic_lag_interfaces_module.rst

raw
1 .. _dellemc.enterprise_sonic.sonic_lag_interfaces_module:
2
3
4 *********************************************
5 dellemc.enterprise_sonic.sonic_lag_interfaces
6 *********************************************
7
8 **Manage link aggregation group (LAG) interface parameters**
9
10
11 Version added: 1.0.0
12
13 .. contents::
14 :local:
15 :depth: 1
16
17
18 Synopsis
19 --------
20 - This module manages attributes of link aggregation group (LAG) interfaces of devices running Enterprise SONiC Distribution by Dell Technologies.
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 list of LAG configurations.</div>
50 <div><em>adv_speed</em> and <em>speed</em> are mutually exclusive.</div>
51 </td>
52 </tr>
53 <tr>
54 <td class="elbow-placeholder"></td>
55 <td colspan="3">
56 <div class="ansibleOptionAnchor" id="parameter-"></div>
57 <b>adv_speed</b>
58 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
59 <div style="font-size: small">
60 <span style="color: purple">integer</span>
61 </div>
62 <div style="font-style: italic; font-size: small; color: darkgreen">added in 4.0.0</div>
63 </td>
64 <td>
65 <ul style="margin: 0; padding: 0"><b>Choices:</b>
66 <li>10</li>
67 <li>100</li>
68 <li>1000</li>
69 <li>2500</li>
70 <li>5000</li>
71 <li>10000</li>
72 <li>20000</li>
73 <li>25000</li>
74 <li>40000</li>
75 <li>50000</li>
76 <li>100000</li>
77 <li>200000</li>
78 <li>400000</li>
79 <li>800000</li>
80 </ul>
81 </td>
82 <td>
83 <div>Advertised speed of the LAG interface measured in megabytes.</div>
84 <div>Supported speeds are dependent on the type of switch.</div>
85 </td>
86 </tr>
87 <tr>
88 <td class="elbow-placeholder"></td>
89 <td colspan="3">
90 <div class="ansibleOptionAnchor" id="parameter-"></div>
91 <b>ethernet_segment</b>
92 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
93 <div style="font-size: small">
94 <span style="color: purple">dictionary</span>
95 </div>
96 <div style="font-style: italic; font-size: small; color: darkgreen">added in 2.5.0</div>
97 </td>
98 <td>
99 </td>
100 <td>
101 <div>Specifies Ethernet segment.</div>
102 <div><em>esi_type</em> and <em>esi</em> can not be deleted separately.</div>
103 <div>When <em>state=deleted</em> and both <em>esi</em> and <em>df_preference</em> are not specifed, the entire Ethernet segment will be deleted.</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>df_preference</b>
112 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
113 <div style="font-size: small">
114 <span style="color: purple">integer</span>
115 </div>
116 </td>
117 <td>
118 </td>
119 <td>
120 <div>The preference for Designated Forwarder election method.</div>
121 <div>The range of df_preference value is from 1 to 65535.</div>
122 </td>
123 </tr>
124 <tr>
125 <td class="elbow-placeholder"></td>
126 <td class="elbow-placeholder"></td>
127 <td colspan="2">
128 <div class="ansibleOptionAnchor" id="parameter-"></div>
129 <b>esi</b>
130 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
131 <div style="font-size: small">
132 <span style="color: purple">string</span>
133 </div>
134 </td>
135 <td>
136 </td>
137 <td>
138 <div>Specifies value of Ethernet Segment Identifier.</div>
139 <div>Only <code>AUTO</code> is supported when <em>esi_type=auto_lacp</em> or <em>esi_type=auto_system_mac</em>.</div>
140 </td>
141 </tr>
142 <tr>
143 <td class="elbow-placeholder"></td>
144 <td class="elbow-placeholder"></td>
145 <td colspan="2">
146 <div class="ansibleOptionAnchor" id="parameter-"></div>
147 <b>esi_type</b>
148 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
149 <div style="font-size: small">
150 <span style="color: purple">string</span>
151 / <span style="color: red">required</span>
152 </div>
153 </td>
154 <td>
155 <ul style="margin: 0; padding: 0"><b>Choices:</b>
156 <li>auto_lacp</li>
157 <li>auto_system_mac</li>
158 <li>ethernet_segment_id</li>
159 </ul>
160 </td>
161 <td>
162 <div>Specifies type of Ethernet Segment Identifier.</div>
163 </td>
164 </tr>
165
166 <tr>
167 <td class="elbow-placeholder"></td>
168 <td colspan="3">
169 <div class="ansibleOptionAnchor" id="parameter-"></div>
170 <b>fallback</b>
171 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
172 <div style="font-size: small">
173 <span style="color: purple">boolean</span>
174 </div>
175 <div style="font-style: italic; font-size: small; color: darkgreen">added in 3.1.0</div>
176 </td>
177 <td>
178 <ul style="margin: 0; padding: 0"><b>Choices:</b>
179 <li>no</li>
180 <li>yes</li>
181 </ul>
182 </td>
183 <td>
184 <div>Enable fallback mode.</div>
185 </td>
186 </tr>
187 <tr>
188 <td class="elbow-placeholder"></td>
189 <td colspan="3">
190 <div class="ansibleOptionAnchor" id="parameter-"></div>
191 <b>fast_rate</b>
192 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
193 <div style="font-size: small">
194 <span style="color: purple">boolean</span>
195 </div>
196 <div style="font-style: italic; font-size: small; color: darkgreen">added in 3.1.0</div>
197 </td>
198 <td>
199 <ul style="margin: 0; padding: 0"><b>Choices:</b>
200 <li>no</li>
201 <li>yes</li>
202 </ul>
203 </td>
204 <td>
205 <div>Enable LACP fast rate mode.</div>
206 </td>
207 </tr>
208 <tr>
209 <td class="elbow-placeholder"></td>
210 <td colspan="3">
211 <div class="ansibleOptionAnchor" id="parameter-"></div>
212 <b>graceful_shutdown</b>
213 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
214 <div style="font-size: small">
215 <span style="color: purple">boolean</span>
216 </div>
217 <div style="font-style: italic; font-size: small; color: darkgreen">added in 3.1.0</div>
218 </td>
219 <td>
220 <ul style="margin: 0; padding: 0"><b>Choices:</b>
221 <li>no</li>
222 <li>yes</li>
223 </ul>
224 </td>
225 <td>
226 <div>Enable graceful shutdown.</div>
227 </td>
228 </tr>
229 <tr>
230 <td class="elbow-placeholder"></td>
231 <td colspan="3">
232 <div class="ansibleOptionAnchor" id="parameter-"></div>
233 <b>lacp_individual</b>
234 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
235 <div style="font-size: small">
236 <span style="color: purple">dictionary</span>
237 </div>
238 <div style="font-style: italic; font-size: small; color: darkgreen">added in 3.1.0</div>
239 </td>
240 <td>
241 </td>
242 <td>
243 <div>Specifies LACP individual configuration.</div>
244 <div>Applicable only when <em>mode=lacp</em>.</div>
245 </td>
246 </tr>
247 <tr>
248 <td class="elbow-placeholder"></td>
249 <td class="elbow-placeholder"></td>
250 <td colspan="2">
251 <div class="ansibleOptionAnchor" id="parameter-"></div>
252 <b>enable</b>
253 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
254 <div style="font-size: small">
255 <span style="color: purple">boolean</span>
256 </div>
257 </td>
258 <td>
259 <ul style="margin: 0; padding: 0"><b>Choices:</b>
260 <li>no</li>
261 <li>yes</li>
262 </ul>
263 </td>
264 <td>
265 <div>Enable LACP individual.</div>
266 </td>
267 </tr>
268 <tr>
269 <td class="elbow-placeholder"></td>
270 <td class="elbow-placeholder"></td>
271 <td colspan="2">
272 <div class="ansibleOptionAnchor" id="parameter-"></div>
273 <b>timeout</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>Specifies LACP individual timeout in seconds.</div>
283 <div>The range is from 3 to 90.</div>
284 </td>
285 </tr>
286
287 <tr>
288 <td class="elbow-placeholder"></td>
289 <td colspan="3">
290 <div class="ansibleOptionAnchor" id="parameter-"></div>
291 <b>members</b>
292 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
293 <div style="font-size: small">
294 <span style="color: purple">dictionary</span>
295 </div>
296 </td>
297 <td>
298 </td>
299 <td>
300 <div>The list of interfaces that are part of the group.</div>
301 </td>
302 </tr>
303 <tr>
304 <td class="elbow-placeholder"></td>
305 <td class="elbow-placeholder"></td>
306 <td colspan="2">
307 <div class="ansibleOptionAnchor" id="parameter-"></div>
308 <b>interfaces</b>
309 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
310 <div style="font-size: small">
311 <span style="color: purple">list</span>
312 / <span style="color: purple">elements=dictionary</span>
313 </div>
314 </td>
315 <td>
316 </td>
317 <td>
318 <div>The list of interfaces that are part of the group.</div>
319 </td>
320 </tr>
321 <tr>
322 <td class="elbow-placeholder"></td>
323 <td class="elbow-placeholder"></td>
324 <td class="elbow-placeholder"></td>
325 <td colspan="1">
326 <div class="ansibleOptionAnchor" id="parameter-"></div>
327 <b>member</b>
328 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
329 <div style="font-size: small">
330 <span style="color: purple">string</span>
331 </div>
332 </td>
333 <td>
334 </td>
335 <td>
336 <div>The interface name.</div>
337 </td>
338 </tr>
339
340
341 <tr>
342 <td class="elbow-placeholder"></td>
343 <td colspan="3">
344 <div class="ansibleOptionAnchor" id="parameter-"></div>
345 <b>min_links</b>
346 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
347 <div style="font-size: small">
348 <span style="color: purple">integer</span>
349 </div>
350 <div style="font-style: italic; font-size: small; color: darkgreen">added in 3.1.0</div>
351 </td>
352 <td>
353 </td>
354 <td>
355 <div>Specifies minimum number of links.</div>
356 <div>The range is from 1 to 32.</div>
357 </td>
358 </tr>
359 <tr>
360 <td class="elbow-placeholder"></td>
361 <td colspan="3">
362 <div class="ansibleOptionAnchor" id="parameter-"></div>
363 <b>mode</b>
364 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
365 <div style="font-size: small">
366 <span style="color: purple">string</span>
367 </div>
368 </td>
369 <td>
370 <ul style="margin: 0; padding: 0"><b>Choices:</b>
371 <li>static</li>
372 <li>lacp</li>
373 </ul>
374 </td>
375 <td>
376 <div>Specifies mode of the port-channel while creation.</div>
377 <div>Functional default is <code>lacp</code>.</div>
378 </td>
379 </tr>
380 <tr>
381 <td class="elbow-placeholder"></td>
382 <td colspan="3">
383 <div class="ansibleOptionAnchor" id="parameter-"></div>
384 <b>name</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>ID of the LAG.</div>
395 </td>
396 </tr>
397 <tr>
398 <td class="elbow-placeholder"></td>
399 <td colspan="3">
400 <div class="ansibleOptionAnchor" id="parameter-"></div>
401 <b>speed</b>
402 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
403 <div style="font-size: small">
404 <span style="color: purple">integer</span>
405 </div>
406 <div style="font-style: italic; font-size: small; color: darkgreen">added in 4.0.0</div>
407 </td>
408 <td>
409 <ul style="margin: 0; padding: 0"><b>Choices:</b>
410 <li>10</li>
411 <li>100</li>
412 <li>1000</li>
413 <li>2500</li>
414 <li>5000</li>
415 <li>10000</li>
416 <li>20000</li>
417 <li>25000</li>
418 <li>40000</li>
419 <li>50000</li>
420 <li>100000</li>
421 <li>200000</li>
422 <li>400000</li>
423 <li>800000</li>
424 </ul>
425 </td>
426 <td>
427 <div>LAG Interface speed measured in megabytes.</div>
428 <div>Supported speeds are dependent on the type of switch.</div>
429 </td>
430 </tr>
431 <tr>
432 <td class="elbow-placeholder"></td>
433 <td colspan="3">
434 <div class="ansibleOptionAnchor" id="parameter-"></div>
435 <b>system_mac</b>
436 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
437 <div style="font-size: small">
438 <span style="color: purple">string</span>
439 </div>
440 <div style="font-style: italic; font-size: small; color: darkgreen">added in 3.1.0</div>
441 </td>
442 <td>
443 </td>
444 <td>
445 <div>Specifies system MAC address for the portchannel.</div>
446 </td>
447 </tr>
448
449 <tr>
450 <td colspan="4">
451 <div class="ansibleOptionAnchor" id="parameter-"></div>
452 <b>state</b>
453 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
454 <div style="font-size: small">
455 <span style="color: purple">string</span>
456 </div>
457 </td>
458 <td>
459 <ul style="margin: 0; padding: 0"><b>Choices:</b>
460 <li><div style="color: blue"><b>merged</b>&nbsp;&larr;</div></li>
461 <li>replaced</li>
462 <li>overridden</li>
463 <li>deleted</li>
464 </ul>
465 </td>
466 <td>
467 <div>The state that the configuration should be left in.</div>
468 </td>
469 </tr>
470 </table>
471 <br/>
472
473
474 Notes
475 -----
476
477 .. note::
478 - Tested against Enterprise SONiC Distribution by Dell Technologies.
479 - Supports ``check_mode``.
480
481
482
483 Examples
484 --------
485
486 .. code-block:: yaml
487
488 # Using "merged" state
489 #
490 # Before state:
491 # -------------
492 #
493 # interface Eth1/10
494 # mtu 9100
495 # speed 100000
496 # no shutdown
497 # !
498 # interface PortChannel10
499 # no shutdown
500 #
501
502 - name: Merge LAG interfaces configuration
503 dellemc.enterprise_sonic.sonic_lag_interfaces:
504 config:
505 - name: PortChannel10
506 fallback: true
507 fast_rate: true
508 graceful_shutdown: true
509 members:
510 interfaces:
511 - member: Eth1/10
512 system_mac: "12:12:12:12:12:12"
513 ethernet_segment:
514 esi_type: auto_lacp
515 df_preference: 2222
516 - name: PortChannel12
517 min_links: 2
518 members:
519 interfaces:
520 - member: Eth1/15
521 - member: Eth1/16
522 - member: Eth1/17
523 lacp_individual:
524 enable: true
525 timeout: 30
526 state: merged
527
528 # After state:
529 # ------------
530 #
531 # interface Eth1/10
532 # channel-group 10
533 # mtu 9100
534 # speed 100000
535 # no shutdown
536 # !
537 # interface Eth1/15
538 # channel-group 12
539 # mtu 9100
540 # speed 100000
541 # no shutdown
542 # !
543 # interface Eth1/16
544 # channel-group 12
545 # mtu 9100
546 # speed 100000
547 # no shutdown
548 # !
549 # interface Eth1/17
550 # channel-group 12
551 # mtu 9100
552 # speed 100000
553 # no shutdown
554 # !
555 # interface PortChannel10
556 # fast_rate
557 # fallback
558 # graceful-shutdown
559 # no shutdown
560 # system-mac 12:12:12:12:12:12
561 # !
562 # evpn ethernet-segment auto-lacp
563 # df-preference 2222
564 # !
565 # !
566 # interface PortChannel12
567 # min-links 2
568 # lacp individual
569 # lacp individual timeout 30
570 # no shutdown
571 #
572
573 # Using "replaced" state
574 #
575 # Before state:
576 # -------------
577 #
578 # interface Eth1/5
579 # channel-group 10
580 # mtu 9100
581 # speed 100000
582 # no shutdown
583 # !
584 # interface Eth1/7
585 # no channel-group
586 # mtu 9100
587 # speed 100000
588 # no shutdown
589 # !
590 # interface PortChannel10
591 # graceful-shutdown
592 # no shutdown
593 # system-mac 12:12:12:12:12:12
594 # !
595 # evpn ethernet-segment auto-lacp
596 # df-preference 2222
597 #
598
599 - name: Replace LAG configurations of specified LAG interfaces
600 dellemc.enterprise_sonic.sonic_lag_interfaces:
601 config:
602 - name: PortChannel20
603 members:
604 interfaces:
605 - member: Eth1/6
606 system_mac: "14:14:14:14:14:14"
607 ethernet_segment:
608 esi_type: auto_system_mac
609 df_preference: 6666
610 - name: PortChannel10
611 members:
612 interfaces:
613 - member: Eth1/7
614 system_mac: "14:14:14:14:14:14"
615 ethernet_segment:
616 esi_type: auto_system_mac
617 df_preference: 3333
618 state: replaced
619
620 # After state:
621 # ------------
622 #
623 # interface Eth1/5
624 # mtu 9100
625 # speed 100000
626 # no shutdown
627 # !
628 # interface Eth1/6
629 # channel-group 20
630 # mtu 9100
631 # speed 100000
632 # no shutdown
633 # !
634 # interface Eth1/7
635 # channel-group 10
636 # mtu 9100
637 # speed 100000
638 # no shutdown
639 # !
640 # interface PortChannel10
641 # no shutdown
642 # system-mac 14:14:14:14:14:14
643 # !
644 # evpn ethernet-segment auto-system-mac
645 # df-preference 3333
646 # !
647 # interface PortChanne20
648 # no shutdown
649 # system-mac 14:14:14:14:14:14
650 # !
651 # evpn ethernet-segment auto-system-mac
652 # df-preference 6666
653 #
654
655 # Using "overridden" state
656 #
657 # Before state:
658 # -------------
659 #
660 # interface Eth1/5
661 # channel-group 10
662 # mtu 9100
663 # speed 100000
664 # no shutdown
665 # !
666 # interface Eth1/6
667 # no channel-group
668 # mtu 9100
669 # speed 100000
670 # no shutdown
671 # !
672 # interface PortChannel10
673 # fast_rate
674 # fallback
675 # no shutdown
676 # !
677 # evpn ethernet-segment auto-system-mac
678 # df-preference 2222
679 #
680
681 - name: Override all LAG interface configurations
682 dellemc.enterprise_sonic.sonic_lag_interfaces:
683 config:
684 - name: PortChannel20
685 min_links: 2
686 members:
687 interfaces:
688 - member: Eth1/6
689 - member: Eth1/7
690 - member: Eth1/8
691 system_mac: "12:12:12:12:12:12"
692 ethernet_segment:
693 esi_type: auto_lacp
694 df_preference: 3333
695 lacp_individual:
696 enable: true
697 timeout: 60
698 state: overridden
699
700 # After state:
701 # ------------
702 #
703 # interface Eth1/5
704 # mtu 9100
705 # speed 100000
706 # no shutdown
707 # !
708 # interface Eth1/6
709 # channel-group 20
710 # mtu 9100
711 # speed 100000
712 # no shutdown
713 # !
714 # interface Eth1/7
715 # channel-group 20
716 # mtu 9100
717 # speed 100000
718 # no shutdown
719 # !
720 # interface Eth1/8
721 # channel-group 20
722 # mtu 9100
723 # speed 100000
724 # no shutdown
725 # !
726 # interface PortChannel20
727 # min-links 2
728 # lacp individual
729 # lacp individual timeout 60
730 # no shutdown
731 # system-mac 12:12:12:12:12:12
732 # !
733 # evpn ethernet-segment auto-lacp
734 # df-preference 3333
735 #
736
737 # Using "deleted" state
738 #
739 # Before state:
740 # -------------
741 #
742 # interface Eth1/10
743 # channel-group 10
744 # mtu 9100
745 # speed 100000
746 # no shutdown
747 # !
748 # interface Eth1/15
749 # channel-group 12
750 # mtu 9100
751 # speed 100000
752 # no shutdown
753 # !
754 # interface Eth1/16
755 # channel-group 12
756 # mtu 9100
757 # speed 100000
758 # no shutdown
759 # !
760 # interface PortChannel 10
761 # no shutdown
762 # system-mac 12:12:12:12:12:12
763 # !
764 # evpn ethernet-segment auto-lacp
765 # df-preference 2222
766 # !
767 # interface PortChannel 12
768 # fast_rate
769 # fallback
770 # graceful-shutdown
771 # min-links 2
772 # no shutdown
773 #
774
775 - name: Delete all LAG interfaces
776 dellemc.enterprise_sonic.sonic_lag_interfaces:
777 config:
778 state: deleted
779
780 # After state:
781 # -------------
782 #
783 # interface Eth1/10
784 # mtu 9100
785 # speed 100000
786 # no shutdown
787 # !
788 # interface Eth1/15
789 # mtu 9100
790 # speed 100000
791 # no shutdown
792 # !
793 # interface Eth1/16
794 # mtu 9100
795 # speed 100000
796 # no shutdown
797 #
798
799 # Using "deleted" state
800 #
801 # Before state:
802 # -------------
803 # interface Eth1/10
804 # channel-group 10
805 # mtu 9100
806 # speed 100000
807 # no shutdown
808 # !
809 # interface Eth1/11
810 # channel-group 10
811 # mtu 9100
812 # speed 100000
813 # no shutdown
814 # !
815 # interface Eth1/20
816 # channel-group 20
817 # mtu 9100
818 # speed 100000
819 # no shutdown
820 # !
821 # interface PortChannel10
822 # min-links 2
823 # no shutdown
824 # system-mac 12:12:12:12:12:12
825 # !
826 # evpn ethernet-segment auto-lacp
827 # df-preference 2222
828 # !
829 # interface PortChannel20
830 # no shutdown
831 #
832
833 - name: Delete specified LAG configurations and LAG interfaces
834 dellemc.enterprise_sonic.sonic_lag_interfaces:
835 config:
836 - name: PortChannel10
837 min_links: 2
838 members:
839 interfaces:
840 - member: Eth1/10
841 system_mac: "12:12:12:12:12:12"
842 ethernet_segment:
843 esi_type: auto_lacp
844 - name: PortChannel20
845 state: deleted
846
847 # After state:
848 # -------------
849 #
850 # interface Eth1/10
851 # mtu 9100
852 # speed 100000
853 # no shutdown
854 # !
855 # interface Eth1/11
856 # channel-group 10
857 # mtu 9100
858 # speed 100000
859 # no shutdown
860 # !
861 # interface Eth1/20
862 # mtu 9100
863 # speed 100000
864 # no shutdown
865 # !
866 # interface PortChannel10
867 # no shutdown
868 #
869
870
871
872 Return Values
873 -------------
874 Common return values are documented `here <https://docs.ansible.com/projects/ansible/latest/reference_appendices/common_return_values.html#common-return-values>`_, the following are the fields unique to this module:
875
876 .. raw:: html
877
878 <table border=0 cellpadding=0 class="documentation-table">
879 <tr>
880 <th colspan="1">Key</th>
881 <th>Returned</th>
882 <th width="100%">Description</th>
883 </tr>
884 <tr>
885 <td colspan="1">
886 <div class="ansibleOptionAnchor" id="return-"></div>
887 <b>after</b>
888 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
889 <div style="font-size: small">
890 <span style="color: purple">list</span>
891 </div>
892 </td>
893 <td>when changed</td>
894 <td>
895 <div>The resulting configuration on module invocation.</div>
896 <br/>
897 <div style="font-size: smaller"><b>Sample:</b></div>
898 <div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">The configuration returned is always in the same format as the parameters above.</div>
899 </td>
900 </tr>
901 <tr>
902 <td colspan="1">
903 <div class="ansibleOptionAnchor" id="return-"></div>
904 <b>after_generated</b>
905 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
906 <div style="font-size: small">
907 <span style="color: purple">list</span>
908 </div>
909 </td>
910 <td>when <code>check_mode</code></td>
911 <td>
912 <div>The configuration expected as a result of module invocation.</div>
913 <br/>
914 <div style="font-size: smaller"><b>Sample:</b></div>
915 <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 as the parameters above.</div>
916 </td>
917 </tr>
918 <tr>
919 <td colspan="1">
920 <div class="ansibleOptionAnchor" id="return-"></div>
921 <b>before</b>
922 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
923 <div style="font-size: small">
924 <span style="color: purple">list</span>
925 </div>
926 </td>
927 <td>always</td>
928 <td>
929 <div>The configuration prior to the module invocation.</div>
930 <br/>
931 <div style="font-size: smaller"><b>Sample:</b></div>
932 <div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">The configuration that is returned is always in the same format as the parameters above.</div>
933 </td>
934 </tr>
935 <tr>
936 <td colspan="1">
937 <div class="ansibleOptionAnchor" id="return-"></div>
938 <b>commands</b>
939 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
940 <div style="font-size: small">
941 <span style="color: purple">list</span>
942 </div>
943 </td>
944 <td>always</td>
945 <td>
946 <div>The set of commands pushed to the remote device.</div>
947 <br/>
948 <div style="font-size: smaller"><b>Sample:</b></div>
949 <div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">[&#x27;command 1&#x27;, &#x27;command 2&#x27;, &#x27;command 3&#x27;]</div>
950 </td>
951 </tr>
952 </table>
953 <br/><br/>
954
955
956 Status
957 ------
958
959
960 Authors
961 ~~~~~~~
962
963 - Abirami N (@abirami-n)