Skip to content

Commit 2e31a38

Browse files
taoyl-mslguohan
authored andcommitted
[LLDP] Send interface name instead of mac as PORT_ID for mgmt interface (#1204)
* Send interface name instead of mac thru lldp for mgmt interface * Fix j2 template test failure
1 parent 7e45756 commit 2e31a38

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

dockers/docker-lldp-sv2/lldpd.conf.j2

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
configure ports eth0 lldp portidsubtype local {{ MGMT_INTERFACE.keys()[0][0] }}
12
{% for local_port in DEVICE_NEIGHBOR %}
23
configure ports {{ local_port }} lldp portidsubtype local {{ PORT[local_port]['alias'] }} description {{ DEVICE_NEIGHBOR[local_port]['name'] }}:{{ DEVICE_NEIGHBOR[local_port]['port'] }}
34
{% endfor %}

src/sonic-config-engine/tests/sample_output/lldpd.conf

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
configure ports eth0 lldp portidsubtype local eth0
12
configure ports Ethernet116 lldp portidsubtype local fortyGigE0/116 description ARISTA02T1:Ethernet1/1
23
configure ports Ethernet124 lldp portidsubtype local fortyGigE0/124 description ARISTA04T1:Ethernet1/1
34
configure ports Ethernet112 lldp portidsubtype local fortyGigE0/112 description ARISTA01T1:Ethernet1/1

0 commit comments

Comments
 (0)