Debian Codegraph @

ansible_collections/dellemc/enterprise_sonic/docs/dellemc.enterprise_sonic.sonic_mclag_module.rst

raw
1 .. _dellemc.enterprise_sonic.sonic_mclag_module:
2
3
4 ************************************
5 dellemc.enterprise_sonic.sonic_mclag
6 ************************************
7
8 **Manage multi chassis link aggregation groups domain (MCLAG) and its parameters**
9
10
11 Version added: 1.0.0
12
13 .. contents::
14 :local:
15 :depth: 1
16
17
18 Synopsis
19 --------
20 - Manage multi chassis link aggregation groups domain (MCLAG) and its parameters.
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">dictionary</span>
43 </div>
44 </td>
45 <td>
46 </td>
47 <td>
48 <div>Dict of mclag domain configurations.</div>
49 </td>
50 </tr>
51 <tr>
52 <td class="elbow-placeholder"></td>
53 <td colspan="3">
54 <div class="ansibleOptionAnchor" id="parameter-"></div>
55 <b>backup_keepalive_interval</b>
56 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
57 <div style="font-size: small">
58 <span style="color: purple">integer</span>
59 </div>
60 <div style="font-style: italic; font-size: small; color: darkgreen">added in 3.1.0</div>
61 </td>
62 <td>
63 </td>
64 <td>
65 <div>MCLAG backup keepalive session interval in secs. Supported interval range is 1-60.</div>
66 </td>
67 </tr>
68 <tr>
69 <td class="elbow-placeholder"></td>
70 <td colspan="3">
71 <div class="ansibleOptionAnchor" id="parameter-"></div>
72 <b>backup_keepalive_peer_address</b>
73 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
74 <div style="font-size: small">
75 <span style="color: purple">string</span>
76 </div>
77 <div style="font-style: italic; font-size: small; color: darkgreen">added in 3.1.0</div>
78 </td>
79 <td>
80 </td>
81 <td>
82 <div>The IPV4 backup-keepalive-peer-ip to establish MCLAG backup keepalive session</div>
83 </td>
84 </tr>
85 <tr>
86 <td class="elbow-placeholder"></td>
87 <td colspan="3">
88 <div class="ansibleOptionAnchor" id="parameter-"></div>
89 <b>backup_keepalive_session_vrf</b>
90 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
91 <div style="font-size: small">
92 <span style="color: purple">string</span>
93 </div>
94 <div style="font-style: italic; font-size: small; color: darkgreen">added in 3.1.0</div>
95 </td>
96 <td>
97 </td>
98 <td>
99 <div>MCLAG backup keepalive session VRF</div>
100 </td>
101 </tr>
102 <tr>
103 <td class="elbow-placeholder"></td>
104 <td colspan="3">
105 <div class="ansibleOptionAnchor" id="parameter-"></div>
106 <b>backup_keepalive_source_address</b>
107 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
108 <div style="font-size: small">
109 <span style="color: purple">string</span>
110 </div>
111 <div style="font-style: italic; font-size: small; color: darkgreen">added in 3.1.0</div>
112 </td>
113 <td>
114 </td>
115 <td>
116 <div>The IPV4 backup-keepalive-source-ip to establish MCLAG backup keepalive session</div>
117 </td>
118 </tr>
119 <tr>
120 <td class="elbow-placeholder"></td>
121 <td colspan="3">
122 <div class="ansibleOptionAnchor" id="parameter-"></div>
123 <b>delay_restore</b>
124 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
125 <div style="font-size: small">
126 <span style="color: purple">integer</span>
127 </div>
128 </td>
129 <td>
130 </td>
131 <td>
132 <div>MCLAG delay restore time in secs.</div>
133 </td>
134 </tr>
135 <tr>
136 <td class="elbow-placeholder"></td>
137 <td colspan="3">
138 <div class="ansibleOptionAnchor" id="parameter-"></div>
139 <b>domain_id</b>
140 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
141 <div style="font-size: small">
142 <span style="color: purple">integer</span>
143 / <span style="color: red">required</span>
144 </div>
145 </td>
146 <td>
147 </td>
148 <td>
149 <div>ID of the mclag domain (MCLAG domain).</div>
150 </td>
151 </tr>
152 <tr>
153 <td class="elbow-placeholder"></td>
154 <td colspan="3">
155 <div class="ansibleOptionAnchor" id="parameter-"></div>
156 <b>gateway_mac</b>
157 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
158 <div style="font-size: small">
159 <span style="color: purple">string</span>
160 </div>
161 </td>
162 <td>
163 </td>
164 <td>
165 <div>Gateway MAC address for router ports over MCLAG.</div>
166 <div>Configured gateway MAC address can be modified only when <em>state=replaced</em> or <em>state=overridden</em>.</div>
167 </td>
168 </tr>
169 <tr>
170 <td class="elbow-placeholder"></td>
171 <td colspan="3">
172 <div class="ansibleOptionAnchor" id="parameter-"></div>
173 <b>keepalive</b>
174 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
175 <div style="font-size: small">
176 <span style="color: purple">integer</span>
177 </div>
178 </td>
179 <td>
180 </td>
181 <td>
182 <div>MCLAG session keepalive-interval in secs.</div>
183 </td>
184 </tr>
185 <tr>
186 <td class="elbow-placeholder"></td>
187 <td colspan="3">
188 <div class="ansibleOptionAnchor" id="parameter-"></div>
189 <b>members</b>
190 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
191 <div style="font-size: small">
192 <span style="color: purple">dictionary</span>
193 </div>
194 </td>
195 <td>
196 </td>
197 <td>
198 <div>Holds portchannels dictionary for an MCLAG domain.</div>
199 </td>
200 </tr>
201 <tr>
202 <td class="elbow-placeholder"></td>
203 <td class="elbow-placeholder"></td>
204 <td colspan="2">
205 <div class="ansibleOptionAnchor" id="parameter-"></div>
206 <b>portchannels</b>
207 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
208 <div style="font-size: small">
209 <span style="color: purple">list</span>
210 / <span style="color: purple">elements=dictionary</span>
211 </div>
212 </td>
213 <td>
214 </td>
215 <td>
216 <div>Holds a list of portchannels for configuring as an MCLAG interface.</div>
217 </td>
218 </tr>
219 <tr>
220 <td class="elbow-placeholder"></td>
221 <td class="elbow-placeholder"></td>
222 <td class="elbow-placeholder"></td>
223 <td colspan="1">
224 <div class="ansibleOptionAnchor" id="parameter-"></div>
225 <b>lag</b>
226 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
227 <div style="font-size: small">
228 <span style="color: purple">string</span>
229 </div>
230 </td>
231 <td>
232 </td>
233 <td>
234 <div>Holds a PortChannel ID.</div>
235 </td>
236 </tr>
237
238
239 <tr>
240 <td class="elbow-placeholder"></td>
241 <td colspan="3">
242 <div class="ansibleOptionAnchor" id="parameter-"></div>
243 <b>peer_address</b>
244 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
245 <div style="font-size: small">
246 <span style="color: purple">string</span>
247 </div>
248 </td>
249 <td>
250 </td>
251 <td>
252 <div>The IPV4 peer-ip for corresponding MCLAG.</div>
253 </td>
254 </tr>
255 <tr>
256 <td class="elbow-placeholder"></td>
257 <td colspan="3">
258 <div class="ansibleOptionAnchor" id="parameter-"></div>
259 <b>peer_gateway</b>
260 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
261 <div style="font-size: small">
262 <span style="color: purple">dictionary</span>
263 </div>
264 </td>
265 <td>
266 </td>
267 <td>
268 <div>Holds Vlan dictionary for MCLAG peer gateway.</div>
269 </td>
270 </tr>
271 <tr>
272 <td class="elbow-placeholder"></td>
273 <td class="elbow-placeholder"></td>
274 <td colspan="2">
275 <div class="ansibleOptionAnchor" id="parameter-"></div>
276 <b>vlans</b>
277 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
278 <div style="font-size: small">
279 <span style="color: purple">list</span>
280 / <span style="color: purple">elements=dictionary</span>
281 </div>
282 </td>
283 <td>
284 </td>
285 <td>
286 <div>Holds a list of VLANs and VLAN ranges for which MCLAG peer gateway functionality is enabled.</div>
287 </td>
288 </tr>
289 <tr>
290 <td class="elbow-placeholder"></td>
291 <td class="elbow-placeholder"></td>
292 <td class="elbow-placeholder"></td>
293 <td colspan="1">
294 <div class="ansibleOptionAnchor" id="parameter-"></div>
295 <b>vlan</b>
296 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
297 <div style="font-size: small">
298 <span style="color: purple">string</span>
299 </div>
300 </td>
301 <td>
302 </td>
303 <td>
304 <div>Holds a VLAN name or VLAN range.</div>
305 <div>Specify a single VLAN eg. Vlan10.</div>
306 <div>Specify a range of VLANs eg. Vlan10-20.</div>
307 </td>
308 </tr>
309
310
311 <tr>
312 <td class="elbow-placeholder"></td>
313 <td colspan="3">
314 <div class="ansibleOptionAnchor" id="parameter-"></div>
315 <b>peer_link</b>
316 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
317 <div style="font-size: small">
318 <span style="color: purple">string</span>
319 </div>
320 </td>
321 <td>
322 </td>
323 <td>
324 <div>Peer-link for corresponding MCLAG.</div>
325 </td>
326 </tr>
327 <tr>
328 <td class="elbow-placeholder"></td>
329 <td colspan="3">
330 <div class="ansibleOptionAnchor" id="parameter-"></div>
331 <b>session_timeout</b>
332 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
333 <div style="font-size: small">
334 <span style="color: purple">integer</span>
335 </div>
336 </td>
337 <td>
338 </td>
339 <td>
340 <div>MCLAG session timeout value in secs.</div>
341 </td>
342 </tr>
343 <tr>
344 <td class="elbow-placeholder"></td>
345 <td colspan="3">
346 <div class="ansibleOptionAnchor" id="parameter-"></div>
347 <b>session_vrf</b>
348 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
349 <div style="font-size: small">
350 <span style="color: purple">string</span>
351 </div>
352 <div style="font-style: italic; font-size: small; color: darkgreen">added in 2.5.0</div>
353 </td>
354 <td>
355 </td>
356 <td>
357 <div>MCLAG session VRF.</div>
358 <div>Session VRF value can be either mgmt or a non-default VRF.</div>
359 </td>
360 </tr>
361 <tr>
362 <td class="elbow-placeholder"></td>
363 <td colspan="3">
364 <div class="ansibleOptionAnchor" id="parameter-"></div>
365 <b>source_address</b>
366 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
367 <div style="font-size: small">
368 <span style="color: purple">string</span>
369 </div>
370 </td>
371 <td>
372 </td>
373 <td>
374 <div>The IPV4 source-ip for corresponding MCLAG.</div>
375 </td>
376 </tr>
377 <tr>
378 <td class="elbow-placeholder"></td>
379 <td colspan="3">
380 <div class="ansibleOptionAnchor" id="parameter-"></div>
381 <b>system_mac</b>
382 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
383 <div style="font-size: small">
384 <span style="color: purple">string</span>
385 </div>
386 </td>
387 <td>
388 </td>
389 <td>
390 <div>MAC address of MCLAG.</div>
391 </td>
392 </tr>
393 <tr>
394 <td class="elbow-placeholder"></td>
395 <td colspan="3">
396 <div class="ansibleOptionAnchor" id="parameter-"></div>
397 <b>unique_ip</b>
398 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
399 <div style="font-size: small">
400 <span style="color: purple">dictionary</span>
401 </div>
402 </td>
403 <td>
404 </td>
405 <td>
406 <div>Holds Vlan dictionary for MCLAG unique IP.</div>
407 </td>
408 </tr>
409 <tr>
410 <td class="elbow-placeholder"></td>
411 <td class="elbow-placeholder"></td>
412 <td colspan="2">
413 <div class="ansibleOptionAnchor" id="parameter-"></div>
414 <b>vlans</b>
415 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
416 <div style="font-size: small">
417 <span style="color: purple">list</span>
418 / <span style="color: purple">elements=dictionary</span>
419 </div>
420 </td>
421 <td>
422 </td>
423 <td>
424 <div>Holds a list of VLANs and VLAN ranges for which a separate IP address is enabled for Layer 3 protocol support over MCLAG.</div>
425 </td>
426 </tr>
427 <tr>
428 <td class="elbow-placeholder"></td>
429 <td class="elbow-placeholder"></td>
430 <td class="elbow-placeholder"></td>
431 <td colspan="1">
432 <div class="ansibleOptionAnchor" id="parameter-"></div>
433 <b>vlan</b>
434 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
435 <div style="font-size: small">
436 <span style="color: purple">string</span>
437 </div>
438 </td>
439 <td>
440 </td>
441 <td>
442 <div>Holds a VLAN name or VLAN range.</div>
443 <div>Specify a single VLAN eg. Vlan10.</div>
444 <div>Specify a range of VLANs eg. Vlan10-20.</div>
445 </td>
446 </tr>
447
448
449
450 <tr>
451 <td colspan="4">
452 <div class="ansibleOptionAnchor" id="parameter-"></div>
453 <b>state</b>
454 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
455 <div style="font-size: small">
456 <span style="color: purple">string</span>
457 </div>
458 </td>
459 <td>
460 <ul style="margin: 0; padding: 0"><b>Choices:</b>
461 <li><div style="color: blue"><b>merged</b>&nbsp;&larr;</div></li>
462 <li>deleted</li>
463 <li>replaced</li>
464 <li>overridden</li>
465 </ul>
466 </td>
467 <td>
468 <div>The state that the configuration should be left in.</div>
469 </td>
470 </tr>
471 </table>
472 <br/>
473
474
475 Notes
476 -----
477
478 .. note::
479 - Tested against Enterprise SONiC Distribution by Dell Technologies.
480 - Supports ``check_mode``.
481
482
483
484 Examples
485 --------
486
487 .. code-block:: yaml
488
489 # Using "merged" state
490 #
491 # Before state:
492 # -------------
493 #
494 # sonic# show mclag brief
495 # MCLAG Not Configured
496
497 - name: Merge provided configuration with device configuration
498 dellemc.enterprise_sonic.sonic_mclag:
499 config:
500 domain_id: 1
501 peer_address: 1.1.1.1
502 source_address: 2.2.2.2
503 peer_link: 'Portchannel1'
504 session_vrf: 'mgmt'
505 keepalive: 1
506 session_timeout: 3
507 delay_restore: 240
508 system_mac: '00:00:00:11:11:11'
509 gateway_mac: '00:00:00:12:12:12'
510 unique_ip:
511 vlans:
512 - vlan: Vlan4
513 - vlan: Vlan21-25
514 peer_gateway:
515 vlans:
516 - vlan: Vlan4
517 - vlan: Vlan21-25
518 members:
519 portchannels:
520 - lag: PortChannel10
521 backup_keepalive_source_address: 3.3.3.3
522 backup_keepalive_peer_address: 4.4.4.4
523 backup_keepalive_interval: 5
524 backup_keepalive_session_vrf: mgmt
525 state: merged
526
527 # After state:
528 # ------------
529 #
530 # sonic# show mclag brief
531 #
532 # Domain ID : 1
533 # Role : standby
534 # Session Status : down
535 # Peer Link Status : down
536 # Source Address : 2.2.2.2
537 # Peer Address : 1.1.1.1
538 # Session Vrf : mgmt
539 # Peer Link : PortChannel1
540 # Keepalive Interval : 1 secs
541 # Session Timeout : 3 secs
542 # Delay Restore : 240 secs
543 # System Mac : 20:04:0f:37:bd:c9
544 # Mclag System Mac : 00:00:00:11:11:11
545 # Gateway Mac : 00:00:00:12:12:12
546 #
547 # Backup Keepalive Session Information:
548 # -----------------------------------
549 # Session Vrf : mgmt
550 # Session Status : down
551 # Source Address : 3.3.3.3
552 # Peer Address : 4.4.4.4
553 # Keepalive Interval : 5 secs
554 # -----------------------------------
555 #
556 # Number of MLAG Interfaces:1
557 # -----------------------------------------------------------
558 # MLAG Interface Local/Remote Status
559 # -----------------------------------------------------------
560 # PortChannel10 down/down
561 #
562 # sonic# show mclag separate-ip-interfaces
563 # Interface Name
564 # ==============
565 # Vlan4
566 # Vlan21
567 # Vlan22
568 # Vlan23
569 # Vlan24
570 # Vlan25
571 # ==============
572 # Total count : 6
573 # ==============
574 # sonic#
575 # sonic# show mclag peer-gateway-interfaces
576 # Interface Name
577 # ==============
578 # Vlan4
579 # Vlan21
580 # Vlan22
581 # Vlan23
582 # Vlan24
583 # Vlan25
584 # ==============
585 # Total count : 6
586 # ==============
587 # sonic#
588
589
590 # Using "merged" state
591 #
592 # Before state:
593 # ------------
594 #
595 # sonic# show mclag brief
596 #
597 # Domain ID : 1
598 # Role : standby
599 # Session Status : down
600 # Peer Link Status : down
601 # Source Address : 2.2.2.2
602 # Peer Address : 1.1.1.1
603 # Session Vrf : mgmt
604 # Peer Link : PortChannel1
605 # Keepalive Interval : 1 secs
606 # Session Timeout : 3 secs
607 # Delay Restore : 240 secs
608 # System Mac : 20:04:0f:37:bd:c9
609 # Mclag System Mac : 00:00:00:11:11:11
610 # Gateway Mac : 00:00:00:12:12:12
611 #
612 # Backup Keepalive Session Information:
613 # -----------------------------------
614 # Session Vrf : mgmt
615 # Session Status : down
616 # Source Address : 3.3.3.3
617 # Peer Address : 4.4.4.4
618 # Keepalive Interval : 5 secs
619 # -----------------------------------
620 #
621 # Number of MLAG Interfaces:1
622 # -----------------------------------------------------------
623 # MLAG Interface Local/Remote Status
624 # -----------------------------------------------------------
625 # PortChannel10 down/down
626 #
627 # sonic# show mclag separate-ip-interfaces
628 # Interface Name
629 # ==============
630 # Vlan4
631 # Vlan21
632 # Vlan22
633 # Vlan23
634 # Vlan24
635 # Vlan25
636 # ==============
637 # Total count : 6
638 # ==============
639 # sonic#
640 # sonic# show mclag peer-gateway-interfaces
641 # Interface Name
642 # ==============
643 # Vlan4
644 # Vlan21
645 # Vlan22
646 # Vlan23
647 # Vlan24
648 # Vlan25
649 # ==============
650 # Total count : 6
651 # ==============
652 # sonic#
653
654 - name: Merge device configuration with the provided configuration
655 dellemc.enterprise_sonic.sonic_mclag:
656 config:
657 domain_id: 1
658 source_address: 3.3.3.3
659 keepalive: 10
660 session_timeout: 30
661 session_vrf: VrfRed
662 delay_restore: 360
663 unique_ip:
664 vlans:
665 - vlan: Vlan5
666 - vlan: Vlan26-28
667 peer_gateway:
668 vlans:
669 - vlan: Vlan5
670 - vlan: Vlan26-28
671 members:
672 portchannels:
673 - lag: PortChannel12
674 backup_keepalive_source_address: 31.31.31.31
675 backup_keepalive_peer_address: 44.44.44.44
676 backup_keepalive_interval: 59
677 backup_keepalive_session_vrf: VrfRed
678 state: merged
679
680 # After state:
681 # ------------
682 #
683 # sonic# show mclag brief
684 #
685 # Domain ID : 1
686 # Role : standby
687 # Session Status : down
688 # Peer Link Status : down
689 # Source Address : 3.3.3.3
690 # Peer Address : 1.1.1.1
691 # Session Vrf : VrfRed
692 # Peer Link : PortChannel1
693 # Keepalive Interval : 10 secs
694 # Session Timeout : 30 secs
695 # Delay Restore : 360 secs
696 # System Mac : 20:04:0f:37:bd:c9
697 # Mclag System Mac : 00:00:00:11:11:11
698 # Gateway Mac : 00:00:00:12:12:12
699 #
700 # Backup Keepalive Session Information:
701 # -----------------------------------
702 # Session Vrf : VrfRed
703 # Session Status : down
704 # Source Address : 31.31.31.31
705 # Peer Address : 44.44.44.44
706 # Keepalive Interval : 59 secs
707 # -----------------------------------
708 #
709 # Number of MLAG Interfaces:2
710 # -----------------------------------------------------------
711 # MLAG Interface Local/Remote Status
712 # -----------------------------------------------------------
713 # PortChannel10 down/down
714 # PortChannel12 down/down
715 #
716 # sonic# show mclag separate-ip-interfaces
717 # Interface Name
718 # ==============
719 # Vlan4
720 # Vlan5
721 # Vlan21
722 # Vlan22
723 # Vlan23
724 # Vlan24
725 # Vlan25
726 # Vlan26
727 # Vlan27
728 # Vlan28
729 # ==============
730 # Total count : 10
731 # ==============
732 # sonic# show mclag peer-gateway-interfaces
733 # Interface Name
734 # ==============
735 # Vlan4
736 # Vlan5
737 # Vlan21
738 # Vlan22
739 # Vlan23
740 # Vlan24
741 # Vlan25
742 # Vlan26
743 # Vlan27
744 # Vlan28
745 # ==============
746 # Total count : 10
747 # ==============
748 # sonic#
749
750
751 # Using "deleted" state
752 #
753 # Before state:
754 # ------------
755 #
756 # sonic# show mclag brief
757 #
758 # Domain ID : 1
759 # Role : standby
760 # Session Status : down
761 # Peer Link Status : down
762 # Source Address : 3.3.3.3
763 # Peer Address : 1.1.1.1
764 # Session Vrf : VrfRed
765 # Peer Link : PortChannel1
766 # Keepalive Interval : 10 secs
767 # Session Timeout : 30 secs
768 # Delay Restore : 360 secs
769 # System Mac : 20:04:0f:37:bd:c9
770 # Mclag System Mac : 00:00:00:11:11:11
771 # Gateway Mac : 00:00:00:12:12:12
772 #
773 # Backup Keepalive Session Information:
774 # -----------------------------------
775 # Session Vrf : VrfRed
776 # Session Status : down
777 # Source Address : 31.31.31.31
778 # Peer Address : 44.44.44.44
779 # Keepalive Interval : 59 secs
780 # -----------------------------------
781 #
782 # Number of MLAG Interfaces:1
783 # -----------------------------------------------------------
784 # MLAG Interface Local/Remote Status
785 # -----------------------------------------------------------
786 # PortChannel10 down/down
787 #
788 # sonic# show mclag separate-ip-interfaces
789 # Interface Name
790 # ==============
791 # Vlan4
792 # Vlan21
793 # Vlan22
794 # Vlan23
795 # Vlan24
796 # Vlan25
797 # ==============
798 # Total count : 6
799 # ==============
800 # sonic#
801 # sonic# show mclag peer-gateway-interfaces
802 # Interface Name
803 # ==============
804 # Vlan4
805 # Vlan21
806 # Vlan22
807 # Vlan23
808 # Vlan24
809 # Vlan25
810 # ==============
811 # Total count : 6
812 # ==============
813 # sonic#
814
815 - name: Delete device configuration based on the provided configuration
816 dellemc.enterprise_sonic.sonic_mclag:
817 config:
818 domain_id: 1
819 source_address: 3.3.3.3
820 keepalive: 10
821 session_vrf: VrfRed
822 unique_ip:
823 vlans:
824 - vlan: Vlan22
825 - vlan: Vlan24-25
826 peer_gateway:
827 vlans:
828 - vlan: Vlan22
829 - vlan: Vlan24-25
830 members:
831 portchannels:
832 - lag: PortChannel10
833 backup_keepalive_source_address: 31.31.31.31
834 backup_keepalive_peer_address: 44.44.44.44
835 backup_keepalive_interval: 59
836 backup_keepalive_session_vrf: VrfRed
837 state: deleted
838
839 # After state:
840 # ------------
841 #
842 # sonic# show mclag brief
843 #
844 # Domain ID : 1
845 # Role : standby
846 # Session Status : down
847 # Peer Link Status : down
848 # Source Address :
849 # Peer Address : 1.1.1.1
850 # Session Vrf : default
851 # Peer Link : PortChannel1
852 # Keepalive Interval : 1 secs
853 # Session Timeout : 30 secs
854 # Delay Restore : 360 secs
855 # System Mac : 20:04:0f:37:bd:c9
856 # Mclag System Mac : 00:00:00:11:11:11
857 # Gateway Mac : 00:00:00:12:12:12
858 #
859 # Backup Keepalive Session Information:
860 # -----------------------------------
861 # Session Vrf : default
862 # Session Status : down
863 # Source Address :
864 # Peer Address :
865 # Keepalive Interval : 30 secs
866 # -----------------------------------
867 #
868 # Number of MLAG Interfaces:0
869 #
870 # sonic# show mclag separate-ip-interfaces
871 # Interface Name
872 # ==============
873 # Vlan4
874 # Vlan21
875 # Vlan23
876 # ==============
877 # Total count : 3
878 # ==============
879 # sonic#
880 # sonic# show mclag peer-gateway-interfaces
881 # Interface Name
882 # ==============
883 # Vlan4
884 # Vlan21
885 # Vlan23
886 # ==============
887 # Total count : 3
888 # ==============
889 # sonic#
890
891
892 # Using "deleted" state
893 #
894 # Before state:
895 # ------------
896 #
897 # sonic# show mclag brief
898 #
899 # Domain ID : 1
900 # Role : standby
901 # Session Status : down
902 # Peer Link Status : down
903 # Source Address : 3.3.3.3
904 # Peer Address : 1.1.1.1
905 # Session Vrf : default
906 # Peer Link : PortChannel1
907 # Keepalive Interval : 10 secs
908 # Session Timeout : 30 secs
909 # Delay Restore : 360 secs
910 # System Mac : 20:04:0f:37:bd:c9
911 # Mclag System Mac : 00:00:00:11:11:11
912 # Gateway Mac : 00:00:00:12:12:12
913 #
914 # Backup Keepalive Session Information:
915 # -----------------------------------
916 # Session Vrf : default
917 # Session Status : down
918 # Source Address :
919 # Peer Address :
920 # Keepalive Interval : 30 secs
921 # -----------------------------------
922 #
923 # Number of MLAG Interfaces:1
924 # -----------------------------------------------------------
925 # MLAG Interface Local/Remote Status
926 # -----------------------------------------------------------
927 # PortChannel10 down/down
928 #
929 # sonic# show mclag separate-ip-interfaces
930 # Interface Name
931 # ==============
932 # Vlan4
933 # ==============
934 # Total count : 1
935 # ==============
936 # sonic#
937 # sonic# show mclag peer-gateway-interfaces
938 # Interface Name
939 # ==============
940 # Vlan4
941 # ==============
942 # Total count : 1
943 # ==============
944 # sonic#
945
946 - name: Delete all device configuration
947 dellemc.enterprise_sonic.sonic_mclag:
948 config:
949 state: deleted
950
951 # After state:
952 # ------------
953 #
954 # sonic# show mclag brief
955 # MCLAG Not Configured
956 # sonic# show mclag separate-ip-interfaces
957 # MCLAG separate IP interface not configured
958 # sonic# show mclag peer-gateway-interfaces
959 # MCLAG Peer Gateway interface not configured
960 # sonic#
961
962
963 # Using "deleted" state
964 #
965 # Before state:
966 # ------------
967 #
968 # sonic# show mclag brief
969 #
970 # Domain ID : 1
971 # Role : standby
972 # Session Status : down
973 # Peer Link Status : down
974 # Source Address : 3.3.3.3
975 # Peer Address : 1.1.1.1
976 # Session Vrf : default
977 # Peer Link : PortChannel1
978 # Keepalive Interval : 10 secs
979 # Session Timeout : 30 secs
980 # Delay Restore : 360 secs
981 # System Mac : 20:04:0f:37:bd:c9
982 # Mclag System Mac : 00:00:00:11:11:11
983 # Gateway Mac : 00:00:00:12:12:12
984 #
985 # Backup Keepalive Session Information:
986 # -----------------------------------
987 # Session Vrf : VrfRed
988 # Session Status : down
989 # Source Address : 31.31.31.31
990 # Peer Address : 44.44.44.44
991 # Keepalive Interval : 59 secs
992 # -----------------------------------
993 #
994 # Number of MLAG Interfaces:2
995 # -----------------------------------------------------------
996 # MLAG Interface Local/Remote Status
997 # -----------------------------------------------------------
998 # PortChannel10 down/down
999 # PortChannel12 down/down
1000 #
1001 # sonic# show mclag separate-ip-interfaces
1002 # Interface Name
1003 # ==============
1004 # Vlan4
1005 # ==============
1006 # Total count : 1
1007 # ==============
1008 # sonic#
1009 # sonic# show mclag peer-gateway-interfaces
1010 # Interface Name
1011 # ==============
1012 # Vlan4
1013 # ==============
1014 # Total count : 1
1015 # ==============
1016 # sonic#
1017
1018 - name: Delete device configuration based on the provided configuration
1019 dellemc.enterprise_sonic.sonic_mclag:
1020 config:
1021 domain_id: 1
1022 source_address: 3.3.3.3
1023 keepalive: 10
1024 peer_gateway:
1025 vlans:
1026 members:
1027 portchannels:
1028 state: deleted
1029
1030 # After state:
1031 # ------------
1032 #
1033 # sonic# show mclag brief
1034 #
1035 # Domain ID : 1
1036 # Role : standby
1037 # Session Status : down
1038 # Peer Link Status : down
1039 # Source Address :
1040 # Peer Address : 1.1.1.1
1041 # Session Vrf : default
1042 # Peer Link : PortChannel1
1043 # Keepalive Interval : 1 secs
1044 # Session Timeout : 30 secs
1045 # Delay Restore : 360 secs
1046 # System Mac : 20:04:0f:37:bd:c9
1047 # Mclag System Mac : 00:00:00:11:11:11
1048 # Gateway Mac : 00:00:00:12:12:12
1049 #
1050 # Backup Keepalive Session Information:
1051 # -----------------------------------
1052 # Session Vrf : VrfRed
1053 # Session Status : down
1054 # Source Address : 31.31.31.31
1055 # Peer Address : 44.44.44.44
1056 # Keepalive Interval : 59 secs
1057 # -----------------------------------
1058 #
1059 # Number of MLAG Interfaces:0
1060 #
1061 # sonic# show mclag separate-ip-interfaces
1062 # Interface Name
1063 # ==============
1064 # Vlan4
1065 # ==============
1066 # Total count : 1
1067 # ==============
1068 # sonic#
1069 # sonic# show mclag peer-gateway-interfaces
1070 # MCLAG Peer Gateway interface not configured
1071 # sonic#
1072
1073
1074 # Using "replaced" state
1075 #
1076 # Before state:
1077 # ------------
1078 #
1079 # sonic# show mclag brief
1080 #
1081 # Domain ID : 1
1082 # Role : standby
1083 # Session Status : down
1084 # Peer Link Status : down
1085 # Source Address : 2.2.2.2
1086 # Peer Address : 1.1.1.1
1087 # Session Vrf : VrfRed
1088 # Peer Link : PortChannel1
1089 # Keepalive Interval : 1 secs
1090 # Session Timeout : 3 secs
1091 # Delay Restore : 240 secs
1092 # System Mac : 20:04:0f:37:bd:c9
1093 # Mclag System Mac : 00:00:00:11:11:11
1094 # Gateway Mac : 00:00:00:12:12:12
1095 #
1096 #
1097 # Backup Keepalive Session Information:
1098 # -----------------------------------
1099 # Session Vrf : VrfRed
1100 # Session Status : down
1101 # Source Address : 31.31.31.31
1102 # Peer Address : 44.44.44.44
1103 # Keepalive Interval : 59 secs
1104 # -----------------------------------
1105 #
1106 # Number of MLAG Interfaces:2
1107 # -----------------------------------------------------------
1108 # MLAG Interface Local/Remote Status
1109 # -----------------------------------------------------------
1110 # PortChannel10 down/down
1111 # PortChannel11 down/down
1112 #
1113 # sonic# show mclag separate-ip-interfaces
1114 # Interface Name
1115 # ==============
1116 # Vlan4
1117 # Vlan21
1118 # Vlan22
1119 # Vlan23
1120 # Vlan24
1121 # Vlan25
1122 # ==============
1123 # Total count : 6
1124 # ==============
1125 # sonic#
1126 # sonic# show mclag peer-gateway-interfaces
1127 # Interface Name
1128 # ==============
1129 # Vlan4
1130 # Vlan21
1131 # Vlan22
1132 # Vlan23
1133 # Vlan24
1134 # Vlan25
1135 # ==============
1136 # Total count : 6
1137 # ==============
1138 # sonic#
1139
1140 - name: Replace device configuration with the provided configuration
1141 dellemc.enterprise_sonic.sonic_mclag:
1142 config:
1143 domain_id: 1
1144 unique_ip:
1145 vlans:
1146 - vlan: Vlan5
1147 - vlan: Vlan24-28
1148 session_vrf: VrfBlue
1149 peer_gateway:
1150 vlans:
1151 - vlan: Vlan5
1152 - vlan: Vlan24-28
1153 members:
1154 portchannels:
1155 - lag: PortChannel10
1156 - lag: PortChannel12
1157 backup_keepalive_source_address: 131.131.131.131
1158 state: replaced
1159
1160 # After state:
1161 # ------------
1162 #
1163 # sonic# show mclag brief
1164 #
1165 # Domain ID : 1
1166 # Role : standby
1167 # Session Status : down
1168 # Peer Link Status : down
1169 # Source Address : 2.2.2.2
1170 # Peer Address : 1.1.1.1
1171 # Session Vrf : VrfBlue
1172 # Peer Link : PortChannel1
1173 # Keepalive Interval : 1 secs
1174 # Session Timeout : 3 secs
1175 # Delay Restore : 240 secs
1176 # System Mac : 20:04:0f:37:bd:c9
1177 # Mclag System Mac : 00:00:00:11:11:11
1178 # Gateway Mac : 00:00:00:12:12:12
1179 #
1180 # Backup Keepalive Session Information:
1181 # -----------------------------------
1182 # Session Vrf : Default
1183 # Session Status : down
1184 # Source Address : 131.131.131.131
1185 # Peer Address :
1186 # Keepalive Interval : 30 secs
1187 # -----------------------------------
1188 #
1189 # Number of MLAG Interfaces:2
1190 # -----------------------------------------------------------
1191 # MLAG Interface Local/Remote Status
1192 # -----------------------------------------------------------
1193 # PortChannel10 down/down
1194 # PortChannel12 down/down
1195 #
1196 # sonic# show mclag separate-ip-interfaces
1197 # Interface Name
1198 # ==============
1199 # Vlan5
1200 # Vlan24
1201 # Vlan25
1202 # Vlan26
1203 # Vlan27
1204 # Vlan28
1205 # ==============
1206 # Total count : 6
1207 # ==============
1208 # sonic# show mclag peer-gateway-interfaces
1209 # Interface Name
1210 # ==============
1211 # Vlan5
1212 # Vlan24
1213 # Vlan25
1214 # Vlan26
1215 # Vlan27
1216 # Vlan28
1217 # ==============
1218 # Total count : 6
1219 # ==============
1220 # sonic#
1221
1222
1223 # Using "overridden" state
1224 #
1225 # Before state:
1226 # ------------
1227 #
1228 # sonic# show mclag brief
1229 #
1230 # Domain ID : 1
1231 # Role : standby
1232 # Session Status : down
1233 # Peer Link Status : down
1234 # Source Address : 2.2.2.2
1235 # Peer Address : 1.1.1.1
1236 # Session Vrf : VrfBlue
1237 # Peer Link : PortChannel1
1238 # Keepalive Interval : 1 secs
1239 # Session Timeout : 3 secs
1240 # Delay Restore : 240 secs
1241 # System Mac : 20:04:0f:37:bd:c9
1242 # Mclag System Mac : 00:00:00:11:11:11
1243 # Gateway Mac : 00:00:00:12:12:12
1244 #
1245 # Backup Keepalive Session Information:
1246 # -----------------------------------
1247 # Session Vrf : Vrf_Red
1248 # Session Status : down
1249 # Source Address : 19.19.19.19
1250 # Peer Address : 20.20.20.20
1251 # Keepalive Interval : 3 secs
1252 # -----------------------------------
1253 #
1254 # Number of MLAG Interfaces:2
1255 # -----------------------------------------------------------
1256 # MLAG Interface Local/Remote Status
1257 # -----------------------------------------------------------
1258 # PortChannel10 down/down
1259 # PortChannel11 down/down
1260 #
1261 # sonic# show mclag separate-ip-interfaces
1262 # Interface Name
1263 # ==============
1264 # Vlan4
1265 # Vlan21
1266 # Vlan22
1267 # Vlan23
1268 # Vlan24
1269 # Vlan25
1270 # ==============
1271 # Total count : 6
1272 # ==============
1273 # sonic#
1274 # sonic# show mclag peer-gateway-interfaces
1275 # Interface Name
1276 # ==============
1277 # Vlan4
1278 # Vlan21
1279 # Vlan22
1280 # Vlan23
1281 # Vlan24
1282 # Vlan25
1283 # ==============
1284 # Total count : 6
1285 # ==============
1286 # sonic#
1287
1288 - name: Override device configuration with the provided configuration
1289 dellemc.enterprise_sonic.sonic_mclag:
1290 config:
1291 domain_id: 1
1292 peer_address: 1.1.1.1
1293 source_address: 3.3.3.3
1294 peer_link: 'Portchannel1'
1295 session_vrf: VrfRed
1296 system_mac: '00:00:00:11:11:11'
1297 gateway_mac: '00:00:00:12:12:12'
1298 unique_ip:
1299 vlans:
1300 - vlan: Vlan24-28
1301 peer_gateway:
1302 vlans:
1303 - vlan: Vlan24-28
1304 members:
1305 portchannels:
1306 - lag: PortChannel10
1307 - lag: PortChannel12
1308 backup_keepalive_source_address: 131.131.131.131
1309 backup_keepalive_peer_address: 144.144.144.144
1310 state: overridden
1311
1312 # After state:
1313 # ------------
1314 #
1315 # sonic# show mclag brief
1316 #
1317 # Domain ID : 1
1318 # Role : standby
1319 # Session Status : down
1320 # Peer Link Status : down
1321 # Source Address : 3.3.3.3
1322 # Peer Address : 1.1.1.1
1323 # Session Vrf : VrfRed
1324 # Peer Link : PortChannel1
1325 # Keepalive Interval : 1 secs
1326 # Session Timeout : 30 secs
1327 # Delay Restore : 300 secs
1328 # System Mac : 20:04:0f:37:bd:c9
1329 # Mclag System Mac : 00:00:00:11:11:11
1330 # Gateway Mac : 00:00:00:12:12:12
1331 #
1332 # Backup Keepalive Session Information:
1333 # -----------------------------------
1334 # Session Vrf : Default
1335 # Session Status : down
1336 # Source Address : 131.131.131.131
1337 # Peer Address : 141.141.141.141
1338 # Keepalive Interval : 30 secs
1339 # -----------------------------------
1340 #
1341 #
1342 # Number of MLAG Interfaces:2
1343 # -----------------------------------------------------------
1344 # MLAG Interface Local/Remote Status
1345 # -----------------------------------------------------------
1346 # PortChannel10 down/down
1347 # PortChannel12 down/down
1348 #
1349 # sonic# show mclag separate-ip-interfaces
1350 # Interface Name
1351 # ==============
1352 # Vlan24
1353 # Vlan25
1354 # Vlan26
1355 # Vlan27
1356 # Vlan28
1357 # ==============
1358 # Total count : 5
1359 # ==============
1360 # sonic# show mclag peer-gateway-interfaces
1361 # Interface Name
1362 # ==============
1363 # Vlan24
1364 # Vlan25
1365 # Vlan26
1366 # Vlan27
1367 # Vlan28
1368 # ==============
1369 # Total count : 5
1370 # ==============
1371 # sonic#
1372
1373
1374
1375 Return Values
1376 -------------
1377 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:
1378
1379 .. raw:: html
1380
1381 <table border=0 cellpadding=0 class="documentation-table">
1382 <tr>
1383 <th colspan="1">Key</th>
1384 <th>Returned</th>
1385 <th width="100%">Description</th>
1386 </tr>
1387 <tr>
1388 <td colspan="1">
1389 <div class="ansibleOptionAnchor" id="return-"></div>
1390 <b>after</b>
1391 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
1392 <div style="font-size: small">
1393 <span style="color: purple">list</span>
1394 </div>
1395 </td>
1396 <td>when changed</td>
1397 <td>
1398 <div>The resulting configuration module invocation.</div>
1399 <br/>
1400 <div style="font-size: smaller"><b>Sample:</b></div>
1401 <div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">The configuration returned always in the same format as the parameters above.</div>
1402 </td>
1403 </tr>
1404 <tr>
1405 <td colspan="1">
1406 <div class="ansibleOptionAnchor" id="return-"></div>
1407 <b>before</b>
1408 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
1409 <div style="font-size: small">
1410 <span style="color: purple">list</span>
1411 </div>
1412 </td>
1413 <td>always</td>
1414 <td>
1415 <div>The configuration prior to the module invocation.</div>
1416 <br/>
1417 <div style="font-size: smaller"><b>Sample:</b></div>
1418 <div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">The configuration returned always in the same format as the parameters above.</div>
1419 </td>
1420 </tr>
1421 <tr>
1422 <td colspan="1">
1423 <div class="ansibleOptionAnchor" id="return-"></div>
1424 <b>commands</b>
1425 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
1426 <div style="font-size: small">
1427 <span style="color: purple">list</span>
1428 </div>
1429 </td>
1430 <td>always</td>
1431 <td>
1432 <div>The set of commands pushed to the remote device.</div>
1433 <br/>
1434 <div style="font-size: smaller"><b>Sample:</b></div>
1435 <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>
1436 </td>
1437 </tr>
1438 </table>
1439 <br/><br/>
1440
1441
1442 Status
1443 ------
1444
1445
1446 Authors
1447 ~~~~~~~
1448
1449 - Abirami N (@abirami-n)