Skip to content

Commit

Permalink
Revert "[fpmsyncd] Skip routes to eth0 or docker0 (#1606)"
Browse files Browse the repository at this point in the history
This reverts commit 901e2ef.
  • Loading branch information
abdosi committed Nov 24, 2021
1 parent a0417f6 commit ea9c669
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions fpmsyncd/routesync.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,21 +168,6 @@ void RouteSync::onRouteMsg(int nlmsg_type, struct nl_object *obj, char *vrf)
string nexthops = getNextHopGw(route_obj);
string ifnames = getNextHopIf(route_obj);

vector<string> alsv = tokenize(ifnames, ',');
for (auto alias : alsv)
{
/*
* An FRR behavior change from 7.2 to 7.5 makes FRR update default route to eth0 in interface
* up/down events. Skipping routes to eth0 or docker0 to avoid such behavior
*/
if (alias == "eth0" || alias == "docker0")
{
SWSS_LOG_NOTICE("Skip routes to eth0 or docker0: %s %s %s",
destipprefix, nexthops.c_str(), ifnames.c_str());
return;
}
}

vector<FieldValueTuple> fvVector;
FieldValueTuple nh("nexthop", nexthops);
FieldValueTuple idx("ifname", ifnames);
Expand Down

0 comments on commit ea9c669

Please sign in to comment.