]> git.proxmox.com Git - mirror_frr.git/blobdiff - zebra/zebra_router.c
Merge pull request #3567 from donaldsharp/cleanup_route_table_creation
[mirror_frr.git] / zebra / zebra_router.c
index 0c4d16906edc53e31e43c0fdb0576d72fe10799a..f0cc8d4fd759c72cfa60e5dcabf51454578294e9 100644 (file)
@@ -25,6 +25,7 @@
 #include "zebra_memory.h"
 #include "zebra_pbr.h"
 #include "zebra_vxlan.h"
+#include "zebra_mlag.h"
 
 struct zebra_router zrouter;
 
@@ -178,6 +179,8 @@ void zebra_router_terminate(void)
        }
 
        zebra_vxlan_disable();
+       zebra_mlag_terminate();
+
        hash_clean(zrouter.rules_hash, zebra_pbr_rules_free);
        hash_free(zrouter.rules_hash);
 
@@ -192,6 +195,8 @@ void zebra_router_terminate(void)
 void zebra_router_init(void)
 {
        zebra_vxlan_init();
+       zebra_mlag_init();
+
        zrouter.rules_hash = hash_create_size(8, zebra_pbr_rules_hash_key,
                                              zebra_pbr_rules_hash_equal,
                                              "Rules Hash");