zebra: Leave some warning breadcrumbs
if (ifp && ifp->ifindex != IFINDEX_INTERNAL) {
si->ifindex = ifp->ifindex;
static_install_route(afi, safi, p, src_p, si);
- }
+ } else
+ zlog_warn("Static Route using %s interface not installed because the interface does not exist in specified vrf",
+ ifname);
}
return 1;
struct static_hold_route *shr, *lookup;
struct listnode *node;
+ zlog_warn("Static Route to %s not installed currently because dependent config not fully available",
+ dest_str);
+
shr = XCALLOC(MTYPE_STATIC_ROUTE, sizeof(*shr));
shr->vrf_name = XSTRDUP(MTYPE_STATIC_ROUTE, zvrf->vrf->name);
shr->nhvrf_name = XSTRDUP(MTYPE_STATIC_ROUTE, nh_zvrf->vrf->name);