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

GCU test for bgp speaker #5234

Merged
merged 4 commits into from
Mar 14, 2022
Merged

GCU test for bgp speaker #5234

merged 4 commits into from
Mar 14, 2022

Conversation

wen587
Copy link
Contributor

@wen587 wen587 commented Feb 25, 2022

Description of PR

[Done]Wait for yang model sonic-net/sonic-buildimage#10082
and create-only fix to merge.
Summary: Testcase of bgp speaker config for generic updater apply-patch
Fixes # (issue)

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?

End to End test support for Generic Updater apply-patch
This PR is to verify the usage of 'config apply-patch' works on bgp speaker config

How did you do it?

Add bgp speaker config to dut and check if config change as expected

How did you verify/test it?

Run test of sonic-mgmt/tests/generic_config_updater/test_bgp_speaker.py on KVM

Any platform specific information?

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

Documentation

ganglyu
ganglyu previously approved these changes Feb 28, 2022
@wen587 wen587 marked this pull request as ready for review February 28, 2022 05:52
@wen587 wen587 requested a review from a team as a code owner February 28, 2022 05:52
pytest.fail("Invalid ip version!")

bgp_speaker_config_cleanup(duthost)
bgp_speaker_tc1_add_config(duthost, lo_intf_ip, vlan_intf_ip_range, bgp_speaker)
Copy link
Contributor

@qiluo-msft qiluo-msft Feb 28, 2022

Choose a reason for hiding this comment

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

bgp_speaker_tc1_add_config

So you test with ipv4 only, and then ipv6 only. Should you test add ipv6 and ipv6 config in the same JsonPatch? #Closed

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I guess they are the same. Do you think testing them together is better?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

combined.

bgp_speaker_config_cleanup(duthost)
bgp_speaker_tc1_add_config(duthost, lo_intf_ip, vlan_intf_ip_range, bgp_speaker)
bgp_speaker_tc1_add_dummy_ip_range(duthost, bgp_speaker, dummy_ip_range)
bgp_speaker_tc1_rm_dummy_ip_range(duthost, bgp_speaker, dummy_ip_range)
Copy link

@ghooo ghooo Feb 28, 2022

Choose a reason for hiding this comment

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

Can we add a test for changing the src_address .. for example switching from loopback0 to loobpack1?

Also, we would like to test adding a new VLAN and also a new Loopback is that covered under VLAN/Loopback testing? (i think so, just double checking). #Closed

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added src_address change to a dummy ip.

Also, we would like to test adding a new VLAN and also a new Loopback is that covered under VLAN/Loopback testing? (i think so, just double checking).

Yes. That is covered.

@wen587 wen587 merged commit 0c91e15 into sonic-net:master Mar 14, 2022
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