diff options
| author | Mark Stapp <mjs@voltanet.io> | 2018-12-10 14:34:24 -0500 | 
|---|---|---|
| committer | Mark Stapp <mjs@voltanet.io> | 2019-01-25 10:45:57 -0500 | 
| commit | 97d8d05a811eac7b3f39c64f7806f5b9c5bc2004 (patch) | |
| tree | abf584cc2e151165591c3bc14d52a4cecc2eb43d /zebra/zebra_mpls_netlink.c | |
| parent | d613b8e1edd522cdc0dc6b71448c948497cf25a3 (diff) | |
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_netlink.c')
| -rw-r--r-- | zebra/zebra_mpls_netlink.c | 10 | 
1 files changed, 10 insertions, 0 deletions
diff --git a/zebra/zebra_mpls_netlink.c b/zebra/zebra_mpls_netlink.c index d8b5ef4ce1..a9233530dc 100644 --- a/zebra/zebra_mpls_netlink.c +++ b/zebra/zebra_mpls_netlink.c @@ -61,6 +61,16 @@ done:  		ZEBRA_DPLANE_REQUEST_SUCCESS : ZEBRA_DPLANE_REQUEST_FAILURE);  } +/* + * Pseudowire update api - not supported by netlink as of 12/18, + * but 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; +} +  int mpls_kernel_init(void)  {  	struct stat st;  | 
