]> git.proxmox.com Git - mirror_frr.git/blobdiff - zebra/zebra_router.c
zebra: avoid initialising more than one the l3vni hash structure
[mirror_frr.git] / zebra / zebra_router.c
index afe3c708a012fa3ce20399c9cf008465908e2886..2e1c69fb9269af3cc29252e2b9577bd6a0b1c2e7 100644 (file)
@@ -24,6 +24,7 @@
 #include "zebra_router.h"
 #include "zebra_memory.h"
 #include "zebra_pbr.h"
+#include "zebra_vxlan.h"
 
 struct zebra_router zrouter;
 
@@ -157,6 +158,7 @@ void zebra_router_terminate(void)
                zebra_router_free_table(zrt);
        }
 
+       zebra_vxlan_disable();
        hash_clean(zrouter.rules_hash, zebra_pbr_rules_free);
        hash_free(zrouter.rules_hash);
 
@@ -170,8 +172,7 @@ void zebra_router_terminate(void)
 
 void zebra_router_init(void)
 {
-       zrouter.l3vni_table = NULL;
-
+       zebra_vxlan_init();
        zrouter.rules_hash = hash_create_size(8, zebra_pbr_rules_hash_key,
                                              zebra_pbr_rules_hash_equal,
                                              "Rules Hash");