Skip to content

[VM]Add BGPSentinel testcase and testplan#8814

Merged
yxieca merged 7 commits intosonic-net:masterfrom
guangyao6:master
Aug 15, 2023
Merged

[VM]Add BGPSentinel testcase and testplan#8814
yxieca merged 7 commits intosonic-net:masterfrom
guangyao6:master

Conversation

@guangyao6
Copy link
Copy Markdown
Contributor

@guangyao6 guangyao6 commented Jul 5, 2023

Description of PR

Summary: Add BGPSentinel testcase and testplan
Fixes # (issue)

Type of change

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

Back port request

  • 201911
  • 202012
  • 202205

Approach

What is the motivation for this PR?

In SONiC, a new peer-group (BGPSentinel) is added in BGP configuration. This testcase is to verify that IBGP session would be established between DUT and BGPSentinel host (simulated by exabgp in ptf). And to verify exabgp in BGPSentinel host would advertise and withdraw route to DUT.

How did you do it?

  1. Using t1-lag topology, and configure route in ptf to ensure that ptf and dut would ping each other.
  2. Add BGPSentinel configuration in DUT and start exabgp in ptf to setup IBGP connection.
  3. Advertise route from ptf with higher local-preference and no-export community to DUT, check route in DUT would be suppressed.
  4. Withdraw route from ptf, check route in DUT would be advertised to EBGP peers.

How did you verify/test it?

Setup t1-lag topology. Using command "./run_tests.sh -m individual -a False -n vms-kvm-t1-lag -u -c bgp/test_bgp_sentinel.py -f vtestbed.yaml -i veos_vtb -e "--neighbor_type=eos"" to run testcase. Testcase would pass.

Any platform specific information?

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

t1-lag

Documentation

Copy link
Copy Markdown
Collaborator

@yxieca yxieca left a comment

Choose a reason for hiding this comment

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

Please schedule a time to present test plan in the test subgroup meeting.

@yxieca yxieca self-requested a review July 20, 2023 01:12
@bpar9 bpar9 self-requested a review July 26, 2023 21:13
@guangyao6 guangyao6 requested a review from bpar9 July 27, 2023 09:14
wangxin
wangxin previously approved these changes Jul 31, 2023
bpar9
bpar9 previously approved these changes Aug 1, 2023
@guangyao6 guangyao6 dismissed stale reviews from bpar9 and wangxin via 8448554 August 15, 2023 02:31
@yxieca yxieca merged commit e40fc96 into sonic-net:master Aug 15, 2023
AharonMalkin pushed a commit to AharonMalkin/sonic-mgmt that referenced this pull request Jan 25, 2024
What is the motivation for this PR?
In SONiC, a new peer-group (BGPSentinel) is added in BGP configuration. This testcase is to verify that IBGP session would be established between DUT and BGPSentinel host (simulated by exabgp in ptf). And to verify exabgp in BGPSentinel host would advertise and withdraw route to DUT.

How did you do it?
Using t1-lag topology, and configure route in ptf to ensure that ptf and dut would ping each other.
Add BGPSentinel configuration in DUT and start exabgp in ptf to setup IBGP connection.
Advertise route from ptf with higher local-preference and no-export community to DUT, check route in DUT would be suppressed.
Withdraw route from ptf, check route in DUT would be advertised to EBGP peers.
How did you verify/test it?
Setup t1-lag topology. Using command "./run_tests.sh -m individual -a False -n vms-kvm-t1-lag -u -c bgp/test_bgp_sentinel.py -f vtestbed.yaml -i veos_vtb -e "--neighbor_type=eos"" to run testcase. Testcase would pass.
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.

5 participants