summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhasso <hasso>2004-05-09 23:16:40 +0000
committerhasso <hasso>2004-05-09 23:16:40 +0000
commit906d8c320dbb8bb342c98e7fe51356c4c57f817a (patch)
tree98eead078a37d3264e3a0eca3d79224c58ff61a0
parent67aadd099de0d5d77546e4f0c1f7921bde29adaa (diff)
downloadquagga-906d8c320dbb8bb342c98e7fe51356c4c57f817a.tar.bz2
quagga-906d8c320dbb8bb342c98e7fe51356c4c57f817a.tar.xz
Workaround for Bugzilla #58.
-rw-r--r--vtysh/ChangeLog4
-rw-r--r--vtysh/vtysh.c2
2 files changed, 6 insertions, 0 deletions
diff --git a/vtysh/ChangeLog b/vtysh/ChangeLog
index 8e2875bf..8e55786f 100644
--- a/vtysh/ChangeLog
+++ b/vtysh/ChangeLog
@@ -1,3 +1,7 @@
+2004-05-10 Hasso Tepper <hasso@estpak.ee>
+
+ * vtysh.c: Workaround for most hated vtysh bug - Bugzilla #58.
+
2004-04-06 Hasso Tepper <hasso@estpak.ee>
* vtysh_main.c: Don't save command to history if last command already
diff --git a/vtysh/vtysh.c b/vtysh/vtysh.c
index c92c6c46..9729d2ed 100644
--- a/vtysh/vtysh.c
+++ b/vtysh/vtysh.c
@@ -1040,6 +1040,8 @@ vtysh_exit (struct vty *vty)
case RMAP_NODE:
case VTY_NODE:
case KEYCHAIN_NODE:
+ vtysh_execute("end");
+ vtysh_execute("configure terminal");
vty->node = CONFIG_NODE;
break;
case BGP_VPNV4_NODE: