summaryrefslogtreecommitdiffstats
path: root/ldpd/lde.c
diff options
context:
space:
mode:
authorlynne <lynne@voltanet.io>2020-05-07 18:31:40 +0200
committerlynne <lynne@voltanet.io>2020-05-11 22:22:52 +0200
commit6bbdd9e97997aa5f6ed2468e2d21b8163c9ecb51 (patch)
tree81b6e9bb7ee5d8575e123defe77204ba905811b7 /ldpd/lde.c
parentMerge pull request #6358 from donaldsharp/zebra_onlink (diff)
downloadfrr-6bbdd9e97997aa5f6ed2468e2d21b8163c9ecb51.tar.xz
frr-6bbdd9e97997aa5f6ed2468e2d21b8163c9ecb51.zip
ldpd and Zebra: Expand existing debug commands.
L2VPN PW are very hard to determine why they do not come up. The following fixes expand the existing show commands in ldp and zebra to display a reason why the PW is in the DOWN state and also display the labeled nexthop route selected to reach the PW peer. By adding this information it will provide the user some guidance on how to debug the PW issue. Also fixed an assert if labels were changed for a PW that is between directly connected peers. Signed-off-by: Lynne Morrison <lynne@voltanet.io>
Diffstat (limited to 'ldpd/lde.c')
-rw-r--r--ldpd/lde.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ldpd/lde.c b/ldpd/lde.c
index 7d1df158a..322027896 100644
--- a/ldpd/lde.c
+++ b/ldpd/lde.c
@@ -751,7 +751,6 @@ lde_update_label(struct fec_node *fn)
return (MPLS_LABEL_IMPLICIT_NULL);
return MPLS_LABEL_IPV6_EXPLICIT_NULL;
default:
- fatalx("lde_update_label: unexpected fec type");
break;
}
}
@@ -1421,8 +1420,10 @@ lde_nbr_del(struct lde_nbr *ln)
if (f->u.pwid.lsr_id.s_addr != ln->id.s_addr)
continue;
pw = (struct l2vpn_pw *) fn->data;
- if (pw)
+ if (pw) {
+ pw->reason = F_PW_NO_REMOTE_LABEL;
l2vpn_pw_reset(pw);
+ }
break;
default:
break;