Debian Codegraph @

ansible_collections/dellemc/enterprise_sonic/docs/dellemc.enterprise_sonic.sonic_l3_interfaces_module.rst

raw
1 .. _dellemc.enterprise_sonic.sonic_l3_interfaces_module:
2
3
4 ********************************************
5 dellemc.enterprise_sonic.sonic_l3_interfaces
6 ********************************************
7
8 **Configure the IPv4 and IPv6 parameters on Interfaces such as, Eth, LAG, VLAN, and loopback**
9
10
11 Version added: 1.0.0
12
13 .. contents::
14 :local:
15 :depth: 1
16
17
18 Synopsis
19 --------
20 - Configures Layer 3 interface settings on devices running Enterprise SONiC Distribution by Dell Technologies. This module provides configuration management of IPv4 and IPv6 parameters on Ethernet interfaces of devices running Enterprise SONiC.
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 l3_interfaces configurations.</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>ipv4</b>
57 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
58 <div style="font-size: small">
59 <span style="color: purple">dictionary</span>
60 </div>
61 </td>
62 <td>
63 </td>
64 <td>
65 <div>ipv4 configurations to be set for the Layer 3 interface mentioned in name option.</div>
66 </td>
67 </tr>
68 <tr>
69 <td class="elbow-placeholder"></td>
70 <td class="elbow-placeholder"></td>
71 <td colspan="2">
72 <div class="ansibleOptionAnchor" id="parameter-"></div>
73 <b>addresses</b>
74 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
75 <div style="font-size: small">
76 <span style="color: purple">list</span>
77 / <span style="color: purple">elements=dictionary</span>
78 </div>
79 </td>
80 <td>
81 </td>
82 <td>
83 <div>List of IPv4 addresses to be set.</div>
84 </td>
85 </tr>
86 <tr>
87 <td class="elbow-placeholder"></td>
88 <td class="elbow-placeholder"></td>
89 <td class="elbow-placeholder"></td>
90 <td colspan="1">
91 <div class="ansibleOptionAnchor" id="parameter-"></div>
92 <b>address</b>
93 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
94 <div style="font-size: small">
95 <span style="color: purple">string</span>
96 </div>
97 </td>
98 <td>
99 </td>
100 <td>
101 <div>IPv4 address to be set in the format &lt;ipv4 address&gt;/&lt;mask&gt; for example, 192.0.2.1/24.</div>
102 </td>
103 </tr>
104 <tr>
105 <td class="elbow-placeholder"></td>
106 <td class="elbow-placeholder"></td>
107 <td class="elbow-placeholder"></td>
108 <td colspan="1">
109 <div class="ansibleOptionAnchor" id="parameter-"></div>
110 <b>secondary</b>
111 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
112 <div style="font-size: small">
113 <span style="color: purple">boolean</span>
114 </div>
115 </td>
116 <td>
117 <ul style="margin: 0; padding: 0"><b>Choices:</b>
118 <li>no</li>
119 <li>yes</li>
120 </ul>
121 </td>
122 <td>
123 <div>secondary flag of the ip address.</div>
124 <div>Functional default is &#x27;false&#x27;</div>
125 </td>
126 </tr>
127
128 <tr>
129 <td class="elbow-placeholder"></td>
130 <td class="elbow-placeholder"></td>
131 <td colspan="2">
132 <div class="ansibleOptionAnchor" id="parameter-"></div>
133 <b>anycast_addresses</b>
134 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
135 <div style="font-size: small">
136 <span style="color: purple">list</span>
137 / <span style="color: purple">elements=string</span>
138 </div>
139 </td>
140 <td>
141 </td>
142 <td>
143 <div>List of IPv4 addresses to be set for anycast.</div>
144 </td>
145 </tr>
146 <tr>
147 <td class="elbow-placeholder"></td>
148 <td class="elbow-placeholder"></td>
149 <td colspan="2">
150 <div class="ansibleOptionAnchor" id="parameter-"></div>
151 <b>proxy_arp</b>
152 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
153 <div style="font-size: small">
154 <span style="color: purple">dictionary</span>
155 </div>
156 <div style="font-style: italic; font-size: small; color: darkgreen">added in 3.1.0</div>
157 </td>
158 <td>
159 </td>
160 <td>
161 <div>Configurations parameters for ipv4 proxy ARP</div>
162 </td>
163 </tr>
164 <tr>
165 <td class="elbow-placeholder"></td>
166 <td class="elbow-placeholder"></td>
167 <td class="elbow-placeholder"></td>
168 <td colspan="1">
169 <div class="ansibleOptionAnchor" id="parameter-"></div>
170 <b>mode</b>
171 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
172 <div style="font-size: small">
173 <span style="color: purple">string</span>
174 </div>
175 </td>
176 <td>
177 <ul style="margin: 0; padding: 0"><b>Choices:</b>
178 <li>DISABLE</li>
179 <li>REMOTE_ONLY</li>
180 <li>ALL</li>
181 </ul>
182 </td>
183 <td>
184 <div>Modes for proxy_arp</div>
185 </td>
186 </tr>
187
188
189 <tr>
190 <td class="elbow-placeholder"></td>
191 <td colspan="3">
192 <div class="ansibleOptionAnchor" id="parameter-"></div>
193 <b>ipv6</b>
194 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
195 <div style="font-size: small">
196 <span style="color: purple">dictionary</span>
197 </div>
198 </td>
199 <td>
200 </td>
201 <td>
202 <div>ipv6 configurations to be set for the Layer 3 interface mentioned in name option.</div>
203 </td>
204 </tr>
205 <tr>
206 <td class="elbow-placeholder"></td>
207 <td class="elbow-placeholder"></td>
208 <td colspan="2">
209 <div class="ansibleOptionAnchor" id="parameter-"></div>
210 <b>addresses</b>
211 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
212 <div style="font-size: small">
213 <span style="color: purple">list</span>
214 / <span style="color: purple">elements=dictionary</span>
215 </div>
216 </td>
217 <td>
218 </td>
219 <td>
220 <div>List of IPv6 addresses to be set.</div>
221 </td>
222 </tr>
223 <tr>
224 <td class="elbow-placeholder"></td>
225 <td class="elbow-placeholder"></td>
226 <td class="elbow-placeholder"></td>
227 <td colspan="1">
228 <div class="ansibleOptionAnchor" id="parameter-"></div>
229 <b>address</b>
230 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
231 <div style="font-size: small">
232 <span style="color: purple">string</span>
233 </div>
234 </td>
235 <td>
236 </td>
237 <td>
238 <div>IPv6 address to be set in the address format is &lt;ipv6 address&gt;/&lt;mask&gt; for example, 2001:db8:2201:1::1/64.</div>
239 </td>
240 </tr>
241 <tr>
242 <td class="elbow-placeholder"></td>
243 <td class="elbow-placeholder"></td>
244 <td class="elbow-placeholder"></td>
245 <td colspan="1">
246 <div class="ansibleOptionAnchor" id="parameter-"></div>
247 <b>eui64</b>
248 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
249 <div style="font-size: small">
250 <span style="color: purple">boolean</span>
251 </div>
252 <div style="font-style: italic; font-size: small; color: darkgreen">added in 2.5.0</div>
253 </td>
254 <td>
255 <ul style="margin: 0; padding: 0"><b>Choices:</b>
256 <li>no</li>
257 <li>yes</li>
258 </ul>
259 </td>
260 <td>
261 <div>Flag to indicate whether it is eui64 address</div>
262 </td>
263 </tr>
264
265 <tr>
266 <td class="elbow-placeholder"></td>
267 <td class="elbow-placeholder"></td>
268 <td colspan="2">
269 <div class="ansibleOptionAnchor" id="parameter-"></div>
270 <b>anycast_addresses</b>
271 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
272 <div style="font-size: small">
273 <span style="color: purple">list</span>
274 / <span style="color: purple">elements=string</span>
275 </div>
276 <div style="font-style: italic; font-size: small; color: darkgreen">added in 3.1.0</div>
277 </td>
278 <td>
279 </td>
280 <td>
281 <div>List of IPv6 anycast addresses.</div>
282 </td>
283 </tr>
284 <tr>
285 <td class="elbow-placeholder"></td>
286 <td class="elbow-placeholder"></td>
287 <td colspan="2">
288 <div class="ansibleOptionAnchor" id="parameter-"></div>
289 <b>autoconf</b>
290 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
291 <div style="font-size: small">
292 <span style="color: purple">boolean</span>
293 </div>
294 <div style="font-style: italic; font-size: small; color: darkgreen">added in 2.5.0</div>
295 </td>
296 <td>
297 <ul style="margin: 0; padding: 0"><b>Choices:</b>
298 <li>no</li>
299 <li>yes</li>
300 </ul>
301 </td>
302 <td>
303 <div>autoconfiguration flag</div>
304 </td>
305 </tr>
306 <tr>
307 <td class="elbow-placeholder"></td>
308 <td class="elbow-placeholder"></td>
309 <td colspan="2">
310 <div class="ansibleOptionAnchor" id="parameter-"></div>
311 <b>dad</b>
312 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
313 <div style="font-size: small">
314 <span style="color: purple">string</span>
315 </div>
316 <div style="font-style: italic; font-size: small; color: darkgreen">added in 2.5.0</div>
317 </td>
318 <td>
319 <ul style="margin: 0; padding: 0"><b>Choices:</b>
320 <li>ENABLE</li>
321 <li>DISABLE</li>
322 <li>DISABLE_IPV6_ON_FAILURE</li>
323 </ul>
324 </td>
325 <td>
326 <div>IPv6 nd dad related configs.</div>
327 </td>
328 </tr>
329 <tr>
330 <td class="elbow-placeholder"></td>
331 <td class="elbow-placeholder"></td>
332 <td colspan="2">
333 <div class="ansibleOptionAnchor" id="parameter-"></div>
334 <b>enabled</b>
335 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
336 <div style="font-size: small">
337 <span style="color: purple">boolean</span>
338 </div>
339 </td>
340 <td>
341 <ul style="margin: 0; padding: 0"><b>Choices:</b>
342 <li>no</li>
343 <li>yes</li>
344 </ul>
345 </td>
346 <td>
347 <div>enabled flag of the ipv6.</div>
348 </td>
349 </tr>
350 <tr>
351 <td class="elbow-placeholder"></td>
352 <td class="elbow-placeholder"></td>
353 <td colspan="2">
354 <div class="ansibleOptionAnchor" id="parameter-"></div>
355 <b>nd_proxy</b>
356 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
357 <div style="font-size: small">
358 <span style="color: purple">dictionary</span>
359 </div>
360 <div style="font-style: italic; font-size: small; color: darkgreen">added in 3.1.0</div>
361 </td>
362 <td>
363 </td>
364 <td>
365 <div>Configurations parameters for ipv6 ND-proxy</div>
366 </td>
367 </tr>
368 <tr>
369 <td class="elbow-placeholder"></td>
370 <td class="elbow-placeholder"></td>
371 <td class="elbow-placeholder"></td>
372 <td colspan="1">
373 <div class="ansibleOptionAnchor" id="parameter-"></div>
374 <b>mode</b>
375 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
376 <div style="font-size: small">
377 <span style="color: purple">string</span>
378 </div>
379 </td>
380 <td>
381 <ul style="margin: 0; padding: 0"><b>Choices:</b>
382 <li>DISABLE</li>
383 <li>REMOTE_ONLY</li>
384 <li>ALL</li>
385 </ul>
386 </td>
387 <td>
388 <div>Modes for nd_proxy</div>
389 </td>
390 </tr>
391 <tr>
392 <td class="elbow-placeholder"></td>
393 <td class="elbow-placeholder"></td>
394 <td class="elbow-placeholder"></td>
395 <td colspan="1">
396 <div class="ansibleOptionAnchor" id="parameter-"></div>
397 <b>nd_proxy_rules</b>
398 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
399 <div style="font-size: small">
400 <span style="color: purple">list</span>
401 / <span style="color: purple">elements=string</span>
402 </div>
403 </td>
404 <td>
405 </td>
406 <td>
407 <div>List of ipv6 prefixes (subnets) for which this interface is to serve as an nd proxy</div>
408 </td>
409 </tr>
410
411
412 <tr>
413 <td class="elbow-placeholder"></td>
414 <td colspan="3">
415 <div class="ansibleOptionAnchor" id="parameter-"></div>
416 <b>name</b>
417 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
418 <div style="font-size: small">
419 <span style="color: purple">string</span>
420 / <span style="color: red">required</span>
421 </div>
422 </td>
423 <td>
424 </td>
425 <td>
426 <div>Full name of the interface, for example, Eth1/3.</div>
427 </td>
428 </tr>
429
430 <tr>
431 <td colspan="4">
432 <div class="ansibleOptionAnchor" id="parameter-"></div>
433 <b>state</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 <ul style="margin: 0; padding: 0"><b>Choices:</b>
441 <li><div style="color: blue"><b>merged</b>&nbsp;&larr;</div></li>
442 <li>deleted</li>
443 <li>replaced</li>
444 <li>overridden</li>
445 </ul>
446 </td>
447 <td>
448 <div>The state of the configuration after module completion.</div>
449 </td>
450 </tr>
451 </table>
452 <br/>
453
454
455 Notes
456 -----
457
458 .. note::
459 - Tested against Enterprise SONiC Distribution by Dell Technologies.
460 - Supports ``check_mode``.
461
462
463
464 Examples
465 --------
466
467 .. code-block:: yaml
468
469 # Using "deleted" state
470 #
471 # Before state:
472 # -------------
473 #
474 # sonic# show running-configuration interface
475 # !
476 # interface Ethernet20
477 # mtu 9100
478 # speed 100000
479 # shutdown
480 # ip address 83.1.1.1/16
481 # ip address 84.1.1.1/16 secondary
482 # ipv6 address 83::1/16
483 # ipv6 address 84::1/16
484 # ipv6 address 85::/64 eui-64
485 # ipv6 enable
486 # ipv6 address autoconfig
487 # ipv6 nd dad enable
488 # ip proxy-arp enable remote-only
489 # ipv6 nd-proxy enable all
490 # !
491 # interface Ethernet24
492 # mtu 9100
493 # speed 100000
494 # shutdown
495 # ip address 91.1.1.1/16
496 # ip address 92.1.1.1/16 secondary
497 # ipv6 address 90::1/16
498 # ipv6 address 91::1/16
499 # ipv6 address 92::1/16
500 # ipv6 address 93::1/16
501 # !
502 # interface Vlan501
503 # ip anycast-address 11.12.13.14/12
504 # ip anycast-address 1.2.3.4/22
505 # ipv6 anycast-address 101::101/64
506 # ipv6 anycast-address 102::102/64
507 # !
508
509 - name: delete l3 interface attributes
510 dellemc.enterprise_sonic.sonic_l3_interfaces:
511 config:
512 - name: Ethernet20
513 ipv4:
514 proxy_arp:
515 mode: REMOTE_ONLY
516 addresses:
517 - address: 83.1.1.1/16
518 - address: 84.1.1.1/16
519 ipv6:
520 addresses:
521 - address: 85::/64
522 - name: Ethernet24
523 ipv6:
524 enabled: true
525 addresses:
526 - address: 91::1/16
527 - name: Vlan501
528 ipv4:
529 anycast_addresses:
530 - 11.12.13.14/12
531 ipv6:
532 anycast_addresses:
533 - 101::101/64
534 state: deleted
535
536 #
537 # After state:
538 # ------------
539 #
540 # sonic# show running-configuration interface
541 # !
542 # interface Ethernet20
543 # mtu 9100
544 # speed 100000
545 # shutdown
546 # ipv6 address 83::1/16
547 # ipv6 address 84::1/16
548 # ipv6 enable
549 # ipv6 address autoconfig
550 # ipv6 nd dad enable
551 # ipv6 nd-proxy enable all
552 # !
553 # interface Ethernet24
554 # mtu 9100
555 # speed 100000
556 # shutdown
557 # ip address 91.1.1.1/16
558 # ip address 92.1.1.1/16 secondary
559 # ipv6 address 90::1/16
560 # ipv6 address 92::1/16
561 # ipv6 address 93::1/16
562 # !
563 # interface Vlan501
564 # ip anycast-address 1.2.3.4/22
565 # ipv6 anycast-address 102::102/64
566 # !
567
568 # Using "deleted" state
569 #
570 # Before state:
571 # -------------
572 #
573 # sonic# show running-configuration interface
574 # !
575 # interface Ethernet20
576 # mtu 9100
577 # speed 100000
578 # shutdown
579 # ip address 83.1.1.1/16
580 # ip address 84.1.1.1/16 secondary
581 # ipv6 address 83::1/16
582 # ipv6 address 84::1/16
583 # ipv6 address 85::/64 eui-64
584 # ipv6 enable
585 # ipv6 address autoconfig
586 # ipv6 nd dad enable
587 # ip proxy-arp enable remote-only
588 # ipv6 nd-proxy enable all
589 # ipv6 nd-proxy rule prefix 5001::/24
590 # !
591 # interface Ethernet24
592 # mtu 9100
593 # speed 100000
594 # shutdown
595 # ip address 91.1.1.1/16
596 # ipv6 address 90::1/16
597 # ipv6 address 91::1/16
598 # ipv6 address 92::1/16
599 # ipv6 address 93::1/16
600 # ip proxy-arp enable all
601 # ipv6 nd-proxy enable remote-only
602 # ipv6 nd-proxy rule prefix 6001::/24
603 # !
604 # interface Vlan501
605 # ip anycast-address 11.12.13.14/12
606 # ip anycast-address 1.2.3.4/22
607 # ipv6 anycast-address 101::101/64
608 # ipv6 anycast-address 102::102/64
609 # !
610
611 - name: delete all l3 interface
612 dellemc.enterprise_sonic.sonic_l3_interfaces:
613 config:
614 state: deleted
615
616 #
617 # After state:
618 # ------------
619 #
620 # sonic# show running-configuration interface
621 # !
622 # interface Ethernet20
623 # mtu 9100
624 # speed 100000
625 # shutdown
626 # !
627 # interface Ethernet24
628 # mtu 9100
629 # speed 100000
630 # shutdown
631 # !
632 # interface Vlan501
633 # !
634
635 # Using "merged" state
636 #
637 # Before state:
638 # -------------
639 #
640 # sonic# show running-configuration interface
641 # !
642 # interface Ethernet20
643 # mtu 9100
644 # speed 100000
645 # shutdown
646 # !
647 # interface Ethernet24
648 # mtu 9100
649 # speed 100000
650 # shutdown
651 # !
652 # interface Vlan501
653 # ip anycast-address 1.2.3.4/22
654 # ipv6 anycast-address 101::101/64
655 # !
656
657 - name: Add l3 interface configurations
658 dellemc.enterprise_sonic.sonic_l3_interfaces:
659 config:
660 - name: Ethernet20
661 ipv4:
662 addresses:
663 - address: 83.1.1.1/16
664 - address: 84.1.1.1/16
665 secondary: true
666 proxy_arp:
667 mode: REMOTE_ONLY
668 ipv6:
669 enabled: true
670 dad: ENABLE
671 autoconf: true
672 addresses:
673 - address: 83::1/16
674 - address: 84::1/16
675 - address: 85::/64
676 eui64: true
677 - name: Ethernet24
678 ipv4:
679 addresses:
680 - address: 91.1.1.1/16
681 ipv6:
682 addresses:
683 - address: 90::1/16
684 - address: 91::1/16
685 - address: 92::1/16
686 - address: 93::1/16
687 nd_proxy:
688 mode: REMOTE_ONLY
689 nd_proxy_rules:
690 - 6001::/24
691 - name: Vlan501
692 ipv4:
693 anycast_addresses:
694 - 11.12.13.14/12
695 ipv6:
696 anycast_addresses:
697 - 102::102/64
698 state: merged
699
700 # After state:
701 # ------------
702 #
703 # sonic# show running-configuration interface
704 # !
705 # interface Ethernet20
706 # mtu 9100
707 # speed 100000
708 # shutdown
709 # ip address 83.1.1.1/16
710 # ip address 84.1.1.1/16 secondary
711 # ip proxy-arp enable remote-only
712 # ipv6 address 83::1/16
713 # ipv6 address 84::1/16
714 # ipv6 address 85::/64 eui-64
715 # ipv6 enable
716 # ipv6 address autoconfig
717 # ipv6 nd dad enable
718 # !
719 # interface Ethernet24
720 # mtu 9100
721 # speed 100000
722 # shutdown
723 # ip address 91.1.1.1/16
724 # ipv6 address 90::1/16
725 # ipv6 address 91::1/16
726 # ipv6 address 92::1/16
727 # ipv6 address 93::1/16
728 # ipv6 nd-proxy enable remote-only
729 # ipv6 nd-proxy rule prefix 6001::/24
730 # !
731 # interface Vlan501
732 # ip anycast-address 1.2.3.4/22
733 # ip anycast-address 11.12.13.14/12
734 # ipv6 anycast-address 101::101/64
735 # ipv6 anycast-address 102::102/64
736 # !
737
738 # Using "replaced" state
739 #
740 # Before state:
741 # -------------
742 #
743 # sonic# show running-configuration interface
744 # !
745 # interface Ethernet20
746 # mtu 9100
747 # speed 100000
748 # shutdown
749 # ip address 83.1.1.1/16
750 # ip address 84.1.1.1/16 secondary
751 # ipv6 address 83::1/16
752 # ipv6 address 84::1/16
753 # ipv6 enable
754 # !
755 # interface Ethernet24
756 # mtu 9100
757 # speed 100000
758 # shutdown
759 # ip address 91.1.1.1/16
760 # ipv6 address 90::1/16
761 # ipv6 address 91::1/16
762 # ipv6 address 92::1/16
763 # ipv6 address 93::1/16
764 # !
765
766 - name: Replace l3 interface
767 dellemc.enterprise_sonic.sonic_l3_interfaces:
768 config:
769 - name: Ethernet20
770 ipv4:
771 - address: 81.1.1.1/16
772 proxy_arp:
773 mode: ALL
774 state: replaced
775
776 # After state:
777 # ------------
778 #
779 # sonic# show running-configuration interface
780 # !
781 # interface Ethernet20
782 # mtu 9100
783 # speed 100000
784 # shutdown
785 # ip address 81.1.1.1/16
786 # ip proxy-arp enable all
787 # !
788 # interface Ethernet24
789 # mtu 9100
790 # speed 100000
791 # shutdown
792 # ip address 91.1.1.1/16
793 # ipv6 address 90::1/16
794 # ipv6 address 91::1/16
795 # ipv6 address 92::1/16
796 # ipv6 address 93::1/16
797 # !
798
799 # Using "replaced" state
800 #
801 # Before state:
802 # -------------
803 #
804 # sonic# show running-configuration interface
805 # !
806 # interface Ethernet20
807 # mtu 9100
808 # speed 100000
809 # shutdown
810 # ip address 83.1.1.1/16
811 # ip address 84.1.1.1/16 secondary
812 # ip proxy-arp enable all
813 # ipv6 address 83::1/16
814 # ipv6 address 84::1/16
815 # ipv6 enable
816 # ipv6 nd-proxy enable remote-only
817 # ipv6 nd-proxy rule prefix 6001::/24
818 # !
819 # interface Ethernet24
820 # mtu 9100
821 # speed 100000
822 # shutdown
823 # ip address 91.1.1.1/16
824 # ipv6 address 90::1/16
825 # ipv6 address 91::1/16
826 # ipv6 address 92::1/16
827 # ipv6 address 93::1/16
828 # !
829
830 - name: Replace l3 interface
831 dellemc.enterprise_sonic.sonic_l3_interfaces:
832 config:
833 - name: Ethernet20
834 state: replaced
835
836 # After state:
837 # ------------
838 #
839 # sonic# show running-configuration interface
840 # !
841 # interface Ethernet20
842 # mtu 9100
843 # speed 100000
844 # shutdown
845 # !
846 # interface Ethernet24
847 # mtu 9100
848 # speed 100000
849 # shutdown
850 # ip address 91.1.1.1/16
851 # ipv6 address 90::1/16
852 # ipv6 address 91::1/16
853 # ipv6 address 92::1/16
854 # ipv6 address 93::1/16
855 # !
856
857 # Using "overridden" state
858 #
859 # Before state:
860 # -------------
861 #
862 # sonic# show running-configuration interface
863 # !
864 # interface Ethernet20
865 # mtu 9100
866 # speed 100000
867 # shutdown
868 # ip address 83.1.1.1/16
869 # ip address 84.1.1.1/16 secondary
870 # ipv6 address 83::1/16
871 # ipv6 address 84::1/16
872 # ipv6 address 85::/64 eui-64
873 # ipv6 enable
874 # ipv6 address autoconfig
875 # ipv6 nd dad enable
876 # ipv6 nd-proxy enable remote-only
877 # ipv6 nd-proxy rule prefix 6001::/24
878 # !
879 # interface Ethernet24
880 # mtu 9100
881 # speed 100000
882 # shutdown
883 # ip address 91.1.1.1/16
884 # ipv6 address 90::1/16
885 # ipv6 address 91::1/16
886 # ipv6 address 92::1/16
887 # ipv6 address 93::1/16
888 # !
889
890 - name: Override l3 interface
891 dellemc.enterprise_sonic.sonic_l3_interfaces:
892 config:
893 - name: Ethernet24
894 ipv4:
895 - address: 81.1.1.1/16
896 proxy_arp:
897 mode: ALL
898 - name: Vlan100
899 ipv4:
900 anycast_addresses:
901 - 83.1.1.1/24
902 - 85.1.1.12/24
903 ipv6:
904 anycast_addresses:
905 - 83::1/24
906 - 85::1/24
907 nd_proxy:
908 mode: REMOTE_ONLY
909 nd_proxy_rules:
910 - 6001::/24
911 state: overridden
912
913 # After state:
914 # ------------
915 #
916 # sonic# show running-configuration interface
917 # !
918 # interface Ethernet20
919 # mtu 9100
920 # speed 100000
921 # shutdown
922 # !
923 # interface Ethernet24
924 # mtu 9100
925 # speed 100000
926 # shutdown
927 # ip address 81.1.1.1/16
928 # ip proxy-arp enable all
929 # !
930 # interface Vlan100
931 # ip anycast-address 83.1.1.1/24
932 # ip anycast-address 85.1.1.12/24
933 # ipv6 anycast-address 83::1/24
934 # ipv6 anycast-address 85::1/24
935 # ipv6 nd-proxy enable remote-only
936 # ipv6 nd-proxy rule prefix 6001::/24
937
938 # !
939
940
941
942 Return Values
943 -------------
944 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:
945
946 .. raw:: html
947
948 <table border=0 cellpadding=0 class="documentation-table">
949 <tr>
950 <th colspan="1">Key</th>
951 <th>Returned</th>
952 <th width="100%">Description</th>
953 </tr>
954 <tr>
955 <td colspan="1">
956 <div class="ansibleOptionAnchor" id="return-"></div>
957 <b>after</b>
958 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
959 <div style="font-size: small">
960 <span style="color: purple">list</span>
961 </div>
962 </td>
963 <td>when changed</td>
964 <td>
965 <div>The resulting configuration module invocation.</div>
966 <br/>
967 <div style="font-size: smaller"><b>Sample:</b></div>
968 <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>
969 </td>
970 </tr>
971 <tr>
972 <td colspan="1">
973 <div class="ansibleOptionAnchor" id="return-"></div>
974 <b>after_generated</b>
975 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
976 <div style="font-size: small">
977 <span style="color: purple">list</span>
978 </div>
979 </td>
980 <td>when <code>check_mode</code></td>
981 <td>
982 <div>The generated configuration module invocation.</div>
983 <br/>
984 <div style="font-size: smaller"><b>Sample:</b></div>
985 <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>
986 </td>
987 </tr>
988 <tr>
989 <td colspan="1">
990 <div class="ansibleOptionAnchor" id="return-"></div>
991 <b>before</b>
992 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
993 <div style="font-size: small">
994 <span style="color: purple">list</span>
995 </div>
996 </td>
997 <td>always</td>
998 <td>
999 <div>The configuration prior to the module invocation.</div>
1000 <br/>
1001 <div style="font-size: smaller"><b>Sample:</b></div>
1002 <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>
1003 </td>
1004 </tr>
1005 <tr>
1006 <td colspan="1">
1007 <div class="ansibleOptionAnchor" id="return-"></div>
1008 <b>commands</b>
1009 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
1010 <div style="font-size: small">
1011 <span style="color: purple">list</span>
1012 </div>
1013 </td>
1014 <td>always</td>
1015 <td>
1016 <div>The set of commands pushed to the remote device.</div>
1017 <br/>
1018 <div style="font-size: smaller"><b>Sample:</b></div>
1019 <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>
1020 </td>
1021 </tr>
1022 </table>
1023 <br/><br/>
1024
1025
1026 Status
1027 ------
1028
1029
1030 Authors
1031 ~~~~~~~
1032
1033 - Kumaraguru Narayanan (@nkumaraguru)