Skip to content

[master][sonic-mgmt]Fix decap/test_subnet_decap.py::test_vlan_subnet_…#19061

Merged
StormLiangMS merged 1 commit intosonic-net:masterfrom
pragnya-arista:master-Fix-Decap-test_subnet_decap
Jul 2, 2025
Merged

[master][sonic-mgmt]Fix decap/test_subnet_decap.py::test_vlan_subnet_…#19061
StormLiangMS merged 1 commit intosonic-net:masterfrom
pragnya-arista:master-Fix-Decap-test_subnet_decap

Conversation

@pragnya-arista
Copy link
Contributor

…decap

Description of PR

Summary:
Fixes # (591)

Type of change

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

Back port request

  • 202205
  • 202305
  • 202311
  • 202405
  • 202411
  • 202505

Approach

What is the motivation for this PR?

  • Fixes failures for decap/test_subnet_decap::test_vlan_subnet_decap[negative-IPv4/6] for active-standby dualtor topos
  • The test selects the DUT randomly, irrespective of it being the standby ToR
  • In the positive case, this will not be a problem - the encapsulated packet is sent with an outer SIP that matches the
    config on the DUT, the packet gets decapped and gets routed towards the upstream T1s
  • In the negative case, the outer SIP does not match the config on the DUT and hence will not be decapsulated, but
    forwarded to the outer DIP, which is set to IP 192.168.0.200/fc02:1000::200
  • This will require forwarding over one of the downstream ports where the ARP responder is also set up - if the
    DUT is a standby; this forwarding will not happen

How did you do it?

This fix calls the fixture to ensure the selected DUT will be the active ToR, and the non-decapsulated packet can be
forwarded along the downstream port

How did you verify/test it?

Ran decap/test_subnet_decap.py on DCS-7050CX3

Any platform specific information?

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

Documentation

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Collaborator

@lolyu lolyu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Collaborator

@StormLiangMS StormLiangMS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@StormLiangMS StormLiangMS merged commit 292415e into sonic-net:master Jul 2, 2025
15 checks passed
vvolam pushed a commit to vvolam/sonic-mgmt that referenced this pull request Jul 3, 2025
…decap (sonic-net#19061)

What is the motivation for this PR?
Fixes failures for decap/test_subnet_decap::test_vlan_subnet_decap[negative-IPv4/6] for active-standby dualtor topos
The test selects the DUT randomly, irrespective of it being the standby ToR
In the positive case, this will not be a problem - the encapsulated packet is sent with an outer SIP that matches the
config on the DUT, the packet gets decapped and gets routed towards the upstream T1s
In the negative case, the outer SIP does not match the config on the DUT and hence will not be decapsulated, but
forwarded to the outer DIP, which is set to IP 192.168.0.200/fc02:1000::200
This will require forwarding over one of the downstream ports where the ARP responder is also set up - if the
DUT is a standby; this forwarding will not happen
How did you do it?
This fix calls the fixture to ensure the selected DUT will be the active ToR, and the non-decapsulated packet can be
forwarded along the downstream port

How did you verify/test it?
Ran decap/test_subnet_decap.py on DCS-7050CX3
@mssonicbld
Copy link
Collaborator

@pragnya-arista PR conflicts with 202505 branch

@pragnya-arista
Copy link
Contributor Author

@pragnya-arista PR conflicts with 202505 branch

I'll open a separate PR for 202505

@pragnya-arista
Copy link
Contributor Author

@pragnya-arista PR conflicts with 202505 branch

I'll open a separate PR for 202505

Opened PR 19061 for 202505

nissampa pushed a commit to nissampa/sonic-mgmt_dpu_test that referenced this pull request Aug 7, 2025
…decap (sonic-net#19061)

What is the motivation for this PR?
Fixes failures for decap/test_subnet_decap::test_vlan_subnet_decap[negative-IPv4/6] for active-standby dualtor topos
The test selects the DUT randomly, irrespective of it being the standby ToR
In the positive case, this will not be a problem - the encapsulated packet is sent with an outer SIP that matches the
config on the DUT, the packet gets decapped and gets routed towards the upstream T1s
In the negative case, the outer SIP does not match the config on the DUT and hence will not be decapsulated, but
forwarded to the outer DIP, which is set to IP 192.168.0.200/fc02:1000::200
This will require forwarding over one of the downstream ports where the ARP responder is also set up - if the
DUT is a standby; this forwarding will not happen
How did you do it?
This fix calls the fixture to ensure the selected DUT will be the active ToR, and the non-decapsulated packet can be
forwarded along the downstream port

How did you verify/test it?
Ran decap/test_subnet_decap.py on DCS-7050CX3
ashutosh-agrawal pushed a commit to ashutosh-agrawal/sonic-mgmt that referenced this pull request Aug 14, 2025
…decap (sonic-net#19061)

What is the motivation for this PR?
Fixes failures for decap/test_subnet_decap::test_vlan_subnet_decap[negative-IPv4/6] for active-standby dualtor topos
The test selects the DUT randomly, irrespective of it being the standby ToR
In the positive case, this will not be a problem - the encapsulated packet is sent with an outer SIP that matches the
config on the DUT, the packet gets decapped and gets routed towards the upstream T1s
In the negative case, the outer SIP does not match the config on the DUT and hence will not be decapsulated, but
forwarded to the outer DIP, which is set to IP 192.168.0.200/fc02:1000::200
This will require forwarding over one of the downstream ports where the ARP responder is also set up - if the
DUT is a standby; this forwarding will not happen
How did you do it?
This fix calls the fixture to ensure the selected DUT will be the active ToR, and the non-decapsulated packet can be
forwarded along the downstream port

How did you verify/test it?
Ran decap/test_subnet_decap.py on DCS-7050CX3
vidyac86 pushed a commit to vidyac86/sonic-mgmt that referenced this pull request Oct 23, 2025
…decap (sonic-net#19061)

What is the motivation for this PR?
Fixes failures for decap/test_subnet_decap::test_vlan_subnet_decap[negative-IPv4/6] for active-standby dualtor topos
The test selects the DUT randomly, irrespective of it being the standby ToR
In the positive case, this will not be a problem - the encapsulated packet is sent with an outer SIP that matches the
config on the DUT, the packet gets decapped and gets routed towards the upstream T1s
In the negative case, the outer SIP does not match the config on the DUT and hence will not be decapsulated, but
forwarded to the outer DIP, which is set to IP 192.168.0.200/fc02:1000::200
This will require forwarding over one of the downstream ports where the ARP responder is also set up - if the
DUT is a standby; this forwarding will not happen
How did you do it?
This fix calls the fixture to ensure the selected DUT will be the active ToR, and the non-decapsulated packet can be
forwarded along the downstream port

How did you verify/test it?
Ran decap/test_subnet_decap.py on DCS-7050CX3
opcoder0 pushed a commit to opcoder0/sonic-mgmt that referenced this pull request Dec 8, 2025
…decap (sonic-net#19061)

What is the motivation for this PR?
Fixes failures for decap/test_subnet_decap::test_vlan_subnet_decap[negative-IPv4/6] for active-standby dualtor topos
The test selects the DUT randomly, irrespective of it being the standby ToR
In the positive case, this will not be a problem - the encapsulated packet is sent with an outer SIP that matches the
config on the DUT, the packet gets decapped and gets routed towards the upstream T1s
In the negative case, the outer SIP does not match the config on the DUT and hence will not be decapsulated, but
forwarded to the outer DIP, which is set to IP 192.168.0.200/fc02:1000::200
This will require forwarding over one of the downstream ports where the ARP responder is also set up - if the
DUT is a standby; this forwarding will not happen
How did you do it?
This fix calls the fixture to ensure the selected DUT will be the active ToR, and the non-decapsulated packet can be
forwarded along the downstream port

How did you verify/test it?
Ran decap/test_subnet_decap.py on DCS-7050CX3

Signed-off-by: opcoder0 <110003254+opcoder0@users.noreply.github.com>
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Dec 16, 2025
…decap (sonic-net#19061)

What is the motivation for this PR?
Fixes failures for decap/test_subnet_decap::test_vlan_subnet_decap[negative-IPv4/6] for active-standby dualtor topos
The test selects the DUT randomly, irrespective of it being the standby ToR
In the positive case, this will not be a problem - the encapsulated packet is sent with an outer SIP that matches the
config on the DUT, the packet gets decapped and gets routed towards the upstream T1s
In the negative case, the outer SIP does not match the config on the DUT and hence will not be decapsulated, but
forwarded to the outer DIP, which is set to IP 192.168.0.200/fc02:1000::200
This will require forwarding over one of the downstream ports where the ARP responder is also set up - if the
DUT is a standby; this forwarding will not happen
How did you do it?
This fix calls the fixture to ensure the selected DUT will be the active ToR, and the non-decapsulated packet can be
forwarded along the downstream port

How did you verify/test it?
Ran decap/test_subnet_decap.py on DCS-7050CX3

Signed-off-by: Guy Shemesh <gshemesh@nvidia.com>
AharonMalkin pushed a commit to AharonMalkin/sonic-mgmt that referenced this pull request Dec 16, 2025
…decap (sonic-net#19061)

What is the motivation for this PR?
Fixes failures for decap/test_subnet_decap::test_vlan_subnet_decap[negative-IPv4/6] for active-standby dualtor topos
The test selects the DUT randomly, irrespective of it being the standby ToR
In the positive case, this will not be a problem - the encapsulated packet is sent with an outer SIP that matches the
config on the DUT, the packet gets decapped and gets routed towards the upstream T1s
In the negative case, the outer SIP does not match the config on the DUT and hence will not be decapsulated, but
forwarded to the outer DIP, which is set to IP 192.168.0.200/fc02:1000::200
This will require forwarding over one of the downstream ports where the ARP responder is also set up - if the
DUT is a standby; this forwarding will not happen
How did you do it?
This fix calls the fixture to ensure the selected DUT will be the active ToR, and the non-decapsulated packet can be
forwarded along the downstream port

How did you verify/test it?
Ran decap/test_subnet_decap.py on DCS-7050CX3

Signed-off-by: Aharon Malkin <amalkin@nvidia.com>
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Dec 21, 2025
…decap (sonic-net#19061)

What is the motivation for this PR?
Fixes failures for decap/test_subnet_decap::test_vlan_subnet_decap[negative-IPv4/6] for active-standby dualtor topos
The test selects the DUT randomly, irrespective of it being the standby ToR
In the positive case, this will not be a problem - the encapsulated packet is sent with an outer SIP that matches the
config on the DUT, the packet gets decapped and gets routed towards the upstream T1s
In the negative case, the outer SIP does not match the config on the DUT and hence will not be decapsulated, but
forwarded to the outer DIP, which is set to IP 192.168.0.200/fc02:1000::200
This will require forwarding over one of the downstream ports where the ARP responder is also set up - if the
DUT is a standby; this forwarding will not happen
How did you do it?
This fix calls the fixture to ensure the selected DUT will be the active ToR, and the non-decapsulated packet can be
forwarded along the downstream port

How did you verify/test it?
Ran decap/test_subnet_decap.py on DCS-7050CX3

Signed-off-by: Guy Shemesh <gshemesh@nvidia.com>
venu-nexthop pushed a commit to venu-nexthop/sonic-mgmt that referenced this pull request Jan 13, 2026
…decap (sonic-net#19061)

What is the motivation for this PR?
Fixes failures for decap/test_subnet_decap::test_vlan_subnet_decap[negative-IPv4/6] for active-standby dualtor topos
The test selects the DUT randomly, irrespective of it being the standby ToR
In the positive case, this will not be a problem - the encapsulated packet is sent with an outer SIP that matches the
config on the DUT, the packet gets decapped and gets routed towards the upstream T1s
In the negative case, the outer SIP does not match the config on the DUT and hence will not be decapsulated, but
forwarded to the outer DIP, which is set to IP 192.168.0.200/fc02:1000::200
This will require forwarding over one of the downstream ports where the ARP responder is also set up - if the
DUT is a standby; this forwarding will not happen
How did you do it?
This fix calls the fixture to ensure the selected DUT will be the active ToR, and the non-decapsulated packet can be
forwarded along the downstream port

How did you verify/test it?
Ran decap/test_subnet_decap.py on DCS-7050CX3
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Jan 26, 2026
…decap (sonic-net#19061)

What is the motivation for this PR?
Fixes failures for decap/test_subnet_decap::test_vlan_subnet_decap[negative-IPv4/6] for active-standby dualtor topos
The test selects the DUT randomly, irrespective of it being the standby ToR
In the positive case, this will not be a problem - the encapsulated packet is sent with an outer SIP that matches the
config on the DUT, the packet gets decapped and gets routed towards the upstream T1s
In the negative case, the outer SIP does not match the config on the DUT and hence will not be decapsulated, but
forwarded to the outer DIP, which is set to IP 192.168.0.200/fc02:1000::200
This will require forwarding over one of the downstream ports where the ARP responder is also set up - if the
DUT is a standby; this forwarding will not happen
How did you do it?
This fix calls the fixture to ensure the selected DUT will be the active ToR, and the non-decapsulated packet can be
forwarded along the downstream port

How did you verify/test it?
Ran decap/test_subnet_decap.py on DCS-7050CX3

Signed-off-by: Guy Shemesh <gshemesh@nvidia.com>
ytzur1 pushed a commit to ytzur1/sonic-mgmt that referenced this pull request Feb 2, 2026
…decap (sonic-net#19061)

What is the motivation for this PR?
Fixes failures for decap/test_subnet_decap::test_vlan_subnet_decap[negative-IPv4/6] for active-standby dualtor topos
The test selects the DUT randomly, irrespective of it being the standby ToR
In the positive case, this will not be a problem - the encapsulated packet is sent with an outer SIP that matches the
config on the DUT, the packet gets decapped and gets routed towards the upstream T1s
In the negative case, the outer SIP does not match the config on the DUT and hence will not be decapsulated, but
forwarded to the outer DIP, which is set to IP 192.168.0.200/fc02:1000::200
This will require forwarding over one of the downstream ports where the ARP responder is also set up - if the
DUT is a standby; this forwarding will not happen
How did you do it?
This fix calls the fixture to ensure the selected DUT will be the active ToR, and the non-decapsulated packet can be
forwarded along the downstream port

How did you verify/test it?
Ran decap/test_subnet_decap.py on DCS-7050CX3

Signed-off-by: Yael Tzur <ytzur@nvidia.com>
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.

5 participants