summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--zebra/rtadv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/rtadv.c b/zebra/rtadv.c
index a15d78f64b..ab3e55d100 100644
--- a/zebra/rtadv.c
+++ b/zebra/rtadv.c
@@ -494,7 +494,7 @@ static int rtadv_timer(struct thread *thread)
RB_FOREACH (vrf, vrf_id_head, &vrfs_by_id)
FOR_ALL_INTERFACES (vrf, ifp) {
if (if_is_loopback_or_vrf(ifp) || !if_is_operative(ifp)
- || if_lookup_by_index(ifp->ifindex, zvrf->vrf->vrf_id) == NULL)
+ || (vrf_is_backend_netns() && ifp->vrf_id != zvrf->vrf->vrf_id))
continue;
zif = ifp->info;