summaryrefslogtreecommitdiff
path: root/pimd/pim_zebra.c
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2021-11-16 18:09:09 +0300
committerIgor Ryzhov <iryzhov@nfware.com>2021-11-16 18:09:09 +0300
commit4bb0e8f0c0680c0b711c7775e521ece538247452 (patch)
treea8b762c7c9b11f604408c443e6440f37bdb9237a /pimd/pim_zebra.c
parentde093103cb859b7ec2349bf158764233efd15705 (diff)
pimd: use correct VRF when processing interface address add
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'pimd/pim_zebra.c')
-rw-r--r--pimd/pim_zebra.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pimd/pim_zebra.c b/pimd/pim_zebra.c
index 0ef0ad533e..e01ee4b81b 100644
--- a/pimd/pim_zebra.c
+++ b/pimd/pim_zebra.c
@@ -164,7 +164,7 @@ static int pim_zebra_if_address_add(ZAPI_CALLBACK_ARGS)
}
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;
FOR_ALL_INTERFACES (vrf, ifp) {