summaryrefslogtreecommitdiff
path: root/staticd
diff options
context:
space:
mode:
Diffstat (limited to 'staticd')
-rw-r--r--staticd/static_zebra.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/staticd/static_zebra.c b/staticd/static_zebra.c
index 4692dc00d7..c540942a8d 100644
--- a/staticd/static_zebra.c
+++ b/staticd/static_zebra.c
@@ -385,6 +385,9 @@ extern void static_zebra_route_add(struct route_node *rn,
if (si->distance != si_changed->distance)
continue;
+ if (si->table_id != si_changed->table_id)
+ continue;
+
api_nh->vrf_id = si->nh_vrf_id;
switch (si->type) {
case STATIC_IFNAME: