diff options
| -rw-r--r-- | bgpd/bgpd.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/bgpd/bgpd.c b/bgpd/bgpd.c index f23cc13725..ca72d2403a 100644 --- a/bgpd/bgpd.c +++ b/bgpd/bgpd.c @@ -6621,9 +6621,17 @@ bgp_config_write_peer_af (struct vty *vty, struct bgp *bgp, { if (peer->afc[afi][safi]) { - afi_header_vty_out (vty, afi, safi, write, - " neighbor %s activate%s", - addr, VTY_NEWLINE); + if ((afi == AFI_IP) && (safi == SAFI_UNICAST)) + { + if (bgp_flag_check (bgp, BGP_FLAG_NO_DEFAULT_IPV4)) + { + vty_out (vty, " neighbor %s activate%s", addr, VTY_NEWLINE); + } + } + else + afi_header_vty_out (vty, afi, safi, write, + " neighbor %s activate%s", + addr, VTY_NEWLINE); } } |
