summaryrefslogtreecommitdiff
path: root/bgpd/bgpd.c
diff options
context:
space:
mode:
authorDylan Hall <dylan@deedums.com>2011-10-27 15:28:17 +0400
committerDenis Ovsienko <infrastation@yandex.ru>2011-11-15 21:35:11 +0400
commit3cf1288bfd855e339fe2283c79a3ef3746e61737 (patch)
treebbc6600328c20861512c4e26928ffce4cf9c5878 /bgpd/bgpd.c
parent5c88f19d5b166c6afa8a9b8501badb785afa553b (diff)
bgpd: fix "nexthop-local unchanged" (BZ#350)
Diffstat (limited to 'bgpd/bgpd.c')
-rw-r--r--bgpd/bgpd.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/bgpd/bgpd.c b/bgpd/bgpd.c
index b8215ee6..8bc8d6ed 100644
--- a/bgpd/bgpd.c
+++ b/bgpd/bgpd.c
@@ -5015,6 +5015,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)