summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Walton <dwalton@cumulusnetworks.com>2016-08-17 00:22:12 +0000
committerDaniel Walton <dwalton@cumulusnetworks.com>2016-08-17 00:22:12 +0000
commita94d98ae98ec45e34de287daf4c9d16be3ea62b9 (patch)
tree0ced273e9e8509fea79e63dc0453951c3be4b85c
parent8ca1689f1967c09d418ab68ec054f3c449a9ad45 (diff)
BGP: neighbor activate lines for ipv4 unicast are not in the sub context
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com> Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com> Ticket: CM-12080
-rw-r--r--bgpd/bgpd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/bgpd/bgpd.c b/bgpd/bgpd.c
index 1a5270874c..a6265ad8ba 100644
--- a/bgpd/bgpd.c
+++ b/bgpd/bgpd.c
@@ -6727,7 +6727,9 @@ bgp_config_write_peer_af (struct vty *vty, struct bgp *bgp,
{
if (bgp_flag_check (bgp, BGP_FLAG_NO_DEFAULT_IPV4))
{
- vty_out (vty, " neighbor %s activate%s", addr, VTY_NEWLINE);
+ afi_header_vty_out(vty, afi, safi, write,
+ " neighbor %s activate%s",
+ addr, VTY_NEWLINE);
}
}
else