Skip to content

Commit 25647cd

Browse files
[fpmsyncd]: Add Support for SRv6 VPN Route and PIC Context Processing (#3605)
What I did Add related handling functions for SRv6 VPN Route and PIC Context in RouteSync. And add some associated fields for database. Why I did it To supplement the functionality of SRv6 VPN Route and PIC Context. How I verified it This change is part of the PhoenixWing project. The functionality has already been tested and running in the PhoenixWing. To improve coverage, unit tests using mock objects for the internal processing logic of Srv6 Vpn Route and Pic Context have been added.
1 parent 820eb74 commit 25647cd

File tree

7 files changed

+1697
-22
lines changed

7 files changed

+1697
-22
lines changed

fpmsyncd/fpmlink.cpp

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,11 +281,21 @@ void FpmLink::processFpmMessage(fpm_msg_hdr_t* hdr)
281281
/* EVPN Type5 Add route processing */
282282
processRawMsg(nl_hdr);
283283
}
284-
else if(nl_hdr->nlmsg_type == RTM_NEWNEXTHOP || nl_hdr->nlmsg_type == RTM_DELNEXTHOP)
284+
else if(nl_hdr->nlmsg_type == RTM_NEWSRV6VPNROUTE || nl_hdr->nlmsg_type == RTM_DELSRV6VPNROUTE)
285+
{
286+
/* rtnl api dont support RTM_NEWSRV6VPNROUTE/RTM_DELSRV6VPNROUTE yet. Processing as raw message*/
287+
processRawMsg(nl_hdr);
288+
}
289+
else if(nl_hdr->nlmsg_type == RTM_NEWNEXTHOP || nl_hdr->nlmsg_type == RTM_DELNEXTHOP)
285290
{
286291
/* rtnl api dont support RTM_NEWNEXTHOP/RTM_DELNEXTHOP yet. Processing as raw message*/
287292
processRawMsg(nl_hdr);
288293
}
294+
else if(nl_hdr->nlmsg_type == RTM_NEWPICCONTEXT || nl_hdr->nlmsg_type == RTM_DELPICCONTEXT)
295+
{
296+
/* rtnl api dont support RTM_NEWPICCONTEXT/RTM_DELPICCONTEXT yet. Processing as raw message*/
297+
processRawMsg(nl_hdr);
298+
}
289299
else
290300
{
291301
NetDispatcher::getInstance().onNetlinkMessage(msg);

fpmsyncd/fpmlink.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717

1818
#define RTM_NEWSRV6LOCALSID 1000
1919
#define RTM_DELSRV6LOCALSID 1001
20+
#define RTM_NEWPICCONTEXT 2000
21+
#define RTM_DELPICCONTEXT 2001
22+
#define RTM_NEWSRV6VPNROUTE 3000
23+
#define RTM_DELSRV6VPNROUTE 3001
2024

2125
namespace swss {
2226

0 commit comments

Comments
 (0)