commit | 8454b05606c906cff891fa97b4395d1e2fdb8cde | [log] [tgz] |
---|---|---|
author | Paul Jakma <paul.jakma@sun.com> | Wed Jun 20 15:22:14 2007 +0000 |
committer | Paul Jakma <paul.jakma@sun.com> | Wed Jun 20 15:22:14 2007 +0000 |
tree | 9908b74798beb00964ae590402d6b59771cb7466 | |
parent | b24970241aa19c780a00f0e9c865b98c239a27f2 [diff] [blame] |
[vtysh] bug #371: vtysh forgets to print 'end' for write-terminal 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.
diff --git a/vtysh/vtysh.c b/vtysh/vtysh.c index 777a7ac..c7efa91 100644 --- a/vtysh/vtysh.c +++ b/vtysh/vtysh.c
@@ -1709,6 +1709,8 @@ vtysh_config_dump (fp); + vty_out (vty, "end%s", VTY_NEWLINE); + if (vtysh_pager_name && fp) { fflush (fp);