From 3cf1288bfd855e339fe2283c79a3ef3746e61737 Mon Sep 17 00:00:00 2001 From: Dylan Hall Date: Thu, 27 Oct 2011 15:28:17 +0400 Subject: bgpd: fix "nexthop-local unchanged" (BZ#350) --- bgpd/bgpd.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bgpd') 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) -- cgit v1.2.1