diff options
| author | Renato Westphal <renato@opensourcerouting.org> | 2017-04-30 20:16:15 -0300 | 
|---|---|---|
| committer | Renato Westphal <renato@opensourcerouting.org> | 2017-05-01 11:33:23 -0300 | 
| commit | 988ded8d1258174e2b13e5f1a50ef7279ffe4b65 (patch) | |
| tree | f5c4e416c9305881d6afff6c41673c104833ea5b /ldpd/l2vpn.c | |
| parent | d5414843c2f5173be2bf76c179eece0620313fd4 (diff) | |
ldpd: respect link-detect configuration
We shouldn't check the operational status of an interface in ldpd if
it's configured with "no link-detect" in zebra. That's what all the
other routing daemons do.
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'ldpd/l2vpn.c')
| -rw-r--r-- | ldpd/l2vpn.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/ldpd/l2vpn.c b/ldpd/l2vpn.c index 92d865210a..27948f5a1a 100644 --- a/ldpd/l2vpn.c +++ b/ldpd/l2vpn.c @@ -142,7 +142,7 @@ void  l2vpn_if_update_info(struct l2vpn_if *lif, struct kif *kif)  {  	lif->ifindex = kif->ifindex; -	lif->flags = kif->flags; +	lif->operative = kif->operative;  	memcpy(lif->mac, kif->mac, sizeof(lif->mac));  } @@ -154,7 +154,7 @@ l2vpn_if_update(struct l2vpn_if *lif)  	struct map	 fec;  	struct nbr	*nbr; -	if ((lif->flags & IFF_UP) && (lif->flags & IFF_RUNNING)) +	if (lif->operative)  		return;  	RB_FOREACH(pw, l2vpn_pw_head, &l2vpn->pw_tree) {  | 
