Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[test gap] Add a new test case to verify lldp entry after restart syncd and orchagent #15911

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

ZhaohuiS
Copy link
Contributor

@ZhaohuiS ZhaohuiS commented Dec 5, 2024

…cd and orchagent

Description of PR

Summary:
Fixes # (issue)
Address #15889

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • Test case(new/improvement)

Back port request

  • 202012
  • 202205
  • 202305
  • 202311
  • 202405

Approach

What is the motivation for this PR?

Add a new test case to address #15889

How did you do it?

Restart syncd and orchagent, then check lldp entries in APPL_DB

How did you verify/test it?

run test_lldp_syncd.py

Any platform specific information?

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

Documentation

@ZhaohuiS ZhaohuiS changed the title [test gap] Add a new test case to verify lldp entry after restart syn… [test gap] Add a new test case to verify lldp entry after restart syncd and orchagent Dec 6, 2024
@ZhaohuiS ZhaohuiS requested a review from Copilot December 6, 2024 13:41

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 1 out of 1 changed files in this pull request and generated no suggestions.

@ZhaohuiS
Copy link
Contributor Author

ZhaohuiS commented Dec 7, 2024

Hold on the merge until sonic-net/sonic-buildimage#21065 is merged, which is the image fix.

@ZhaohuiS ZhaohuiS requested a review from StormLiangMS December 9, 2024 01:55
@ZhaohuiS
Copy link
Contributor Author

ZhaohuiS commented Dec 9, 2024

@StormLiangMS Since image fix was merged in sonic-net/sonic-buildimage#21065, could you please review and approve this test gap PR?

lldp_entry_keys, show_lldp_table_int_list, lldpctl_interfaces
)
for interface in get_lldp_entry_keys(db_instance):
entry_content = get_lldp_entry_content(db_instance, interface)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems repeating code in this file, could we move them into a function? Too much code and logic inside this test to make it hard to read through, and distracting from the main function.

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.

2 participants