summaryrefslogtreecommitdiffstats
path: root/vtysh
diff options
context:
space:
mode:
authorhasso <hasso>2005-01-16 23:31:54 +0000
committerhasso <hasso>2005-01-16 23:31:54 +0000
commitdab45eeed68d0a63c4843699a86bdf10e2ec9db4 (patch)
tree9c5da5cce377aa38c60f3f5f62632e7b35bd40ec /vtysh
parentd71a3efe0bd0d9fb9b17b795f8e59bdd97c4406a (diff)
downloadquagga-dab45eeed68d0a63c4843699a86bdf10e2ec9db4.tar.bz2
quagga-dab45eeed68d0a63c4843699a86bdf10e2ec9db4.tar.xz
* command.[ch], vty.c: cmd_execute_command() function must not attempt
to walk up in the node tree if called from vtysh. Different daemons might have commands with same syntax in different nodes (for example "router-id x.x.x.x" commands in zebra/ospfd/ospf6d daemons). * vtysh.c: Reflect changes in lib. cmd_execute_command() should know now that it's called from vtysh and must not attempt to walk up in the node tree. [pullup candidate]
Diffstat (limited to 'vtysh')
-rw-r--r--vtysh/ChangeLog6
-rw-r--r--vtysh/vtysh.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/vtysh/ChangeLog b/vtysh/ChangeLog
index de0b1a80..d0cd068e 100644
--- a/vtysh/ChangeLog
+++ b/vtysh/ChangeLog
@@ -1,3 +1,9 @@
+2005-01-10 Hasso Tepper <hasso at quagga.net>
+
+ * vtysh.c: Reflect changes in lib. cmd_execute_command() should know
+ now that it's called from vtysh and must not attempt to walk up in
+ the node tree.
+
2004-12-22 Hasso Tepper <hasso at quagga.net>
* vtysh_config.c: No delimiter between "ip forwarding" and "ipv6
diff --git a/vtysh/vtysh.c b/vtysh/vtysh.c
index 04d9d7d2..6ece45f8 100644
--- a/vtysh/vtysh.c
+++ b/vtysh/vtysh.c
@@ -262,7 +262,7 @@ vtysh_execute_func (const char *line, int pager)
if (vline == NULL)
return;
- ret = cmd_execute_command (vline, vty, &cmd);
+ ret = cmd_execute_command (vline, vty, &cmd, 1);
cmd_free_strvec (vline);
@@ -340,7 +340,7 @@ vtysh_execute_func (const char *line, int pager)
return;
}
- ret = cmd_execute_command (vline, vty, &cmd);
+ ret = cmd_execute_command (vline, vty, &cmd, 1);
cmd_free_strvec (vline);
if (ret != CMD_SUCCESS_DAEMON)
break;