-
Notifications
You must be signed in to change notification settings - Fork 612
[ssw][ha] add tunnel term ACL for transient state during DPU switchover #3772
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
base: master
Are you sure you want to change the base?
Conversation
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
orchagent/vnetorch.cpp
Outdated
@@ -3157,3 +3167,240 @@ bool MonitorOrch::delOperation(const Request& request) | |||
|
|||
return true; | |||
} | |||
|
|||
TunnelTermHelper::TunnelTermHelper(DBConnector *cfgDb) |
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.
We should have a separate PR in the future to re-use these functions in DashEniFwdOrch. Can the class TunnelTermHelper be moved into a different .cpp/.h file. It would be clear that way
@@ -2913,6 +2918,11 @@ bool VNetRouteOrch::handleTunnel(const Request& request) | |||
mac = MacAddress(mac_list[idx_ip]); | |||
} | |||
|
|||
if (is_local) |
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.
Just to clarify, this rule will only be added only if "check_directly_connected" is set in the VNET_RT_TUNNEL table correct?
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.
Yes.
orchagent/vnetorch.h
Outdated
#define VNET_TUNNEL_TERM_ACL_TABLE_TYPE "VNET_LOCAL_ENDPOINT_REDIRECT" | ||
#define VNET_TUNNEL_TERM_ACL_TABLE "VNET_LOCAL_ENDPOINT" | ||
#define VNET_TUNNEL_TERM_ACL_BASE_PRIORITY 9998 | ||
#define VNET_TUNNEL_TERM_ACL_RULE_NAME_SUFFIX "IN_TUNN_TERM" |
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.
Since you are matching on DST_IP and it is direction agnostic. I think it is clear to name this "_TUNN_TERM"
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
LGTM |
Hi @prsunny - please help review too. |
What I did
HLD: https://github.com/sonic-net/SONiC/blob/master/doc/smart-switch/high-availability/vnet_local_endpoint_forwarding.md#vnetorch-programs-the-acl-rule
sign-off: Jing Zhang [email protected]
Why I did it
To avoid packet drop during DPU switchover
How I verified it
Verified with Vs testbed.
Details if related