diff options
author | Renato Westphal <renato@opensourcerouting.org> | 2017-11-29 20:11:28 +0100 |
---|---|---|
committer | Renato Westphal <renato@opensourcerouting.org> | 2017-11-29 23:39:23 +0100 |
commit | 34eeae65c01d0e97dc2d89b0b0940b51c2f86042 (patch) | |
tree | bf4c1efab6370dabfefb05ed430a0fa1d0d6b404 /ldpd | |
parent | zebra, ldpd: fix display of pseudowire status (diff) | |
download | frr-34eeae65c01d0e97dc2d89b0b0940b51c2f86042.tar.xz frr-34eeae65c01d0e97dc2d89b0b0940b51c2f86042.zip |
ldpd: add a few warning messages to aid in troubleshooting
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'ldpd')
-rw-r--r-- | ldpd/l2vpn.c | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/ldpd/l2vpn.c b/ldpd/l2vpn.c index 5bf9bd457..f638d6a65 100644 --- a/ldpd/l2vpn.c +++ b/ldpd/l2vpn.c @@ -295,17 +295,26 @@ int l2vpn_pw_ok(struct l2vpn_pw *pw, struct fec_nh *fnh) { /* check for a remote label */ - if (fnh->remote_label == NO_LABEL) + if (fnh->remote_label == NO_LABEL) { + log_warnx("%s: pseudowire %s: no remote label", __func__, + pw->ifname); return (0); + } /* MTUs must match */ - if (pw->l2vpn->mtu != pw->remote_mtu) + if (pw->l2vpn->mtu != pw->remote_mtu) { + log_warnx("%s: pseudowire %s: MTU mismatch detected", __func__, + pw->ifname); return (0); + } /* check pw status if applicable */ if ((pw->flags & F_PW_STATUSTLV) && - pw->remote_status != PW_FORWARDING) + pw->remote_status != PW_FORWARDING) { + log_warnx("%s: pseudowire %s: remote end is down", __func__, + pw->ifname); return (0); + } return (1); } |