[LLDP] Fix for LLDP advertisement, PortID and Description#5698
[LLDP] Fix for LLDP advertisement, PortID and Description#5698shlomibitton wants to merge 1 commit intosonic-net:masterfrom shlomibitton:shlomi_lldp_port_id_fix
Conversation
…ortDescription should reference interface alias Signed-off-by: Shlomi Bitton <shlomibi@nvidia.com>
|
@shlomibitton can you paste tcpdump o/p for before vs after change |
|
retest vsimage please |
|
@shlomibitton seems that vs test failed at test_lldp_neighbor test, maybe you need to update the test case itself. |
|
PR dependency on sonic-net/sonic-mgmt#2413 |
|
@abdosi 09:18:01.505804 LLDP, length 202 tcpdump after: 09:18:01.505804 LLDP, length 202 |
|
@abdosi This PR will fail the vsimage build unless sonic-net/sonic-mgmt#2413 is merged. |
…ixes (#2451) PR #2413 and sonic-net/sonic-buildimage#5698 depends on each other. If PR#2413 is not merged, PR#5698 would fail PR test and cannot be merged. If PR#2413 is merged firstly, all sonic-mgmt-pr testing would fail before a new image with PR#5698 is ready. The workaround is to temporarily disable LLDP for sonic-mgmt-pr testing. Merge PR#2413 to unblock PR#5698. After a new image with PR#5698 is ready, then enable LLDP KVM testing again. Signed-off-by: Xin Wang <xiwang5@microsoft.com>
|
retest vsimage please |
2 similar comments
|
retest vsimage please |
|
retest vsimage please |
There is a bug fix on PR sonic-net/sonic-buildimage#5698. The test fail after the change, this PR is to align the new change to the test case. The fix is to parse correct keys from mg_facts. Signed-off-by: Shlomi Bitton <shlomibi@nvidia.com>
|
retest vsimage please |
2 similar comments
|
retest vsimage please |
|
retest vsimage please |
|
@abdosi this test passed all the PR check, would you please help to review again? |
|
I assume this impact the information remote side wll display. Still wanted to confirm follwoing things: a) Impact on Sonic show lldp table and show lldp neighbors command Also impact on remote side command . As of now without this change I see below: Port Neighbor Device ID Neighbor Port ID TTL |
|
@abdosi here is the current output after the change: Capability codes: (R) Router, (B) Bridge, (O) Other show lldp neighbors Interface: eth0, via: LLDP, RID: 1, Time: 0 day, 00:07:01 Interface: Ethernet224, via: LLDP, RID: 5, Time: 0 day, 00:06:34 Interface: Ethernet232, via: LLDP, RID: 4, Time: 0 day, 00:06:35 Interface: Ethernet240, via: LLDP, RID: 2, Time: 0 day, 00:06:39 Interface: Ethernet248, via: LLDP, RID: 3, Time: 0 day, 00:06:36 Server ARISTA VM side Last table change time : 0:16:28 ago Port Neighbor Device ID Neighbor Port ID TTL |
|
@abdosi any further comment/asks? |
|
@shlomibitton @liat-grozovik this change does not seem to be backward compatible. The neighbor device 'show lldp neighbor' o/p will change w.r.t to Interface information. Before Et1 str2-xxx-acs-3 Ethernet1/1 120 After: Et1 r-leopard-01 Ethernet224 120 @lguohan can you please provide your comment. |
|
why not backward compatible? what is r-leopard-01 v.s. str2-xxx-acs-3? |
@lguohan : Basically Sonic interface on neighbors is currently alias "Ethernet1/1" and after this change it will be Sonic Name "Ethernet0" |
|
the neighbor should see the alias instead of sonic port name. |
|
retest vsimage please |
|
@shlomibitton by design SONiC uses interface Alias and not interface name. So this fix is not according to the design. |
…t LLDP fixes (sonic-net#2451)" This reverts commit e547a1d. PR# sonic-net#2413 has already been reverted. sonic-net/sonic-buildimage#5698 will not be merged as this is not valid design. Signed-off-by: Abhishek Dosi <abdosi@micrsoft.com>
…t LLDP fixes (#2451)" (#2595) This reverts commit e547a1d. PR# #2413 has already been reverted. sonic-net/sonic-buildimage#5698 will not be merged as this is not valid design. Signed-off-by: Abhishek Dosi <abdosi@micrsoft.com> Co-authored-by: Abhishek Dosi <abdosi@micrsoft.com>
Signed-off-by: Shlomi Bitton shlomibi@nvidia.com
- Why I did it
PortID should reference to the interface name.
Port Description should reference to the interface alias.
- How I did it
Edit 'lldpmgrd' to configure 'lldpd' using 'lldpcli' with the correct values.
- How to verify it
Run tcpdump and observe LLDP packets.
- Which release branch to backport (provide reason below if selected)
- Description for the changelog
- A picture of a cute animal (not mandatory but encouraged)