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

Fix test case: generic_config_updater/test_ipv6.py::test_ipv6_neighbor_admin_change #5647

Merged
merged 3 commits into from
May 19, 2022

Conversation

congh-nvidia
Copy link
Contributor

Description of PR

Summary:

  1. This case fails every time on our testbeds because it tries to replace the admin_status value of a bgp neighour, while the admin_status field doesn't exist in the default running configuration generated from minigraph(the admin_status is up without a explicit "admin_status": "up" config in db).
    To fix this, need to add this config before replace it.
  2. And add a topology mark for the test according to the description in [GCU] Add config ipv6 BGP neighbor test #5061 .

Type of change

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

Back port request

  • 201911
  • 202012

Approach

What is the motivation for this PR?

  1. Ensure that the configuration exists in the running config before it is replaced by the patch .
  2. Add a topology mark for the test to ensure it runs with the correct topologies. According to the description in [GCU] Add config ipv6 BGP neighbor test #5061, this test support t0 and t1 testbeds.

How did you do it?

  1. Modified the patch to add this config before replace it. If the config already exists before the adding, it won't take any effects because the config is duplicated.
  2. Add the topology mark.

How did you verify/test it?

Run this test case on testbeds with and without the admin_status field in running configs, all passed.

Any platform specific information?

No

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

Documentation

…r_admin_change

This case fails every time on our community setup because it tries to replace the value of config entry " BGP_NEIGHBOR/fc00::12/admin_status", while this entry doesn't exist in the default running configuratuion.(The admin_status is up by default, but it doesn't show in the configuration.)
To fix this,  need to add this config before replace it.
And add a topology mark for the test according to the description in sonic-net#5061 .
@congh-nvidia congh-nvidia requested a review from a team as a code owner May 13, 2022 05:42
@liat-grozovik
Copy link
Collaborator

/azp run Azure.sonic-mgmt

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@congh-nvidia
Copy link
Contributor Author

/azp run Azure.sonic-mgmt

@azure-pipelines
Copy link

Commenter does not have sufficient privileges for PR 5647 in repo Azure/sonic-mgmt

@congh-nvidia
Copy link
Contributor Author

/azpw run Azure.sonic-mgmt

@mssonicbld
Copy link
Collaborator

/AzurePipelines run Azure.sonic-mgmt

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

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.

4 participants