-
Notifications
You must be signed in to change notification settings - Fork 547
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
[vxlanorch]: p2mp tunnels not stored in VXLAN state table #3480
Open
bradh352
wants to merge
1
commit into
sonic-net:master
Choose a base branch
from
bradh352:bradh352/p2mp-tunnel-vteps
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+69
−24
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
bradh352
added a commit
to bradh352/SONiC
that referenced
this pull request
Jan 22, 2025
Complimentary ticket to sonic-net/sonic-swss#3480 in order to allow p2mp vteps to be tracked. This will mostly aid in debugging. The HLD specifically states this when talking about P2P vs P2MP: "For an external user, there will be no changes from usability perspective since the schema is unchanged." However this is not entirely true since the state table wasn't recording p2mp remote vteps and therefore `show vxlan remotevtep` would return no results making a user believe the vxlan tunnel was not properly established. This as well as the aforementioned PR corrects this oversight. Signed-off-by: Brad House (@bradh352)
bradh352
added a commit
to bradh352/sonic-swss
that referenced
this pull request
Jan 22, 2025
…et#3480] Whether a VXLAN tunnel is brought up as p2p or p2mp depends on the silicon in use and isn't otherwise expressed to the end user. The side effect of this is `show vxlan remotevtep` shows no destinations when the silicon only supports p2mp such as Mellanox Spectrum1. This can cause a user to believe the vxlan tunnel wasn't properly formed when it really was. p2mp tunnels do not get a Port created, so do not rely on an operstatus being set by portsorch to know if they are up or down. This is presumably why the tunnel entries were not recorded. This introduces a new status of 'p2mp' in this case to denote this difference. Due to some past restructuring, calls into `updateRemoteEndPointIpRef()` were omitted as p2mp tunnels are not calling `addTunnelUser()`. This has been resolved and this function now calls into `addRemoveStateTableEntry()` for tracking of those remote vteps. Result: ``` +------------+------------+-------------------+--------------+ | SIP | DIP | Creation Source | OperStatus | +============+============+===================+==============+ | 172.16.0.3 | 172.16.0.1 | EVPN | oper_p2mp | +------------+------------+-------------------+--------------+ | 172.16.0.3 | 172.16.0.2 | EVPN | oper_p2mp | +------------+------------+-------------------+--------------+ Total count : 2 ``` Signed-off-by: Brad House (@bradh352)
github-actions bot
pushed a commit
to bradh352/sonic-swss
that referenced
this pull request
Jan 23, 2025
…et#3480] Whether a VXLAN tunnel is brought up as p2p or p2mp depends on the silicon in use and isn't otherwise expressed to the end user. The side effect of this is `show vxlan remotevtep` shows no destinations when the silicon only supports p2mp such as Mellanox Spectrum1. This can cause a user to believe the vxlan tunnel wasn't properly formed when it really was. p2mp tunnels do not get a Port created, so do not rely on an operstatus being set by portsorch to know if they are up or down. This is presumably why the tunnel entries were not recorded. This introduces a new status of 'p2mp' in this case to denote this difference. Due to some past restructuring, calls into `updateRemoteEndPointIpRef()` were omitted as p2mp tunnels are not calling `addTunnelUser()`. This has been resolved and this function now calls into `addRemoveStateTableEntry()` for tracking of those remote vteps. Result: ``` +------------+------------+-------------------+--------------+ | SIP | DIP | Creation Source | OperStatus | +============+============+===================+==============+ | 172.16.0.3 | 172.16.0.1 | EVPN | oper_p2mp | +------------+------------+-------------------+--------------+ | 172.16.0.3 | 172.16.0.2 | EVPN | oper_p2mp | +------------+------------+-------------------+--------------+ Total count : 2 ``` Signed-off-by: Brad House (@bradh352)
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
bradh352
force-pushed
the
bradh352/p2mp-tunnel-vteps
branch
from
January 24, 2025 19:58
ed7b055
to
8805632
Compare
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
bradh352
force-pushed
the
bradh352/p2mp-tunnel-vteps
branch
from
January 24, 2025 21:06
8805632
to
0c3e0e2
Compare
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
bradh352
force-pushed
the
bradh352/p2mp-tunnel-vteps
branch
from
January 24, 2025 21:10
0c3e0e2
to
f390228
Compare
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
bradh352
force-pushed
the
bradh352/p2mp-tunnel-vteps
branch
from
January 24, 2025 21:25
f390228
to
41c498a
Compare
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
bradh352
force-pushed
the
bradh352/p2mp-tunnel-vteps
branch
from
January 24, 2025 21:29
41c498a
to
f8d7bb5
Compare
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Whether a VXLAN tunnel is brought up as p2p or p2mp depends on the silicon in use and isn't otherwise expressed to the end user. The side effect of this is `show vxlan remotevtep` shows no destinations when the silicon only supports p2mp such as Mellanox Spectrum1. This can cause a user to believe the vxlan tunnel wasn't properly formed when it really was. p2mp tunnels do not get a Port created, so do not rely on an operstatus being set by portsorch to know if they are up or down. This is presumably why the tunnel entries were not recorded. This introduces a new status of 'p2mp' in this case to denote this difference. Due to some past restructuring, calls into `updateRemoteEndPointIpRef()` were omitted as p2mp tunnels are not calling `addTunnelUser()`. This has been resolved and this function now calls into `addRemoveStateTableEntry()` for tracking of those remote vteps. Result: ``` +------------+------------+-------------------+--------------+ | SIP | DIP | Creation Source | OperStatus | +============+============+===================+==============+ | 172.16.0.3 | 172.16.0.1 | EVPN | oper_p2mp | +------------+------------+-------------------+--------------+ | 172.16.0.3 | 172.16.0.2 | EVPN | oper_p2mp | +------------+------------+-------------------+--------------+ Total count : 2 ``` Signed-off-by: Brad House (@bradh352)
Azure Pipelines successfully started running 1 pipeline(s). |
bradh352
force-pushed
the
bradh352/p2mp-tunnel-vteps
branch
from
January 25, 2025 12:37
6ec3702
to
f55343e
Compare
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
test failures are in SRV6, not related to this |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Why I did it
Whether a VXLAN tunnel is brought up as p2p or p2mp depends on the silicon in use and isn't otherwise expressed to the end user. The side effect of this is
show vxlan remotevtep
shows no destinations when the silicon only supports p2mp such as Mellanox Spectrum1. This can cause a user to believe the vxlan tunnel wasn't properly formed when it really was.p2mp tunnels do not get a Port created, so do not rely on an operstatus being set by portsorch to know if they are up or down. This is presumably why the tunnel entries were not recorded.
What I did
This introduces a new status of 'p2mp' in this case to denote this difference and records p2mp tunnels in the VXLAN state table.
Due to some past restructuring, calls into
updateRemoteEndPointIpRef()
were omitted as p2mp tunnels are not callingaddTunnelUser()
. This has been resolved and this function now calls intoaddRemoveStateTableEntry()
for tracking of those remote vteps.How I verified it
Brought up vxlan tunnels on an Nvidia SN2201 switch and verified entries are now present in
show vxlan remotevtep
.Result:
Details if related
HLD changes here: sonic-net/SONiC#1897
Signed-off-by: Brad House (@bradh352)