diff options
author | Philippe Guibert <philippe.guibert@6wind.com> | 2018-08-22 10:04:06 +0200 |
---|---|---|
committer | Philippe Guibert <philippe.guibert@6wind.com> | 2018-08-22 10:04:06 +0200 |
commit | 31d4a8e5f0dab3bec0de4dfed626ae8469e86398 (patch) | |
tree | c96abb786c8f9f4402deb5fa91b9c048e0f150d4 /staticd | |
parent | staticd: remove usage of vrf_is_backend_netns in staticd (diff) | |
download | frr-31d4a8e5f0dab3bec0de4dfed626ae8469e86398.tar.xz frr-31d4a8e5f0dab3bec0de4dfed626ae8469e86398.zip |
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 <philippe.guibert@6wind.com>
Diffstat (limited to 'staticd')
-rw-r--r-- | staticd/static_zebra.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/staticd/static_zebra.c b/staticd/static_zebra.c index f3175e91f..2ea4667e0 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]; |