diff options
| author | Renato Westphal <renato@opensourcerouting.org> | 2017-11-29 17:11:28 -0200 |
|---|---|---|
| committer | ßingen <bingen@voltanet.io> | 2017-12-27 12:17:05 +0100 |
| commit | 09da8189f683fe0137a54af78b650a9f8ac3376f (patch) | |
| tree | 498fee9e8ff690ed96aaba74378547e8a63f2012 | |
| parent | 0466c356084e0b0a6d305ca4acfec625e31355c3 (diff) | |
ldpd: add a few warning messages to aid in troubleshooting
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
| -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 33c3d713a3..2a3a5d97c1 100644 --- a/ldpd/l2vpn.c +++ b/ldpd/l2vpn.c @@ -294,17 +294,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); } |
