]> git.proxmox.com 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:35:11 +0000 (21:35 +0400)
bgpd/bgpd.c

index b8215ee68713588b38a25df9bc2f4bc1db2c0519..8bc8d6edea1b21632cf039cb7fa5d6ddefced186 100644 (file)
@@ -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)