forked from sonic-net/sonic-swss
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[vxlanorch]: p2mp tunnels not stored in VXLAN state table [PR sonic-n…
…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)
- Loading branch information
Showing
2 changed files
with
33 additions
and
8 deletions.
There are no files selected for viewing
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
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