summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhasso <hasso>2005-04-09 13:07:47 +0000
committerhasso <hasso>2005-04-09 13:07:47 +0000
commita8a80d532f3248567b6926b5dbd12509eadd6b43 (patch)
treeb3b42ef7f78c62fb0c1edddd7c0272950883c14c
parent67bf16c0f8179af05bcff04d19226866a8b7e806 (diff)
* bgp_vty.c: Make "exit-address-family" work in IPv4 unicast address
family node. [backport candidate]
-rw-r--r--bgpd/ChangeLog5
-rw-r--r--bgpd/bgp_vty.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/bgpd/ChangeLog b/bgpd/ChangeLog
index 6dc1e7e0..f90bed9d 100644
--- a/bgpd/ChangeLog
+++ b/bgpd/ChangeLog
@@ -1,3 +1,8 @@
+2005-04-09 Akihiro Mizutani <mizutani@net-chef.net>
+
+ * bgp_vty.c: Make "exit-address-family" work in IPv4 unicast address
+ family node.
+
2005-04-08 Martin Ling <martin-quagga@earth.li>
* bgp_aspath.[ch], bgp_route.c, bgp_vty.c, bgpd.[ch]: Allow to enable
diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c
index f7a41f5b..06c4abdb 100644
--- a/bgpd/bgp_vty.c
+++ b/bgpd/bgp_vty.c
@@ -3954,7 +3954,8 @@ DEFUN (exit_address_family,
"exit-address-family",
"Exit from Address Family configuration mode\n")
{
- if (vty->node == BGP_IPV4M_NODE
+ if (vty->node == BGP_IPV4_NODE
+ || vty->node == BGP_IPV4M_NODE
|| vty->node == BGP_VPNV4_NODE
|| vty->node == BGP_IPV6_NODE)
vty->node = BGP_NODE;