Skip to content

[vxlan/vnet] Enhance VNET test to verify source VxLAN port for received encapsulated packets#3397

Merged
prsunny merged 2 commits intosonic-net:masterfrom
ayurkiv-nvda:azure_vxlan_src_port
May 4, 2021
Merged

[vxlan/vnet] Enhance VNET test to verify source VxLAN port for received encapsulated packets#3397
prsunny merged 2 commits intosonic-net:masterfrom
ayurkiv-nvda:azure_vxlan_src_port

Conversation

@ayurkiv-nvda
Copy link
Contributor

Signed-off-by: Andriy Yurkiv ayurkiv@nvidia.com

Description of PR

Summary:
Fixes # (issue)

Type of change

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

Approach

What is the motivation for this PR?

Add ability to verify UDP src port in VXLAN packet. Introduced new feature that allows to change range of possible UDP src port in VXLAN packet, so need to extend existing test.

How did you do it?

Updated VNET test with the following logic:

  • retrieve SAI_VXLAN_SRCPORT_RANGE_ENABLE from sai.profile
  • define upper and lower bound for src port as test parameters
  • check UDP src port in VXLAN packet received from switch

How did you verify/test it?

py.test vxlan/test_vnet_vxlan.py --inventory "../ansible/inventory, ../ansible/veos" --host-pattern <testbed>-<topo> --module-path    ../ansible/library/ --testbed <testbed>-<topo>  --testbed_file ../ansible/testbed.csv    --allow_recover  --assert plain --log-cli-level info --show-capture=no -ra --showlocals --disable_loganalyzer --skip_sanity --upper_bound_udp_port 5555 --lower_bound_udp_port 1111

Any platform specific information?

according to these changes : sonic-net/sonic-buildimage#7394

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

t0

Documentation

N/A

…ed encapsulated packets

Signed-off-by: Andriy Yurkiv <ayurkiv@nvidia.com>
@ayurkiv-nvda ayurkiv-nvda requested a review from a team as a code owner April 22, 2021 13:53
@lguohan lguohan requested a review from prsunny April 23, 2021 07:02
@prsunny prsunny requested a review from sumukhatv April 23, 2021 16:23
@prsunny prsunny merged commit 3f27203 into sonic-net:master May 4, 2021
saravanansv pushed a commit to saravanansv/sonic-mgmt that referenced this pull request May 6, 2021
…ed encapsulated packets (sonic-net#3397)

* [vxlan/vnet] Enhance VNET test to verify source VxLAN port for received encapsulated packets

Signed-off-by: Andriy Yurkiv <ayurkiv@nvidia.com>
@ayurkiv-nvda ayurkiv-nvda deleted the azure_vxlan_src_port branch August 12, 2021 07:49
@ayurkiv-nvda ayurkiv-nvda restored the azure_vxlan_src_port branch August 12, 2021 07:49
bingwang-ms pushed a commit to bingwang-ms/sonic-mgmt that referenced this pull request Aug 18, 2021
We are migrating from Jenkins to azure pipeline. This PR added azure pipeline yaml files and dependent template files for nightly tests. Pipeline yaml files only added for 3 testbeds yet. The pipelines were originally added to branch azp-test of repo https://dev.azure.com/mssonic/internal/_git/sonic-mgmt-int. They have been tested on Azure DevOps.

Now we formally add these pipelines to the Networking-acs-sonic-mgmt repo. Currently the internal branch of Networking-acs-sonic-mgmt is synched to same internal branch of the sonic-mgmt-int repo. After this PR is merged, we need to update configuration of the created pipelines to formally use these files from the internal branch.

If the pipelines work fine with yaml files from internal branch, we will create more pipeline files based on current templates for rest of the nightly testbeds.

Related work items: sonic-net#3021, sonic-net#3073, sonic-net#3135, sonic-net#3153, sonic-net#3162, sonic-net#3176, sonic-net#3238, sonic-net#3241, sonic-net#3346, sonic-net#3352, sonic-net#3378, sonic-net#3389, sonic-net#3395, sonic-net#3397, sonic-net#3398, sonic-net#3407, sonic-net#3410, sonic-net#3411, sonic-net#3412, sonic-net#3413, sonic-net#3414, sonic-net#3415, sonic-net#3434, sonic-net#3437, sonic-net#3445, sonic-net#3446, sonic-net#3447, #9740131, #9821349
vmittal-msft pushed a commit to vmittal-msft/sonic-mgmt that referenced this pull request Sep 28, 2021
…ed encapsulated packets (sonic-net#3397)

* [vxlan/vnet] Enhance VNET test to verify source VxLAN port for received encapsulated packets

Signed-off-by: Andriy Yurkiv <ayurkiv@nvidia.com>
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.

2 participants