pimd: use correct VRF when processing interface address add

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
This commit is contained in:
Igor Ryzhov 2021-11-16 18:09:09 +03:00
parent de093103cb
commit 4bb0e8f0c0

View file

@ -164,7 +164,7 @@ static int pim_zebra_if_address_add(ZAPI_CALLBACK_ARGS)
} }
if (if_is_loopback(c->ifp)) { if (if_is_loopback(c->ifp)) {
struct vrf *vrf = vrf_lookup_by_id(VRF_DEFAULT); struct vrf *vrf = vrf_lookup_by_id(vrf_id);
struct interface *ifp; struct interface *ifp;
FOR_ALL_INTERFACES (vrf, ifp) { FOR_ALL_INTERFACES (vrf, ifp) {