]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: fix "nexthop-local unchanged" (BZ#350)
authorDylan Hall <dylan@deedums.com>
Thu, 27 Oct 2011 11:28:17 +0000 (15:28 +0400)
committerDenis Ovsienko <infrastation@yandex.ru>
Tue, 15 Nov 2011 17:31:25 +0000 (21:31 +0400)
bgpd/bgpd.c

index b9fdfd77c89c4be1a3aa11bc7f0d37855c9b77ff..0d462db93cc2fded34e6a7a8c15e3118fc1cf66d 100644 (file)
@@ -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)