sonic-mgmt
sonic-mgmt copied to clipboard
Fix mismatch between show lldp table and the content of lldp entry table
Description of PR
Summary:
Fixes # (issue)
Fix failure of "Failed: LLDP_ENTRY_TABLE keys do not match
'show lldp table' output" in lldp.test_lldp_syncd.test_lldp_entry_table_after_reboot
Type of change
- [ ] Bug fix
- [ ] Testbed and Framework(new/improvement)
- [ ] Test case(new/improvement)
Back port request
- [ ] 202012
- [ ] 202205
- [ ] 202305
- [ ] 202311
- [x] 202405
Approach
What is the motivation for this PR?
In lldp.test_lldp_syncd.test_lldp_entry_table_after_reboot
, case always failed due to "Failed: LLDP_ENTRY_TABLE keys do not match
'show lldp table' output"
How did you do it?
It is caused by the systemcl restart lldp in previous case lldp.test_lldp_syncd.test_lldp_entry_table_after_lldp_restart
.
Eth0 didn't come up after lldp restart.
Check the content of lldp table after reboot not before reboot.
How did you verify/test it?
run lldp/test_lldp_syncd.py