]> git.proxmox.com Git - mirror_frr.git/blobdiff - staticd/static_vrf.c
Merge pull request #5327 from lkrishnamoor/rm_rd_filter
[mirror_frr.git] / staticd / static_vrf.c
index ad143209ee0bb70c72147db96ca756fdb738cd3e..abb64aad3f34b04641afe654c1f92b3eb6953ea5 100644 (file)
@@ -27,6 +27,7 @@
 #include "static_memory.h"
 #include "static_vrf.h"
 #include "static_routes.h"
+#include "static_zebra.h"
 #include "static_vty.h"
 
 static void zebra_stable_node_cleanup(struct route_table *table,
@@ -76,6 +77,8 @@ static int static_vrf_new(struct vrf *vrf)
 
 static int static_vrf_enable(struct vrf *vrf)
 {
+       static_zebra_vrf_register(vrf);
+
        static_fixup_vrf_ids(vrf->info);
 
        /*
@@ -89,6 +92,7 @@ static int static_vrf_enable(struct vrf *vrf)
 
 static int static_vrf_disable(struct vrf *vrf)
 {
+       static_zebra_vrf_unregister(vrf);
        return 0;
 }
 
@@ -164,7 +168,7 @@ static int static_vrf_config_write(struct vty *vty)
                              SAFI_UNICAST, "ipv6 route");
 
                if (vrf->vrf_id != VRF_DEFAULT)
-                       vty_endframe(vty, "!\n");
+                       vty_endframe(vty, " exit-vrf\n!\n");
        }
 
        return 0;