commit | bb04351973bd369623a0fbed3ef59e7b4fd0bd05 | [log] [tgz] |
---|---|---|
author | Lou Berger <lberger@labn.net> | Mon Oct 10 11:56:52 2016 -0400 |
committer | Paul Jakma <paul.jakma@hpe.com> | Tue Oct 11 12:00:00 2016 +0100 |
tree | 0bc7a8213129c88bd1cfe0c33caadb9255ebf702 | |
parent | e33545cb9d7a8c7875f18b6d44bf75d320ccedfb [diff] |
bgp: restore missing check from original ignore NHT change
diff --git a/bgpd/bgp_nht.c b/bgpd/bgp_nht.c index b5d830e..7808505 100644 --- a/bgpd/bgp_nht.c +++ b/bgpd/bgp_nht.c
@@ -194,7 +194,8 @@ else if (peer) bnc->nht_info = (void *)peer; /* NHT peer reference */ - return (CHECK_FLAG(bnc->flags, BGP_NEXTHOP_VALID)); + return (bgp_zebra_num_connects() == 0 || + CHECK_FLAG(bnc->flags, BGP_NEXTHOP_VALID)); } void