summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ldpd/l2vpn.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/ldpd/l2vpn.c b/ldpd/l2vpn.c
index 3f4e21e685..2516e62753 100644
--- a/ldpd/l2vpn.c
+++ b/ldpd/l2vpn.c
@@ -282,9 +282,6 @@ l2vpn_pw_reset(struct l2vpn_pw *pw)
int
l2vpn_pw_ok(struct l2vpn_pw *pw, struct fec_nh *fnh)
{
- struct fec fec;
- struct fec_node *fn;
-
/* check for a remote label */
if (fnh->remote_label == NO_LABEL)
return (0);
@@ -298,34 +295,6 @@ l2vpn_pw_ok(struct l2vpn_pw *pw, struct fec_nh *fnh)
pw->remote_status != PW_FORWARDING)
return (0);
- /* check for a working lsp to the nexthop */
- memset(&fec, 0, sizeof(fec));
- switch (pw->af) {
- case AF_INET:
- fec.type = FEC_TYPE_IPV4;
- fec.u.ipv4.prefix = pw->addr.v4;
- fec.u.ipv4.prefixlen = 32;
- break;
- case AF_INET6:
- fec.type = FEC_TYPE_IPV6;
- fec.u.ipv6.prefix = pw->addr.v6;
- fec.u.ipv6.prefixlen = 128;
- break;
- default:
- fatalx("l2vpn_pw_ok: unknown af");
- }
-
- fn = (struct fec_node *)fec_find(&ft, &fec);
- if (fn == NULL || fn->local_label == NO_LABEL)
- return (0);
- /*
- * Need to ensure that there's a label binding for all nexthops.
- * Otherwise, ECMP for this route could render the pseudowire unusable.
- */
- LIST_FOREACH(fnh, &fn->nexthops, entry)
- if (fnh->remote_label == NO_LABEL)
- return (0);
-
return (1);
}