[action] [PR:17303] Added a test for VNet IPinIP decapsulation #17328
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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:
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
Back port request
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)