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

[action] [PR:10612] Enhance restore_bgp_suppress_fib to check status first #10624

Merged
merged 1 commit into from
Nov 3, 2023

Conversation

mssonicbld
Copy link
Collaborator

Description of PR

Summary:
Fixes # (issue)
ADO: 25564723

Type of change

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

Back port request

  • 201911
  • 202012
  • 202205
  • 202305

Approach

What is the motivation for this PR?

In current test, it will set the bgp suppress to disabled no matter what's the value in the config_db. If it is enabled before the test, it should honor it, and don't change it after the test.
In this PR, will add a check logic to restore only it is needed.

How did you do it?

To read back the config db before test, then do the restore when it is needed.

How did you verify/test it?

  1. enable the fib suppress.
  2. run bgp suppress fib test.
  3. check the config, if it is same as before.

Any platform specific information?

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

Documentation

What is the motivation for this PR?
In current test, it will set the bgp suppress to disabled no matter what's the value in the config_db. If it is enabled before the test, it should honor it, and don't change it after the test.
In this PR, will add a check logic to restore only it is needed.

How did you do it?
To read back the config db before test, then do the restore when it is needed.

How did you verify/test it?
enable the fib suppress.
run bgp suppress fib test.
check the config, if it is same as before.
@mssonicbld
Copy link
Collaborator Author

Original PR: #10612

@mssonicbld mssonicbld merged commit d49930b into sonic-net:202305 Nov 3, 2023
11 checks passed
@mssonicbld mssonicbld deleted the cherry/202305/10612 branch February 4, 2024 09:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants