From 31d4a8e5f0dab3bec0de4dfed626ae8469e86398 Mon Sep 17 00:00:00 2001 From: Philippe Guibert Date: Wed, 22 Aug 2018 10:04:06 +0200 Subject: [PATCH] staticd: do not forget to set table id marker on zebra message Table identifier is not read if table id marker is not set. Signed-off-by: Philippe Guibert --- staticd/static_zebra.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/staticd/static_zebra.c b/staticd/static_zebra.c index f3175e91fa..2ea4667e07 100644 --- a/staticd/static_zebra.c +++ b/staticd/static_zebra.c @@ -273,8 +273,10 @@ extern void static_zebra_route_add(struct route_node *rn, SET_FLAG(api.message, ZAPI_MESSAGE_TAG); api.tag = si_changed->tag; } - api.tableid = si_changed->table_id; - + if (si_changed->table_id != 0) { + SET_FLAG(api.message, ZAPI_MESSAGE_TABLEID); + api.tableid = si_changed->table_id; + } zlog_debug("Distance sent down: %d %d", si_changed->distance, install); for (/*loaded above*/; si; si = si->next) { api_nh = &api.nexthops[nh_num];