Browse Source

Workaround for Bugzilla #58.

hasso 16 years ago
parent
commit
2a56df976d
2 changed files with 6 additions and 0 deletions
  1. 4 0
      vtysh/ChangeLog
  2. 2 0
      vtysh/vtysh.c

+ 4 - 0
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

+ 2 - 0
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: