Skip to content

[lldp] Add test_lldp_after_config_reload to verify LLDP recovery#22449

Closed
rustiqly wants to merge 1 commit intosonic-net:masterfrom
rustiqly:test/lldp-config-reload
Closed

[lldp] Add test_lldp_after_config_reload to verify LLDP recovery#22449
rustiqly wants to merge 1 commit intosonic-net:masterfrom
rustiqly:test/lldp-config-reload

Conversation

@rustiqly
Copy link
Copy Markdown
Contributor

Fixes #22376.

Adds a new test case that verifies LLDP neighbors are correctly restored
after config reload, catching regressions where lldpd fails to detect all
interfaces during boot (e.g. the race condition fixed in
sonic-net/sonic-buildimage#25436).

The test validates:

  1. All LLDP neighbor entries present before reload are restored after
  2. Chassis ID type is 'mac' (not hostname fallback from missing eth0)
  3. All interfaces appear in 'lldpcli show interfaces'
  4. Checks syslog for 'cannot find port' / lldpmgrd errors (warning only)

Signed-off-by: Rustiqly [email protected]
Signed-off-by: Sonicly1G [email protected]

Re-submitted from rustiqly (closes #22428). Fixes #22376.

Fixes sonic-net#22376.

Adds a new test case that verifies LLDP neighbors are correctly restored
after config reload, catching regressions where lldpd fails to detect all
interfaces during boot (e.g. the race condition fixed in
sonic-net/sonic-buildimage#25436).

The test validates:
1. All LLDP neighbor entries present before reload are restored after
2. Chassis ID type is 'mac' (not hostname fallback from missing eth0)
3. All interfaces appear in 'lldpcli show interfaces'
4. Checks syslog for 'cannot find port' / lldpmgrd errors (warning only)

Signed-off-by: Rustiqly <[email protected]>
Signed-off-by: Sonicly1G <[email protected]>
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@linux-foundation-easycla
Copy link
Copy Markdown

CLA Not Signed

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@rustiqly
Copy link
Copy Markdown
Contributor Author

Closing in favor of #22562 which covers the same test.

@rustiqly rustiqly closed this Feb 24, 2026
@rustiqly rustiqly reopened this Feb 24, 2026
@rustiqly
Copy link
Copy Markdown
Contributor Author

Reopened — this PR was submitted first and references the original issue #22376. #22562 can be closed as duplicate instead.

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines will not run the associated pipelines, because the pull request was updated after the run command was issued. Review the pull request again and issue a new run command.

@rustiqly
Copy link
Copy Markdown
Contributor Author

Closing — #22420 by @ZhaohuiS already addresses the same issue (#22376) and was submitted first.

@rustiqly rustiqly closed this Feb 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[test gap] check lldp neighbors after config reload

3 participants