Debian Codegraph @

ansible_collections/dellemc/enterprise_sonic/docs/dellemc.enterprise_sonic.sonic_lldp_interfaces_module.rst

raw
1 .. _dellemc.enterprise_sonic.sonic_lldp_interfaces_module:
2
3
4 **********************************************
5 dellemc.enterprise_sonic.sonic_lldp_interfaces
6 **********************************************
7
8 **Manage Inteface LLDP configurations on SONiC**
9
10
11 Version added: 2.1.0
12
13 .. contents::
14 :local:
15 :depth: 1
16
17
18 Synopsis
19 --------
20 - This module provides configuration management of interface LLDP parameters in devices running SONiC.
21 - It is intended for use in conjunction with global LLDP.
22
23
24
25
26 Parameters
27 ----------
28
29 .. raw:: html
30
31 <table border=0 cellpadding=0 class="documentation-table">
32 <tr>
33 <th colspan="4">Parameter</th>
34 <th>Choices/<font color="blue">Defaults</font></th>
35 <th width="100%">Comments</th>
36 </tr>
37 <tr>
38 <td colspan="4">
39 <div class="ansibleOptionAnchor" id="parameter-"></div>
40 <b>config</b>
41 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
42 <div style="font-size: small">
43 <span style="color: purple">list</span>
44 / <span style="color: purple">elements=dictionary</span>
45 </div>
46 </td>
47 <td>
48 </td>
49 <td>
50 <div>The set of link layer discovery protocol interface attribute configurations</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>enable</b>
58 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
59 <div style="font-size: small">
60 <span style="color: purple">boolean</span>
61 </div>
62 </td>
63 <td>
64 <ul style="margin: 0; padding: 0"><b>Choices:</b>
65 <li>no</li>
66 <li>yes</li>
67 </ul>
68 </td>
69 <td>
70 <div>This argument is a boolean value to enable or disable LLDP.</div>
71 <div>This command is supported only on physical interfaces and not on logical interfaces.</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>med_tlv_select</b>
79 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
80 <div style="font-size: small">
81 <span style="color: purple">dictionary</span>
82 </div>
83 </td>
84 <td>
85 </td>
86 <td>
87 <div>This command can be used to select whether to advertise the LLDP-MED TLVs or not. By default the LLDP-MED TLVs are advertised.</div>
88 <div>This command is supported only on physical interfaces and not on logical interfaces.</div>
89 </td>
90 </tr>
91 <tr>
92 <td class="elbow-placeholder"></td>
93 <td class="elbow-placeholder"></td>
94 <td colspan="2">
95 <div class="ansibleOptionAnchor" id="parameter-"></div>
96 <b>network_policy</b>
97 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
98 <div style="font-size: small">
99 <span style="color: purple">boolean</span>
100 </div>
101 </td>
102 <td>
103 <ul style="margin: 0; padding: 0"><b>Choices:</b>
104 <li>no</li>
105 <li>yes</li>
106 </ul>
107 </td>
108 <td>
109 <div>This command can be used to select whether to advertise network-policy LLDP-MED TLVs or not. By default network-policy LLDP-MED TLVs are advertised.</div>
110 </td>
111 </tr>
112 <tr>
113 <td class="elbow-placeholder"></td>
114 <td class="elbow-placeholder"></td>
115 <td colspan="2">
116 <div class="ansibleOptionAnchor" id="parameter-"></div>
117 <b>power_management</b>
118 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
119 <div style="font-size: small">
120 <span style="color: purple">boolean</span>
121 </div>
122 </td>
123 <td>
124 <ul style="margin: 0; padding: 0"><b>Choices:</b>
125 <li>no</li>
126 <li>yes</li>
127 </ul>
128 </td>
129 <td>
130 <div>This command can be used to select whether to advertise power-management LLDP-MED TLVs or not. By default power-management LLDP-MED TLVs are advertised.</div>
131 </td>
132 </tr>
133
134 <tr>
135 <td class="elbow-placeholder"></td>
136 <td colspan="3">
137 <div class="ansibleOptionAnchor" id="parameter-"></div>
138 <b>mode</b>
139 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
140 <div style="font-size: small">
141 <span style="color: purple">string</span>
142 </div>
143 </td>
144 <td>
145 <ul style="margin: 0; padding: 0"><b>Choices:</b>
146 <li>receive</li>
147 <li>transmit</li>
148 </ul>
149 </td>
150 <td>
151 <div>By default both transmit and receive of LLDP frames is enabled.</div>
152 <div>This command can be used to configure either in receive only or transmit only mode.</div>
153 <div>This command is supported on physical and logical interfaces.</div>
154 </td>
155 </tr>
156 <tr>
157 <td class="elbow-placeholder"></td>
158 <td colspan="3">
159 <div class="ansibleOptionAnchor" id="parameter-"></div>
160 <b>name</b>
161 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
162 <div style="font-size: small">
163 <span style="color: purple">string</span>
164 / <span style="color: red">required</span>
165 </div>
166 </td>
167 <td>
168 </td>
169 <td>
170 <div>Interface name in which LLDP needs to be configured on.</div>
171 </td>
172 </tr>
173 <tr>
174 <td class="elbow-placeholder"></td>
175 <td colspan="3">
176 <div class="ansibleOptionAnchor" id="parameter-"></div>
177 <b>network_policy</b>
178 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
179 <div style="font-size: small">
180 <span style="color: purple">integer</span>
181 </div>
182 <div style="font-style: italic; font-size: small; color: darkgreen">added in 3.1.0</div>
183 </td>
184 <td>
185 </td>
186 <td>
187 <div>Network policy number, range 1-128.</div>
188 </td>
189 </tr>
190 <tr>
191 <td class="elbow-placeholder"></td>
192 <td colspan="3">
193 <div class="ansibleOptionAnchor" id="parameter-"></div>
194 <b>tlv_select</b>
195 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
196 <div style="font-size: small">
197 <span style="color: purple">dictionary</span>
198 </div>
199 </td>
200 <td>
201 </td>
202 <td>
203 <div>This command can be used to select whether to advertise the LLDP 802.3at or bt power management TLVs or not. By default this TLV is advertised.</div>
204 <div>This command is supported only on physical interfaces and not on logical interfaces.</div>
205 </td>
206 </tr>
207 <tr>
208 <td class="elbow-placeholder"></td>
209 <td class="elbow-placeholder"></td>
210 <td colspan="2">
211 <div class="ansibleOptionAnchor" id="parameter-"></div>
212 <b>link_aggregation</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>This command can be used to select whether to advertise link-aggregation LLDP TLVs or not. By default link-aggregation LLDP TLVs are advertised.</div>
227 </td>
228 </tr>
229 <tr>
230 <td class="elbow-placeholder"></td>
231 <td class="elbow-placeholder"></td>
232 <td colspan="2">
233 <div class="ansibleOptionAnchor" id="parameter-"></div>
234 <b>max_frame_size</b>
235 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
236 <div style="font-size: small">
237 <span style="color: purple">boolean</span>
238 </div>
239 <div style="font-style: italic; font-size: small; color: darkgreen">added in 3.1.0</div>
240 </td>
241 <td>
242 <ul style="margin: 0; padding: 0"><b>Choices:</b>
243 <li>no</li>
244 <li>yes</li>
245 </ul>
246 </td>
247 <td>
248 <div>This command can be used to select whether to advertise max-frame-size LLDP TLVs or not. By default max-frame-size LLDP TLVs are advertised.</div>
249 </td>
250 </tr>
251 <tr>
252 <td class="elbow-placeholder"></td>
253 <td class="elbow-placeholder"></td>
254 <td colspan="2">
255 <div class="ansibleOptionAnchor" id="parameter-"></div>
256 <b>port_vlan_id</b>
257 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
258 <div style="font-size: small">
259 <span style="color: purple">boolean</span>
260 </div>
261 <div style="font-style: italic; font-size: small; color: darkgreen">added in 3.1.0</div>
262 </td>
263 <td>
264 <ul style="margin: 0; padding: 0"><b>Choices:</b>
265 <li>no</li>
266 <li>yes</li>
267 </ul>
268 </td>
269 <td>
270 <div>This command can be used to select whether to advertise port-vlan-id LLDP TLVs or not. By default port-vlan-id LLDP TLVs are advertised.</div>
271 </td>
272 </tr>
273 <tr>
274 <td class="elbow-placeholder"></td>
275 <td class="elbow-placeholder"></td>
276 <td colspan="2">
277 <div class="ansibleOptionAnchor" id="parameter-"></div>
278 <b>power_management</b>
279 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
280 <div style="font-size: small">
281 <span style="color: purple">boolean</span>
282 </div>
283 </td>
284 <td>
285 <ul style="margin: 0; padding: 0"><b>Choices:</b>
286 <li>no</li>
287 <li>yes</li>
288 </ul>
289 </td>
290 <td>
291 <div>This command can be used to select whether to advertise power-management LLDP TLVs or not. By default power-management LLDP TLVs are advertised.</div>
292 </td>
293 </tr>
294 <tr>
295 <td class="elbow-placeholder"></td>
296 <td class="elbow-placeholder"></td>
297 <td colspan="2">
298 <div class="ansibleOptionAnchor" id="parameter-"></div>
299 <b>vlan_name</b>
300 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
301 <div style="font-size: small">
302 <span style="color: purple">boolean</span>
303 </div>
304 <div style="font-style: italic; font-size: small; color: darkgreen">added in 3.1.0</div>
305 </td>
306 <td>
307 <ul style="margin: 0; padding: 0"><b>Choices:</b>
308 <li>no</li>
309 <li>yes</li>
310 </ul>
311 </td>
312 <td>
313 <div>This command can be used to select whether to advertise vlan-name LLDP TLVs or not. By default vlan-name LLDP TLVs are advertised.</div>
314 </td>
315 </tr>
316
317 <tr>
318 <td class="elbow-placeholder"></td>
319 <td colspan="3">
320 <div class="ansibleOptionAnchor" id="parameter-"></div>
321 <b>tlv_set</b>
322 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
323 <div style="font-size: small">
324 <span style="color: purple">dictionary</span>
325 </div>
326 </td>
327 <td>
328 </td>
329 <td>
330 <div>This command can be used to configure an IPv4 or IPv6 management address that will be used to advertise by LLDP on an interface</div>
331 <div>This command is supported only on physical interfaces and not on logical interfaces.</div>
332 </td>
333 </tr>
334 <tr>
335 <td class="elbow-placeholder"></td>
336 <td class="elbow-placeholder"></td>
337 <td colspan="2">
338 <div class="ansibleOptionAnchor" id="parameter-"></div>
339 <b>ipv4_management_address</b>
340 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
341 <div style="font-size: small">
342 <span style="color: purple">string</span>
343 </div>
344 </td>
345 <td>
346 </td>
347 <td>
348 <div>To configure IPv4 management address for LLDP in A.B.C.D format</div>
349 </td>
350 </tr>
351 <tr>
352 <td class="elbow-placeholder"></td>
353 <td class="elbow-placeholder"></td>
354 <td colspan="2">
355 <div class="ansibleOptionAnchor" id="parameter-"></div>
356 <b>ipv6_management_address</b>
357 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
358 <div style="font-size: small">
359 <span style="color: purple">string</span>
360 </div>
361 </td>
362 <td>
363 </td>
364 <td>
365 <div>To configure IPv6 management address for LLDP in A:B::C:D format</div>
366 </td>
367 </tr>
368
369 <tr>
370 <td class="elbow-placeholder"></td>
371 <td colspan="3">
372 <div class="ansibleOptionAnchor" id="parameter-"></div>
373 <b>vlan_name_tlv</b>
374 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
375 <div style="font-size: small">
376 <span style="color: purple">dictionary</span>
377 </div>
378 <div style="font-style: italic; font-size: small; color: darkgreen">added in 3.1.0</div>
379 </td>
380 <td>
381 </td>
382 <td>
383 <div>This command can be used to configure the vlan list for the Vlan name TLV advertisement.</div>
384 <div>This command is supported only on physical interfaces and not on logical interfaces.</div>
385 </td>
386 </tr>
387 <tr>
388 <td class="elbow-placeholder"></td>
389 <td class="elbow-placeholder"></td>
390 <td colspan="2">
391 <div class="ansibleOptionAnchor" id="parameter-"></div>
392 <b>allowed_vlans</b>
393 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
394 <div style="font-size: small">
395 <span style="color: purple">list</span>
396 / <span style="color: purple">elements=dictionary</span>
397 </div>
398 </td>
399 <td>
400 </td>
401 <td>
402 <div>This command can be used to configure the vlan list for the Vlan name TLV advertisement.</div>
403 <div>Multiple Vlans or Vlan ranges can be configured.</div>
404 <div>Ranges are specified by a start and end Vlan value separated by hyphen.</div>
405 <div>Vlans configured should be in the range 1-4094.</div>
406 </td>
407 </tr>
408 <tr>
409 <td class="elbow-placeholder"></td>
410 <td class="elbow-placeholder"></td>
411 <td class="elbow-placeholder"></td>
412 <td colspan="1">
413 <div class="ansibleOptionAnchor" id="parameter-"></div>
414 <b>vlan</b>
415 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
416 <div style="font-size: small">
417 <span style="color: purple">string</span>
418 </div>
419 </td>
420 <td>
421 </td>
422 <td>
423 <div>Configures the specified VLAN or VLAN range.</div>
424 </td>
425 </tr>
426
427 <tr>
428 <td class="elbow-placeholder"></td>
429 <td class="elbow-placeholder"></td>
430 <td colspan="2">
431 <div class="ansibleOptionAnchor" id="parameter-"></div>
432 <b>max_tlv_count</b>
433 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
434 <div style="font-size: small">
435 <span style="color: purple">integer</span>
436 </div>
437 </td>
438 <td>
439 </td>
440 <td>
441 <div>This command can be used to configure the maximum number of Vlan name TLVs that can be advertised on the interface.</div>
442 <div>Range is 1-128 and the default value is 10.</div>
443 </td>
444 </tr>
445
446
447 <tr>
448 <td colspan="4">
449 <div class="ansibleOptionAnchor" id="parameter-"></div>
450 <b>state</b>
451 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
452 <div style="font-size: small">
453 <span style="color: purple">string</span>
454 </div>
455 </td>
456 <td>
457 <ul style="margin: 0; padding: 0"><b>Choices:</b>
458 <li><div style="color: blue"><b>merged</b>&nbsp;&larr;</div></li>
459 <li>deleted</li>
460 <li>replaced</li>
461 <li>overridden</li>
462 </ul>
463 </td>
464 <td>
465 <div>The state specifies the type of configuration update to be performed on the device.</div>
466 <div>If the state is &quot;merged&quot;, merge specified attributes with existing configured attributes.</div>
467 <div>For &quot;deleted&quot;, delete the specified attributes from existing configuration.</div>
468 <div>For &quot;replaced&quot;, replaces lldp interface configuration of the specified interfaces with provided configuration.</div>
469 <div>For &quot;overridden&quot;, overrides all on-device lldp interface configurations with the provided configuration.</div>
470 </td>
471 </tr>
472 </table>
473 <br/>
474
475
476 Notes
477 -----
478
479 .. note::
480 - Tested against Enterprise SONiC Distribution by Dell Technologies.
481 - Supports ``check_mode``.
482
483
484
485 Examples
486 --------
487
488 .. code-block:: yaml
489
490 # Using "deleted" state
491 #
492 # Before state:
493 # -------------
494 # sonic# show running-configuration interface Ethernet 1
495 # !
496 # interface Ethernet1
497 # mtu 9100
498 # speed 25000
499 # unreliable-los auto
500 # no shutdown
501 # lldp transmit
502 # network-policy 1
503 # lldp tlv-set management-address ipv4 10.1.1.2
504 # sonic#
505
506 - name: Delete LLDP interface configurations
507 dellemc.enterprise_sonic.sonic_lldp_interfaces:
508 config:
509 - name: Ethernet1
510 mode: transmit
511 network_policy: 1
512 tlv_set:
513 ipv4_management_address: 10.1.1.2
514 state: deleted
515
516 # After state:
517 # ------------
518 # sonic# show running-configuration interface Ethernet 1
519 # !
520 # interface Ethernet1
521 # mtu 9100
522 # speed 25000
523 # unreliable-los auto
524 # no shutdown
525 # sonic#
526
527
528 # Using "deleted" state
529 #
530 # Before state:
531 # -------------
532 # sonic# show running-configuration interface
533 # !
534 # interface Ethernet0
535 # mtu 9100
536 # speed 25000
537 # unreliable-los auto
538 # no shutdown
539 # !
540 # interface Ethernet1
541 # mtu 9100
542 # speed 25000
543 # unreliable-los auto
544 # no shutdown
545 # !
546 # sonic#
547
548 - name: Delete default LLDP Interface configurations
549 dellemc.enterprise_sonic.sonic_lldp_interfaces:
550 config:
551 - name: Ethernet1
552 tlv_select:
553 power-management: true
554 port_vlan_id: true
555 vlan_name: true
556 link_aggregation: true
557 max_frame_size: true
558 med_tlv_select:
559 network_policy: true
560 state: deleted
561
562 # After State:
563 # ------------
564 # sonic# show running-configuration interface
565 # !
566 # interface Ethernet0
567 # mtu 9100
568 # speed 25000
569 # unreliable-los auto
570 # no shutdown
571 # !
572 # interface Ethernet1
573 # mtu 9100
574 # speed 25000
575 # unreliable-los auto
576 # no shutdown
577 # no lldp med-tlv-select network-policy
578 # no lldp tlv-select power-management
579 # no lldp tlv-select port-vlan-id
580 # no lldp tlv-select vlan-name
581 # no lldp tlv-select link-aggregation
582 # no lldp tlv-select max-frame-size
583 # sonic#
584
585
586 # Using "deleted" state
587 #
588 # Before state:
589 # -------------
590 # sonic# show running-configuration interface
591 # !
592 # interface Ethernet0
593 # mtu 9100
594 # speed 25000
595 # unreliable-los auto
596 # no shutdown
597 # lldp receive
598 # lldp tlv-set management-address ipv4 20.1.1.1
599 # lldp vlan-name-tlv allowed Vlan 10,15-20
600 # lldp vlan-name-tlv max-tlv-count 15
601 # !
602 # interface Ethernet1
603 # mtu 9100
604 # speed 25000
605 # unreliable-los auto
606 # no shutdown
607 # lldp transmit
608 # lldp tlv-set management-address ipv4 21.1.1.1
609 # lldp vlan-name-tlv allowed Vlan 10,15-20
610 # lldp vlan-name-tlv max-tlv-count 15
611 # !
612 # sonic#
613
614 - name: Delete default LLDP Interface configurations
615 dellemc.enterprise_sonic.sonic_lldp_interfaces:
616 config:
617 - name: Ethernet0
618 vlan_name_tlv:
619 allowed_vlans:
620 - vlan: 10
621 - vlan: 15-20
622 max_tlv_count: 15
623 - name: Ethernet1
624 state: deleted
625
626 # After state:
627 # ------------
628 # sonic# show running-configuration interface
629 # !
630 # interface Ethernet0
631 # mtu 9100
632 # speed 25000
633 # unreliable-los auto
634 # no shutdown
635 # lldp receive
636 # lldp tlv-set management-address ipv4 20.1.1.1
637 # !
638 # interface Ethernet1
639 # mtu 9100
640 # speed 25000
641 # unreliable-los auto
642 # no shutdown
643 # sonic#
644
645
646 # Using "merged" state
647 #
648 # Before state:
649 # -------------
650 # sonic# show running-configuration interface
651 # !
652 # interface Ethernet0
653 # mtu 9100
654 # speed 25000
655 # unreliable-los auto
656 # no shutdown
657 # !
658 # interface Ethernet1
659 # mtu 9100
660 # speed 25000
661 # unreliable-los auto
662 # no shutdown
663 # no lldp enable
664 # !
665 # sonic#
666
667 - name: Modify LLDP Interface configurations
668 dellemc.enterprise_sonic.sonic_lldp_interfaces:
669 config:
670 - name: Ethernet1
671 enable: true
672 mode: transmit
673 network_policy: 2
674 med_tlv_select:
675 power_management: true
676 tlv_set:
677 ipv4_management_address: 10.1.1.2
678 vlan_name_tlv:
679 allowed_vlans:
680 - vlan: 10
681 - vlan: 15-20
682 max_tlv_count: 15
683 state: merged
684
685 # After State:
686 # ------------
687 # sonic# show running-configuration interface
688 # !
689 # interface Ethernet0
690 # mtu 9100
691 # speed 25000
692 # unreliable-los auto
693 # no shutdown
694 # !
695 # interface Ethernet1
696 # mtu 9100
697 # speed 25000
698 # unreliable-los auto
699 # no shutdown
700 # lldp transmit
701 # network-policy 2
702 # lldp tlv-set management-address ipv4 10.1.1.2
703 # lldp vlan-name-tlv allowed Vlan 10,15-20
704 # lldp vlan-name-tlv max-tlv-count 15
705 # sonic#
706
707 # Using "replaced" state
708 #
709 # Before state:
710 # -------------
711 #
712 # sonic# show running-configuration interface
713 # !
714 # interface Eth1/5
715 # mtu 9100
716 # speed 10000
717 # unreliable-los auto
718 # no shutdown
719 # lldp tlv-set management-address ipv6 10::1
720 # no lldp med-tlv-select network-policy
721 # no lldp med-tlv-select power-management
722 # lldp vlan-name-tlv allowed Vlan 10,15-20
723 # lldp vlan-name-tlv max-tlv-count 15
724 #
725 # !
726 # interface Eth1/6
727 # mtu 9100
728 # speed 10000
729 # unreliable-los auto
730 # no shutdown
731 # no lldp med-tlv-select power-management
732 # no lldp tlv-select power-management
733
734 - name: Replace LLDP interface configurations
735 dellemc.enterprise_sonic.sonic_lldp_interfaces:
736 config:
737 - name: Eth1/5
738 mode: receive
739 tlv_set:
740 ipv6_management_address: '30::1'
741 med_tlv_select:
742 network_policy: false
743 vlan_name_tlv:
744 allowed_vlans:
745 - vlan: 20-30
746 max_tlv_count: 20
747 state: replaced
748
749 # After State:
750
751 # ------------
752 #
753 # sonic# show running-configuration interface
754 # !
755 # interface Eth1/5
756 # mtu 9100
757 # speed 10000
758 # unreliable-los auto
759 # no shutdown
760 # lldp receive
761 # lldp tlv-set management-address ipv6 30::1
762 # no lldp med-tlv-select network-policy
763 # lldp vlan-name-tlv allowed Vlan 20-30
764 # lldp vlan-name-tlv max-tlv-count 20
765 # !
766 # interface Eth1/6
767 # mtu 9100
768 # speed 10000
769 # unreliable-los auto
770 # no shutdown
771 # no lldp med-tlv-select power-management
772 # no lldp tlv-select power-management
773
774 # Using "overridden" state
775 #
776 # Before state:
777 # -------------
778 #
779 # sonic# show running-configuration interface
780 # interface Eth1/5
781 # mtu 9100
782 # speed 10000
783 # unreliable-los auto
784 # no shutdown
785 # lldp transmit
786 # lldp tlv-set management-address ipv6 30::2
787 # !
788 # interface Eth1/6
789 # mtu 9100
790 # speed 10000
791 # unreliable-los auto
792 # no shutdown
793 # lldp transmit
794 # lldp tlv-set management-address ipv4 40.1.1.1
795
796 - name: Override LLDP interface configurations
797 dellemc.enterprise_sonic.sonic_lldp_interfaces:
798 config:
799 - name: Eth1/5
800 mode: receive
801 tlv_set:
802 ipv4_management_address: '10.1.1.2'
803 vlan_name_tlv:
804 allowed_vlans:
805 - vlan: 10
806 - vlan: 15-20
807 max_tlv_count: 15
808 state: overridden
809
810 # After state:
811 # ------------
812 #
813 # sonic# show running-configuration interface
814 # !
815 # interface Eth1/5
816 # mtu 9100
817 # speed 10000
818 # unreliable-los auto
819 # no shutdown
820 # lldp receive
821 # lldp tlv-set management-address ipv4 10.1.1.2
822 # lldp vlan-name-tlv allowed Vlan 10,15-20
823 # lldp vlan-name-tlv max-tlv-count 15
824 # !
825 # interface Eth1/6
826 # mtu 9100
827 # speed 10000
828 # unreliable-los auto
829 # no shutdown
830
831
832
833 Return Values
834 -------------
835 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:
836
837 .. raw:: html
838
839 <table border=0 cellpadding=0 class="documentation-table">
840 <tr>
841 <th colspan="1">Key</th>
842 <th>Returned</th>
843 <th width="100%">Description</th>
844 </tr>
845 <tr>
846 <td colspan="1">
847 <div class="ansibleOptionAnchor" id="return-"></div>
848 <b>after</b>
849 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
850 <div style="font-size: small">
851 <span style="color: purple">list</span>
852 </div>
853 </td>
854 <td>when changed</td>
855 <td>
856 <div>The resulting configuration module invocation.</div>
857 <br/>
858 <div style="font-size: smaller"><b>Sample:</b></div>
859 <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>
860 </td>
861 </tr>
862 <tr>
863 <td colspan="1">
864 <div class="ansibleOptionAnchor" id="return-"></div>
865 <b>after_generated</b>
866 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
867 <div style="font-size: small">
868 <span style="color: purple">list</span>
869 </div>
870 </td>
871 <td>when <code>check_mode</code></td>
872 <td>
873 <div>The generated configuration from module invocation.</div>
874 <br/>
875 <div style="font-size: smaller"><b>Sample:</b></div>
876 <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
877 of the parameters above.</div>
878 </td>
879 </tr>
880 <tr>
881 <td colspan="1">
882 <div class="ansibleOptionAnchor" id="return-"></div>
883 <b>before</b>
884 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
885 <div style="font-size: small">
886 <span style="color: purple">list</span>
887 </div>
888 </td>
889 <td>always</td>
890 <td>
891 <div>The configuration prior to the module invocation.</div>
892 <br/>
893 <div style="font-size: smaller"><b>Sample:</b></div>
894 <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>
895 </td>
896 </tr>
897 <tr>
898 <td colspan="1">
899 <div class="ansibleOptionAnchor" id="return-"></div>
900 <b>commands</b>
901 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
902 <div style="font-size: small">
903 <span style="color: purple">list</span>
904 </div>
905 </td>
906 <td>always</td>
907 <td>
908 <div>The set of commands pushed to the remote device.</div>
909 <br/>
910 <div style="font-size: smaller"><b>Sample:</b></div>
911 <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>
912 </td>
913 </tr>
914 </table>
915 <br/><br/>
916
917
918 Status
919 ------
920
921
922 Authors
923 ~~~~~~~
924
925 - Divya Balasubramanian(@divya-balasubramania)