-
Notifications
You must be signed in to change notification settings - Fork 543
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
[subnet decap] Add subnet decap rule based on overlay ECMP #3153
Conversation
@@ -2088,6 +2123,14 @@ void VNetRouteOrch::postRouteState(const string& vnet, IpPrefix& ipPrefix, NextH | |||
removeRouteAdvertisement(prefix_to_use); | |||
} | |||
} | |||
if (route_state == "active") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this code be in the if block at line#2115?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The if block at LINE#2115 checks if the vnet is allowed to advertise prefix. The decap term should be added even if the vnet is not allowed to advertise prefix.
orchagent/vnetorch.cpp
Outdated
inline void VNetRouteOrch::removeSubnetDecapTerm(const IpPrefix &ipPrefix) | ||
{ | ||
const SubnetDecapConfig &config = gTunneldecapOrch->getSubnetDecapConfig(); | ||
if (!config.enable || subnet_decap_terms_created_.find(ipPrefix) == subnet_decap_terms_created_.end()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggest not checking config.enable
. Even if it's disabled, user should be able to remove it.
@lolyu , we need to ensure test_vnet_vxlan in sonic-mgmt passes and no stale decap entries present. Could you please confirm? |
…el route Signed-off-by: Longxiang Lyu <lolv@microsoft.com>
Signed-off-by: Longxiang Lyu <lolv@microsoft.com>
Signed-off-by: Longxiang Lyu <lolv@microsoft.com>
abc7e91
to
075af2f
Compare
What I did
Support dynamic decap rule generation based on the Vxlan tunnel route of Overlay ECMP.
This depends on: #3117
Why I did it
To enable SONiC with the capability to decap IPinIP packets with dest IP in the Overlay ECMP Vxlan tunnel route prefix.
How I verified it
VS test:
Details if related