]> git.proxmox.com Git - mirror_frr.git/blobdiff - zebra/zebra_mpls_null.c
Merge pull request #5789 from donaldsharp/bgp_ebgp_reason
[mirror_frr.git] / zebra / zebra_mpls_null.c
index e4dc570fd92a57b2bc9017c7084afbb4ba675ab5..2cc3f3b69dc5ab72b7d195bcc92410dc273dcd96 100644 (file)
 
 #if !defined(HAVE_NETLINK) && !defined(OPEN_BSD)
 
-int kernel_add_lsp(zebra_lsp_t *lsp)
+int mpls_kernel_init(void)
 {
-       return 0;
-}
-int kernel_upd_lsp(zebra_lsp_t *lsp)
+       return -1;
+};
+
+/*
+ * Pseudowire update api - note that the default has been
+ * to report 'success' for pw updates on unsupported platforms.
+ */
+enum zebra_dplane_result kernel_pw_update(struct zebra_dplane_ctx *ctx)
 {
-       return 0;
+       return ZEBRA_DPLANE_REQUEST_SUCCESS;
 }
-int kernel_del_lsp(zebra_lsp_t *lsp)
+
+enum zebra_dplane_result kernel_lsp_update(struct zebra_dplane_ctx *ctx)
 {
-       return 0;
+       return ZEBRA_DPLANE_REQUEST_FAILURE;
 }
-int mpls_kernel_init(void)
-{
-       return -1;
-};
 
 #endif /* !defined(HAVE_NETLINK) && !defined(OPEN_BSD) */