diff options
author | Dylan Hall <dylan@deedums.com> | 2011-10-27 15:28:17 +0400 |
---|---|---|
committer | Denis Ovsienko <infrastation@yandex.ru> | 2011-11-15 21:31:25 +0400 |
commit | 8b1eb59bb954af49455a97dbabf65321001d0225 (patch) | |
tree | 4238e1adf14b9b2cf11a18cbc1c08eaf4710a511 /bgpd | |
parent | 90d181bd1a7e03d41df3cb2f51530ab47d818caa (diff) |
bgpd: fix "nexthop-local unchanged" (BZ#350)
Diffstat (limited to 'bgpd')
-rw-r--r-- | bgpd/bgpd.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bgpd/bgpd.c b/bgpd/bgpd.c index b9fdfd77..0d462db9 100644 --- a/bgpd/bgpd.c +++ b/bgpd/bgpd.c @@ -4844,6 +4844,11 @@ bgp_config_write_peer (struct vty *vty, struct bgp *bgp, && ! peer->af_group[afi][safi]) vty_out (vty, " neighbor %s route-server-client%s", addr, VTY_NEWLINE); + /* Nexthop-local unchanged. */ + if (CHECK_FLAG (peer->af_flags[afi][safi], PEER_FLAG_NEXTHOP_LOCAL_UNCHANGED) + && ! peer->af_group[afi][safi]) + vty_out (vty, " neighbor %s nexthop-local unchanged%s", addr, VTY_NEWLINE); + /* Allow AS in. */ if (peer_af_flag_check (peer, afi, safi, PEER_FLAG_ALLOWAS_IN)) if (! peer_group_active (peer) |