summaryrefslogtreecommitdiff
path: root/zebra/zebra_router.c
diff options
context:
space:
mode:
authorDuncan Eastoe <duncan.eastoe@att.com>2018-11-13 15:26:21 +0000
committerDuncan Eastoe <duncan.eastoe@att.com>2020-07-08 12:52:13 +0100
commitb62983cf98eb07350cd1120c3b0f32cf223d93f0 (patch)
treec26739d7d19f28d65913a87127c2c6ba7586ee5f /zebra/zebra_router.c
parentc4c333065294bdb3bcd17a1c2d302cee6798d9bb (diff)
zebra: Add table_id to rib_table_info_t
When given a route_table this allows the corresponding kernel table ID to be determined. The table_id value is set upon table creation to the table_id of the VRF, unless the table was created with a specific ID. Signed-off-by: Duncan Eastoe <duncan.eastoe@att.com>
Diffstat (limited to 'zebra/zebra_router.c')
-rw-r--r--zebra/zebra_router.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/zebra/zebra_router.c b/zebra/zebra_router.c
index 61fef8779f..66f2924555 100644
--- a/zebra/zebra_router.c
+++ b/zebra/zebra_router.c
@@ -133,6 +133,7 @@ struct route_table *zebra_router_get_table(struct zebra_vrf *zvrf,
info->zvrf = zvrf;
info->afi = afi;
info->safi = safi;
+ info->table_id = tableid;
route_table_set_info(zrt->table, info);
zrt->table->cleanup = zebra_rtable_node_cleanup;