[Xorp-cvs] XORP cvs commit: xorp/cli xorp/rtrmgr
Pavlin Radoslavov
pavlin@icir.org
Thu, 28 Jul 2005 23:26:24 GMT
CVSROOT: /usr/local/share/doc/apache/cvs
Module name: xorp
Changes by: pavlin@xorpc.icir.org 2005-07-28 23:26:24 UTC
XORP CVS repository
Modified files:
cli cli_command.cc cli_command.hh cli_node.cc
cli_node_internal_commands.cc test_cli.cc
rtrmgr cli.cc
Log message:
* Add an extra "is_multilevel_command" argument/flag to the various
CliCommand::add_command() methods. Only if it is true, then
the "init_command_name" string is presumed to contain a command
name across multi-levels (e.g., "show a b c", where "c" is a
child of "b", and "b" is a child of "a").
Otherwise, it is presumed that "show a b c" is the name of
a child command.
* Change all the code elsewhere to use the new flag as appropriate.
This fixes a coredump problem when we use the following command
inside xorpsh:
create interfaces interface "foo bar"
Revision Changes Path
1.17 +28 -14; commitid: 150ae42e968597ea6; xorp/cli/cli_command.cc
1.15 +44 -18; commitid: 150ae42e968597ea6; xorp/cli/cli_command.hh
1.28 +4 -4; commitid: 150ae42e968597ea6; xorp/cli/cli_node.cc
1.13 +14 -6; commitid: 150ae42e968597ea6; xorp/cli/cli_node_internal_commands.cc
1.37 +21 -15; commitid: 150ae42e968597ea6; xorp/cli/test_cli.cc
1.88 +31 -24; commitid: 150ae42e968597ea6; xorp/rtrmgr/cli.cc