-
Notifications
You must be signed in to change notification settings - Fork 683
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
[TestPlan] BGP policy test #12874
base: master
Are you sure you want to change the base?
[TestPlan] BGP policy test #12874
Conversation
Catch up on current master
Merge current master
The pre-commit check detected issues in the files touched by this pull request. Detailed pre-commit check results: To run the pre-commit checks locally, you can follow below steps:
|
The pre-commit check detected issues in the files touched by this pull request. Detailed pre-commit check results: To run the pre-commit checks locally, you can follow below steps:
|
Is it just replacing t0 with t2 for the add-topo and deploy-mg? @Azarack |
You need to use the above topo for the testbed-cli.sh commands as well as make these changes to a couple files to add that topology into the system.
|
Were you able to see your internal neighbors (show ip bgp sum -d all) @Azarack /testbed-cli.sh -d /data/sonic-vm -t vtestbed.yaml -m veos_vtb -k ceos add-topo vms-kvm-t2 password.txt These were the commands I ran for my virtual chassis |
@colintle I do get neighbors:
In your command use the topo vms-kvm-t2-min. We found the full T2 virtual to be too much for our hardware. I did forget to mention the fix for the t2-bridge error you may have seen. Run these commands on the actual host, not in the container:
|
So what would be the difference between vms-kvm-t2 and vms-kvm-t2-min? Is it that in the topo_t2_2lc_min_ports-masic.yml, your configuration properities are empty? I am using default data/sonic-mgmt/ansible/vars/topo_t2-vs.yml, data/sonic-mgmt/ansible/veos_vtb, and data/sonic-mgmt/ansible/vtestbed.yaml. @Azarack |
It looks like you have only external neighbors since all of them have a AS id (65200) that is different from your local AS id (65100). Virtual chassis also needs internal neighbors with the same AS id (65100) @Azarack |
The -min uses fewer neighbors so its less load on the host. The configuration is in the vars/topo_t2_2lc_min_ports-masic.yml file, you need to add the couple lines I posted above in my git diff. |
There are no T2 neighbors in this setup if that is what you are referring to. There are only T1 and T3 which have different ASN. |
A virtual chassis needs have both iBGP and eBGP sessions open right? So neighbors with the same local ASN would be that iBGP session is active. @Azarack |
There are multiple LC's in the virtual setup, but they don't have iBGP running between them like a physical chassis would. This is the way the configuration comes from the repo. |
Could you point to where the configuration does that in the repo? @Azarack |
No, I don't know the specific place that is setup. |
Is it the topo yml file (e.g. data/sonic-mgmt/ansible/vars/topo_t2-vs.yml )? |
You should be using this topo file topo_t2_2lc_min_ports-masic.yml for the min topo. |
Which neighbors did you use for the testbed? @Azarack |
./testbed-cli.sh -d /data/sonic-vm -t vtestbed.yaml -m veos_vtb -k vsonic add-topo vms-kvm-t2-min password.txt ./testbed-cli.sh -d /data/sonic-vm -t vtestbed.yaml -m veos_vtb deploy-mg vms-kvm-t2-min veos_vtb password.txt For some reason, my linecard is not being received prefixes from its neighbors. Those commands were the ones I use. |
@colintle I don't think you need the -d switch for the setup commands. Do you have the same image in ../sonic-vm/images and ../veos-vm/images? |
@colintle I have not seen that error before and am unsure what it is telling you. |
There is only one docker container that runs and each line card has a virsh vm. The virtual testbed is single asic devices. |
Description of PR
Summary:
Fixes # (issue)
New test case to test BGP policy features.
Type of change
Back port request
Approach
What is the motivation for this PR?
To test BGP policy.
How did you do it?
How did you verify/test it?
Running on virtual T2 testbed.
Any platform specific information?
Supported testbed topology if it's a new test case?
T2
Documentation
Yes, testplan readme is updated.