summaryrefslogtreecommitdiffstats
path: root/zebra/zebra_mpls_null.c
diff options
context:
space:
mode:
authorMark Stapp <mjs@voltanet.io>2018-12-10 20:34:24 +0100
committerMark Stapp <mjs@voltanet.io>2019-01-25 16:45:57 +0100
commit97d8d05a811eac7b3f39c64f7806f5b9c5bc2004 (patch)
treeabf584cc2e151165591c3bc14d52a4cecc2eb43d /zebra/zebra_mpls_null.c
parentzebra: start pseudowire support (diff)
downloadfrr-97d8d05a811eac7b3f39c64f7806f5b9c5bc2004.tar.xz
frr-97d8d05a811eac7b3f39c64f7806f5b9c5bc2004.zip
zebra: convert PW updates to async dataplane
Add accessors for pw attributes; init pw attributes; replace 'hook' calls for pw install/uninstall with dplane apis. Signed-off-by: Mark Stapp <mjs@voltanet.io>
Diffstat (limited to 'zebra/zebra_mpls_null.c')
-rw-r--r--zebra/zebra_mpls_null.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/zebra/zebra_mpls_null.c b/zebra/zebra_mpls_null.c
index 409432c4f..2cc3f3b69 100644
--- a/zebra/zebra_mpls_null.c
+++ b/zebra/zebra_mpls_null.c
@@ -29,6 +29,15 @@ int mpls_kernel_init(void)
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 ZEBRA_DPLANE_REQUEST_SUCCESS;
+}
+
enum zebra_dplane_result kernel_lsp_update(struct zebra_dplane_ctx *ctx)
{
return ZEBRA_DPLANE_REQUEST_FAILURE;