diff options
author | Paul Jakma <paul.jakma@sun.com> | 2007-06-20 17:22:14 +0200 |
---|---|---|
committer | Paul Jakma <paul.jakma@sun.com> | 2007-06-20 17:22:14 +0200 |
commit | 8454b05606c906cff891fa97b4395d1e2fdb8cde (patch) | |
tree | 9908b74798beb00964ae590402d6b59771cb7466 /vtysh | |
parent | [bgpd] bug #370, default-originate was broken by a silly thinko (diff) | |
download | frr-8454b05606c906cff891fa97b4395d1e2fdb8cde.tar.xz frr-8454b05606c906cff891fa97b4395d1e2fdb8cde.zip |
[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.
Diffstat (limited to 'vtysh')
-rw-r--r-- | vtysh/ChangeLog | 6 | ||||
-rw-r--r-- | vtysh/vtysh.c | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/vtysh/ChangeLog b/vtysh/ChangeLog index a582b959e..f2ba33326 100644 --- a/vtysh/ChangeLog +++ b/vtysh/ChangeLog @@ -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 diff --git a/vtysh/vtysh.c b/vtysh/vtysh.c index 777a7ac26..c7efa91bd 100644 --- a/vtysh/vtysh.c +++ b/vtysh/vtysh.c @@ -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); |