]> git.puffer.fish Git - mirror/frr.git/commitdiff
[vtysh] bug #371: vtysh forgets to print 'end' for write-terminal
authorPaul Jakma <paul.jakma@sun.com>
Wed, 20 Jun 2007 15:22:14 +0000 (15:22 +0000)
committerPaul Jakma <paul.jakma@sun.com>
Wed, 20 Jun 2007 15:22:14 +0000 (15:22 +0000)
2007-06-20 Nicolas Deffayet <nicolas@deffayet.com>

* vtysh.c: (vtysh_write_terminal) Write 'end' when done,
  to be consistent with telnet vty, and expected by tools
  like rancid.

vtysh/ChangeLog
vtysh/vtysh.c

index a582b959e278bd9468c05310e5f20c46fc6fa56c..f2ba3332603f55fe5cd7d7a30b39639f65f3910d 100644 (file)
@@ -1,3 +1,9 @@
+2007-06-20 Nicolas Deffayet <nicolas@deffayet.com>
+
+       * vtysh.c: (vtysh_write_terminal) Write 'end' when done,
+         to be consistent with telnet vty, and expected by tools
+         like rancid.
+
 2007-05-01 David L Stevens <dlstevens@us.ibm.com>
 
        * vtysh/extract.pl.in: added VTYSH_ZEBRA flag for route-map and
index 777a7ac26b2852deb03e76dd0f83c0cbe719d684..c7efa91bd44335e45dee7f25e1d01460546fa6af 100644 (file)
@@ -1709,6 +1709,8 @@ DEFUN (vtysh_write_terminal,
 
   vtysh_config_dump (fp);
 
+  vty_out (vty, "end%s", VTY_NEWLINE);
+  
   if (vtysh_pager_name && fp)
     {
       fflush (fp);