#if !defined(HAVE_NETLINK) && !defined(OPEN_BSD)
-enum dp_req_result kernel_add_lsp(zebra_lsp_t *lsp)
+int mpls_kernel_init(void)
{
- return DP_REQUEST_SUCCESS;
-}
+ return -1;
+};
-enum dp_req_result kernel_upd_lsp(zebra_lsp_t *lsp)
+/*
+ * 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 DP_REQUEST_SUCCESS;
+ return ZEBRA_DPLANE_REQUEST_SUCCESS;
}
-enum dp_req_result kernel_del_lsp(zebra_lsp_t *lsp)
+enum zebra_dplane_result kernel_lsp_update(struct zebra_dplane_ctx *ctx)
{
- return DP_REQUEST_SUCCESS;
+ return ZEBRA_DPLANE_REQUEST_FAILURE;
}
-int mpls_kernel_init(void)
-{
- return -1;
-};
-
#endif /* !defined(HAVE_NETLINK) && !defined(OPEN_BSD) */