sonic-mgmt icon indicating copy to clipboard operation
sonic-mgmt copied to clipboard

Fix mismatch between show lldp table and the content of lldp entry table

Open ZhaohuiS opened this issue 3 months ago • 0 comments

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

Any platform specific information?

Supported testbed topology if it's a new test case?

Documentation

ZhaohuiS avatar Nov 04 '24 02:11 ZhaohuiS