]> git.proxmox.com Git - mirror_frr.git/blobdiff - zebra/zebra_router.c
doc, zebra: Remove "table X" command
[mirror_frr.git] / zebra / zebra_router.c
index cabc8be8ddbc004ee44bf6d27829e569ee3303b8..63724fc350dec0241fcc60c8eb7d21b5963a0deb 100644 (file)
@@ -164,8 +164,6 @@ static void zebra_router_free_table(struct zebra_router_table *zrt)
 {
        void *table_info;
 
-       rib_close_table(zrt->table);
-
        table_info = route_table_get_info(zrt->table);
        route_table_finish(zrt->table);
        RB_REMOVE(zebra_router_table_head, &zrouter.tables, zrt);
@@ -204,10 +202,8 @@ void zebra_router_terminate(void)
 {
        struct zebra_router_table *zrt, *tmp;
 
-       RB_FOREACH_SAFE (zrt, zebra_router_table_head, &zrouter.tables, tmp) {
-               RB_REMOVE(zebra_router_table_head, &zrouter.tables, zrt);
+       RB_FOREACH_SAFE (zrt, zebra_router_table_head, &zrouter.tables, tmp)
                zebra_router_free_table(zrt);
-       }
 
        work_queue_free_and_null(&zrouter.ribq);
        meta_queue_free(zrouter.mq);
@@ -230,7 +226,6 @@ void zebra_router_init(void)
 {
        zrouter.sequence_num = 0;
 
-       zrouter.rtm_table_default = 0;
        zrouter.packets_to_process = ZEBRA_ZAPI_PACKETS_TO_PROCESS;
 
        zebra_vxlan_init();