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>
This commit is contained in:
Philippe Guibert 2018-08-22 10:04:06 +02:00
parent f69f6f56f5
commit 31d4a8e5f0

View File

@ -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;
}
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];