diff options
| author | Karen Schoener <karen@volta.io> | 2020-05-28 16:36:35 -0400 |
|---|---|---|
| committer | Karen Schoener <karen@volta.io> | 2020-06-01 13:21:37 -0400 |
| commit | fd563cc7f35e598decdbfd6a58bae2f050143b3f (patch) | |
| tree | 682f7ce1aaa6b133803c0c61e31e2c6f55d387f9 /zebra/zebra_rib.c | |
| parent | 6b2210021cab645efa58a23d5a4d171fe37f305e (diff) | |
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 <karen@voltanet.io>
Diffstat (limited to 'zebra/zebra_rib.c')
| -rw-r--r-- | zebra/zebra_rib.c | 3 |
1 files changed, 2 insertions, 1 deletions
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: |
