-
Notifications
You must be signed in to change notification settings - Fork 1k
Add support for sonic-vpp DUT. #17892
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
Changes from all commits
9a6a685
44dd119
c36e79f
6ddcc4f
1049917
e445919
2896141
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -442,3 +442,33 @@ | |
| inv_name: veos_vtb | ||
| auto_recover: 'False' | ||
| comment: Tests virtual force vs vm with 7 nodes | ||
|
|
||
| - conf-name: vms-kvm-vpp-t1-lag | ||
| group-name: vms6-2 | ||
| topo: t1-lag | ||
| ptf_image_name: docker-ptf | ||
| ptf: ptf-02 | ||
| ptf_ip: 10.250.0.106/24 | ||
| ptf_ipv6: fec0::ffff:afa:6/64 | ||
| server: server_1 | ||
| vm_base: VM0104 | ||
| dut: | ||
| - vlab-vpp-01 | ||
| inv_name: veos_vtb | ||
| auto_recover: 'False' | ||
| comment: Tests virtual vpp switch vm | ||
|
|
||
| - conf-name: vms-kvm-vpp-t1 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since there is already a
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Support is currently only for T1 and T1-lag, will add support for T0 in the future.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok, if the preparation is ready, we can add optional PR checks on these topologys. I will provide Elastictest support and guide that you can follow to setup new pr checks.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok, if the preparation is ready, we can add optional PR checks on these topologys. I will provide test infra support and the guide that you can follow to setup new pr checks. |
||
| group-name: vms6-2 | ||
| topo: t1 | ||
| ptf_image_name: docker-ptf | ||
| ptf: ptf-02 | ||
| ptf_ip: 10.250.0.106/24 | ||
| ptf_ipv6: fec0::ffff:afa:6/64 | ||
| server: server_1 | ||
| vm_base: VM0104 | ||
| dut: | ||
| - vlab-vpp-01 | ||
| inv_name: veos_vtb | ||
| auto_recover: 'False' | ||
| comment: Tests virtual vpp switch vm | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| # Running Sonic-mgmt with Sonic-VPP as DUT | ||
| To set up a testbed with a Sonic-VPP DUT follow the [VS testbed setup](README.testbed.VsSetup.md), and use the following commands during bringup. All of the following commands are to be run from the sonic-mgmt container. | ||
|
|
||
| ### Add topology: | ||
| ``` | ||
| cd /data/sonic-mgmt/ansible | ||
| ./testbed-cli.sh -t vtestbed.yaml -m veos_vtb -k ceos add-topo vms-kvm-vpp-t1-lag password.txt | ||
| ``` | ||
| ### Deploy minigraph: | ||
| ``` | ||
| cd /data/sonic-mgmt/ansible | ||
| ./testbed-cli.sh -t vtestbed.yaml -m veos_vtb deploy-mg vms-kvm-vpp-t1-lag veos_vtb password.txt | ||
| ``` | ||
| ### Example test run: | ||
| ``` | ||
| cd /data/sonic-mgmt/tests | ||
| ./run_tests.sh -n vms-kvm-vpp-t1-lag -d vlab-vpp-01 -O -u -l debug -e -s -e "--disable_loganalyzer --skip_sanity --mark-conditions-files common/plugins/conditional_mark/tests_mark_conditions.yaml" -e "--mark-conditions-files common/plugins/conditional_mark/tests_mark_conditions_sonic_vpp.yaml" -m individual -f vtestbed.yaml -i ../ansible/veos_vtb -p <log> -c <tests> | ||
| ``` | ||
| ### Remove topology: | ||
| ``` | ||
| cd /data/sonic-mgmt/ansible | ||
| ./testbed-cli.sh -t vtestbed.yaml -m veos_vtb -k ceos remove-topo vms-kvm-vpp-t1-lag password.txt | ||
| ``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The default vpp image file name should be like "sonic-vpp.img".
Still using "sonic-vs.img" here is confusing. It means that before deploy a VPP image KVM testbed, we need to get the VPP image with name like "sonic-vpp.img", then put it under "{{ sonic_vm_storage_location }}/images/" and rename it to "sonic-vs.img". This does not really make sense.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated - will use 'sonic-vpp.img' when asic_type is vpp.