]> git.proxmox.com Git - mirror_frr.git/blobdiff - pbrd/pbr_main.c
Merge pull request #4765 from opensourcerouting/defaults-v2
[mirror_frr.git] / pbrd / pbr_main.c
index 246d836acf2e05271bac21d80ca15c8dfbdb6dca..b228847f06036f4ad4ba26b1dd31a1bfc50668b7 100644 (file)
@@ -48,6 +48,7 @@
 #include "pbr_zebra.h"
 #include "pbr_vty.h"
 #include "pbr_debug.h"
+#include "pbr_vrf.h"
 
 zebra_capabilities_t _caps_p[] = {
        ZCAP_NET_RAW, ZCAP_BIND, ZCAP_NET_ADMIN,
@@ -111,7 +112,7 @@ struct quagga_signal_t pbr_signals[] = {
 
 #define PBR_VTY_PORT 2615
 
-static const struct frr_yang_module_info *pbrd_yang_modules[] = {
+static const struct frr_yang_module_info *const pbrd_yang_modules[] = {
        &frr_interface_info,
 };
 
@@ -153,7 +154,6 @@ int main(int argc, char **argv, char **envp)
 
        pbr_debug_init();
 
-       vrf_init(NULL, NULL, NULL, NULL, NULL);
        nexthop_group_init(pbr_nhgroup_add_cb,
                           pbr_nhgroup_add_nexthop_cb,
                           pbr_nhgroup_del_nexthop_cb,
@@ -166,7 +166,10 @@ int main(int argc, char **argv, char **envp)
        access_list_init();
        pbr_nht_init();
        pbr_map_init();
+       if_zapi_callbacks(pbr_ifp_create, pbr_ifp_up,
+                         pbr_ifp_down, pbr_ifp_destroy);
        pbr_zebra_init();
+       pbr_vrf_init();
        pbr_vty_init();
 
        frr_config_fork();