@@ -1787,11 +1787,11 @@ void RouteSync::onRouteMsg(int nlmsg_type, struct nl_object *obj, char *vrf)
17871787
17881788 if (alsv.size () == 1 )
17891789 {
1790- if (alsv[0 ] == " eth0" || alsv[0 ] == " docker0" )
1790+ if (alsv[0 ] == " eth0" || alsv[0 ] == " docker0" || alsv[ 0 ] == " eth1-midplane " )
17911791 {
1792- SWSS_LOG_DEBUG (" Skip routes to eth0 or docker0: %s %s %s" ,
1792+ SWSS_LOG_DEBUG (" Skip routes to eth0 or docker0 or eth1-midplane : %s %s %s" ,
17931793 destipprefix, gw_list.c_str (), intf_list.c_str ());
1794- SWSS_LOG_INFO (" RouteTable del msg for eth0/docker0 route: %s" , destipprefix);
1794+ SWSS_LOG_INFO (" RouteTable del msg for eth0/docker0/eth1-midplane route: %s" , destipprefix);
17951795 delWithWarmRestart (RouteTableFieldValueTupleWrapper{std::move (destipprefix), " " },
17961796 *m_routeTable);
17971797 return ;
@@ -1805,9 +1805,9 @@ void RouteSync::onRouteMsg(int nlmsg_type, struct nl_object *obj, char *vrf)
18051805 * A change in FRR behavior from version 7.2 to 7.5 causes the default route to be updated to eth0
18061806 * during interface up/down events. This skips routes to eth0 or docker0 to avoid such behavior.
18071807 */
1808- if (alias == " eth0" || alias == " docker0" )
1808+ if (alias == " eth0" || alias == " docker0" || alias == " eth1-midplane " )
18091809 {
1810- SWSS_LOG_DEBUG (" Skip routes to eth0 or docker0: %s %s %s" ,
1810+ SWSS_LOG_DEBUG (" Skip routes to eth0 or docker0 or eth1-midplane : %s %s %s" ,
18111811 destipprefix, gw_list.c_str (), intf_list.c_str ());
18121812 continue ;
18131813 }
@@ -1946,7 +1946,7 @@ void RouteSync::onNextHopMsg(struct nlmsghdr *h, int len)
19461946 strcpy (if_name, ifname_unknown);
19471947 }
19481948 ifname = string (if_name);
1949- if (ifname == " eth0" || ifname == " docker0" )
1949+ if (ifname == " eth0" || ifname == " docker0" || ifname == " eth1-midplane " )
19501950 {
19511951 SWSS_LOG_DEBUG (" Skip routes to interface: %s id[%d]" , ifname.c_str (), id);
19521952 return ;
0 commit comments