summaryrefslogtreecommitdiff
path: root/vtysh/vtysh.c
diff options
context:
space:
mode:
authorChris Caputo <ccaputo@alt.net>2009-06-23 05:55:57 +0000
committerPaul Jakma <paul@quagga.net>2009-06-23 14:23:26 +0100
commit6e79f8bba438823d84b7464a9acc1e6fc9126a27 (patch)
tree5f9e004a78b0fddc59baf4e2666728837328fb52 /vtysh/vtysh.c
parent2b35ae41c2c5d39801c943fa740c72fc15613141 (diff)
Fix vtysh based "write term" output.
* vtysh/vtysh.c: "end" should be printed at the bottom, not the top. * vtysh/vtysh_config.c: PROTOCOL_NODE was not being handled, and thus was being displayed at the top of a config, rather than in its rightful place near the bottom. Signed-off-by: Chris Caputo <ccaputo@alt.net>
Diffstat (limited to 'vtysh/vtysh.c')
-rw-r--r--vtysh/vtysh.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vtysh/vtysh.c b/vtysh/vtysh.c
index bff06323..3f189adb 100644
--- a/vtysh/vtysh.c
+++ b/vtysh/vtysh.c
@@ -1722,8 +1722,6 @@ DEFUN (vtysh_write_terminal,
vtysh_config_dump (fp);
- vty_out (vty, "end%s", VTY_NEWLINE);
-
if (vtysh_pager_name && fp)
{
fflush (fp);
@@ -1735,6 +1733,8 @@ DEFUN (vtysh_write_terminal,
fp = NULL;
}
+ vty_out (vty, "end%s", VTY_NEWLINE);
+
return CMD_SUCCESS;
}