summaryrefslogtreecommitdiff
path: root/bgpd/bgp_vty.c
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 /bgpd/bgp_vty.c
parent67bf16c0f8179af05bcff04d19226866a8b7e806 (diff)
* bgp_vty.c: Make "exit-address-family" work in IPv4 unicast address
family node. [backport candidate]
Diffstat (limited to 'bgpd/bgp_vty.c')
-rw-r--r--bgpd/bgp_vty.c3
1 files changed, 2 insertions, 1 deletions
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;