From 0d9127bca1fa4aa3613f9bc48f732ec1100f865b Mon Sep 17 00:00:00 2001 From: Igor Ryzhov Date: Sat, 3 Feb 2024 21:37:06 +0200 Subject: [PATCH] staticd: don't send routes from disabled vrfs to zebra Signed-off-by: Igor Ryzhov --- staticd/static_zebra.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/staticd/static_zebra.c b/staticd/static_zebra.c index 697afa5156..66659e9034 100644 --- a/staticd/static_zebra.c +++ b/staticd/static_zebra.c @@ -386,7 +386,7 @@ extern void static_zebra_route_add(struct static_path *pn, bool install) struct zapi_route api; uint32_t nh_num = 0; - if (!si->svrf->vrf) + if (!si->svrf->vrf || si->svrf->vrf->vrf_id == VRF_UNKNOWN) return; p = src_pp = NULL;