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

[action] [PR:17303] Added a test for VNet IPinIP decapsulation #17328

Open
wants to merge 1 commit into
base: 202411
Choose a base branch
from

Conversation

mssonicbld
Copy link
Collaborator

Description of PR

This PR adds a test for VNet decapsulation. IP-in-IP packets that are sent to the switch are expected

Summary:
Fixes #13122
Microsoft ADO ID: 31628440
To test VNet decapsulation, we first configure a VXLAN tunnel, a VNet, and a VNet route with a single endpoint on the switch. Then we send an IP-in-IP packet to the switch with the following properties:

  1. The outer IP packet is from an arbitrary address (192.168.0.1) to the VXLAN tunnel's src IP.
  2. The inner IP packet is from an arbitrary address (192.168.0.1) to the VNet route's destination.
    We verify that the switch sends out a VXLAN packet from the VXLAN tunnel's src IP to the VNet route's endpoint containing the inner IP packet.

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • New Test case
  • Skipped for non-supported platforms
  • Test case improvement

Back port request

  • 202012
  • 202205
  • 202305
  • 202311
  • 202405
  • 202411

Approach

What is the motivation for this PR?

Testing VNet decapsulation on T1 switches.

How did you do it?

We configure a VXLAN tunnel, a VNet, and a VNet route with a single endpoint on the switch. Then we send an IP-in-IP packet to the switch (the dest address of the outer IP header is set to VXLAN src IP and the dest address of the inner IP header is set to the VNet route's destinaiton). The switch is expected to decapsulate the packet, then encapsulate the inner IP packet in a VXLAN packet and send out the VXLAN packet.

How did you verify/test it?

Tested on a Mellanox MSN4700 T1 switch.

Any platform specific information?

The test only runs on Cisco-8000 and Mellanox ASICs.

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

T1 (and its variations)

@mssonicbld
Copy link
Collaborator Author

/azp run

@mssonicbld
Copy link
Collaborator Author

Original PR: #17303

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

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.

2 participants