diff options
| author | Donatas Abraitis <donatas.abraitis@gmail.com> | 2019-10-24 17:01:56 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-24 17:01:56 +0300 |
| commit | 3f8aebe012bc1178d49c57db689467c38cc5280a (patch) | |
| tree | f1f75deb8ffa082dd10f3ed4c35161e7c552e8bd | |
| parent | f935dca78fd87e392eb8df6bc2f2892e90d22810 (diff) | |
| parent | 9eb8b14c857f1ce45edd084f61a872e376f3184b (diff) | |
Merge pull request #5219 from pguibert6WIND/interface_same_name
staticd: check tuple (vrf, name) when interface events received
| -rw-r--r-- | staticd/static_routes.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/staticd/static_routes.c b/staticd/static_routes.c index a8a5ca523a..e8d6a4289b 100644 --- a/staticd/static_routes.c +++ b/staticd/static_routes.c @@ -310,10 +310,14 @@ static void static_ifindex_update_af(struct interface *ifp, bool up, afi_t afi, if (up) { if (strcmp(si->ifname, ifp->name)) continue; + if (si->nh_vrf_id != ifp->vrf_id) + continue; si->ifindex = ifp->ifindex; } else { if (si->ifindex != ifp->ifindex) continue; + if (si->nh_vrf_id != ifp->vrf_id) + continue; si->ifindex = IFINDEX_INTERNAL; } |
