summaryrefslogtreecommitdiff
path: root/staticd
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2024-02-03 21:37:06 +0200
committerIgor Ryzhov <iryzhov@nfware.com>2024-02-04 22:28:10 +0200
commit0d9127bca1fa4aa3613f9bc48f732ec1100f865b (patch)
tree3cb737faea66d25bd728359696e3468c8632de7a /staticd
parent6da3e78ce55d8425c14ceca0214fe90e209a9d36 (diff)
staticd: don't send routes from disabled vrfs to zebra
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'staticd')
-rw-r--r--staticd/static_zebra.c2
1 files changed, 1 insertions, 1 deletions
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;