-
Notifications
You must be signed in to change notification settings - Fork 520
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
[fpmsyncd]: Add support for SRv6 #3123
base: master
Are you sure you want to change the base?
Conversation
962e839
to
13cfd44
Compare
13cfd44
to
525d2e2
Compare
525d2e2
to
98225dc
Compare
/azpw run Azure.sonic-swss |
/AzurePipelines run Azure.sonic-swss |
Azure Pipelines successfully started running 1 pipeline(s). |
faf75e9
to
171fbfb
Compare
@cscarpitta can you rebase it to fix the compile issue? sonic-net/sonic-buildimage#18715 is merged. |
This change has been cherry-picked into phoenix wing and used in daily run. |
fpmsyncd/routesync.cpp
Outdated
#define NH_ENCAP_SRV6_ROUTE 101 | ||
|
||
#define RTM_NEWSRV6LOCALSID 1000 | ||
#define RTM_DELSRV6LOCALSID 1001 |
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.
These constants are defined in fpmlink.h, do we need it here? Pls remove if not needed.
fpmsyncd/routesync.cpp
Outdated
@@ -81,6 +145,8 @@ RouteSync::RouteSync(RedisPipeline *pipeline) : | |||
m_vnet_routeTable(pipeline, APP_VNET_RT_TABLE_NAME, true), | |||
m_vnet_tunnelTable(pipeline, APP_VNET_RT_TUNNEL_TABLE_NAME, true), | |||
m_warmStartHelper(pipeline, &m_routeTable, APP_ROUTE_TABLE_NAME, "bgp", "bgp"), | |||
m_srv6LocalSidTable(pipeline, APP_SRV6_MY_SID_TABLE_NAME, true), |
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.
minor: could we change the table name to mysidTable. I think we changed most of the reference of localSid to MySid.
|
||
if (vpn_sid.empty()) | ||
{ | ||
return false; |
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.
Error logs for debugging?
f53196b
to
a1671dc
Compare
* Extend fpmsyncd to process SRv6 routes and local SIDs received from FRR * Add test cases to verify SRv6 functionality Signed-off-by: Carmine Scarpitta <[email protected]>
Signed-off-by: Carmine Scarpitta <[email protected]>
a1671dc
to
b0c2f60
Compare
HLD: sonic-net/SONiC#1620
What I did
Extended fpmsyncd to process Netlink TLVs containing SRv6 information (SRv6 local SIDs and routes).
Why I did it
fpmsyncd did not process Netlink TLVs containing SRv6 information (SRv6 local SIDs and routes).
How I verified it
Added new test cases in
test_srv6.py
.