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

Instruction to set up virtual topology, test_bgp_scalability.py runs on vm and bug fixing #9214

Merged
merged 1 commit into from Aug 3, 2023

Conversation

tigrmeli
Copy link
Contributor

@tigrmeli tigrmeli commented Aug 1, 2023

Description of PR

  • The 'conftest.py' file has been modified to include the Snappi OS.

  • Adjustments have been made in 'bgp_test_gap_helper.py' to make the indexing compatible with a chassis that has two ports.

  • The 'test_bgp_scalability.py' is now able to run on a VM by disabling the 'EnableDataPlaneEventsRateMonitor' if the setup is a VM type.

  • The line rate has been adjusted from 100 to 10, and from 50 to 5. This is due to the fact that the hardware setup results of the test do not depend on the line rate, but the VM does not support higher rates.

  • Traffic must now be stopped before obtaining the loss statistics.

  • Errors regarding the attributes 'lp1' and 'lp2' not having the 'protocol' attribute were fixed.

  • Documentation has been added on how to set up a VM topology.

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?

The primary motivation for these modifications was to set up a virtual machine (VM) topology and ensure that the 'test_bgp_scalability.py' runs smoothly on both VM and hardware setups.

How did you do it?

These improvements and fixes were achieved by adjusting the indexing in the 'bgp_test_gap_helper.py' file, adding logic to disable the 'EnableDataPlaneEventsRateMonitor' for VM setups, and fixing attribute errors.

How did you verify/test it?

The 'test_bgp_scalability.py' was run on both hardware and VM setups. Both setups passed the test as expected.

Any platform specific information?

IxNetwork Application Version: 9.30.2212.22 on a virtual machine, used for both VM and HW setups.
IxChassis Application Version: 9.21 on a virtual machine and for the hardware setup.
Application Version: 9.30 on two Load Module virtual machines attached to a virtual IxChassis.
DUT SONiC-OS-202205.302215-e8e8c019c for VM setup.
DUT SONiC-OS-202205.262571-f2a687b33 for the hardware setup.

Documentation

Instructions on setting up a VM topology for testing have been added.
docs/testbed/README.testbed.Keysight.md
docs/testbed/README.testbed.Setup.md

* VM testbed set up documentation

* bgp_test_gap_helper
@wangxin wangxin merged commit 05529ef into sonic-net:master Aug 3, 2023
12 checks passed
AharonMalkin pushed a commit to AharonMalkin/sonic-mgmt that referenced this pull request Jan 25, 2024
What is the motivation for this PR?
The primary motivation for these modifications was to set up a virtual machine (VM) topology and ensure that the 'test_bgp_scalability.py' runs smoothly on both VM and hardware setups.

How did you do it?
These improvements and fixes were achieved by adjusting the indexing in the 'bgp_test_gap_helper.py' file, adding logic to disable the 'EnableDataPlaneEventsRateMonitor' for VM setups, and fixing attribute errors.

How did you verify/test it?
The 'test_bgp_scalability.py' was run on both hardware and VM setups. Both setups passed the test as expected.

Any platform specific information?
IxNetwork Application Version: 9.30.2212.22 on a virtual machine, used for both VM and HW setups.
IxChassis Application Version: 9.21 on a virtual machine and for the hardware setup.
Application Version: 9.30 on two Load Module virtual machines attached to a virtual IxChassis.
DUT SONiC-OS-202205.302215-e8e8c019c for VM setup.
DUT SONiC-OS-202205.262571-f2a687b33 for the hardware setup.

Documentation
Instructions on setting up a VM topology for testing have been added.
docs/testbed/README.testbed.Keysight.md
docs/testbed/README.testbed.Setup.md
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.

None yet

3 participants