From fd563cc7f35e598decdbfd6a58bae2f050143b3f Mon Sep 17 00:00:00 2001 From: Karen Schoener Date: Thu, 28 May 2020 16:36:35 -0400 Subject: ldpd: Relay data plane pseudowire status in LDP notification Provide a way for the data plane to indicate pseudowire status (such as: not forwarding, AC failure). On a data plane pseudowire install failure, data plane sets the pseudowire status. Zebra relays the pseudowire status to LDP. LDP includes the pseudowire status in the LDP notification to the LDP peer. Signed-off-by: Karen Schoener --- zebra/zebra_rib.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'zebra/zebra_rib.c') diff --git a/zebra/zebra_rib.c b/zebra/zebra_rib.c index d491982d62..f52ed471f0 100644 --- a/zebra/zebra_rib.c +++ b/zebra/zebra_rib.c @@ -3466,7 +3466,8 @@ static int handle_pw_result(struct zebra_dplane_ctx *ctx) vrf = zebra_vrf_lookup_by_id(dplane_ctx_get_vrf(ctx)); pw = zebra_pw_find(vrf, dplane_ctx_get_ifname(ctx)); if (pw) - zebra_pw_install_failure(pw); + zebra_pw_install_failure(pw, + dplane_ctx_get_pw_status(ctx)); } done: -- cgit v1.2.3