[Xorp-cvs] XORP cvs commit: xorp/cli
Pavlin Radoslavov
pavlin@icir.org
Thu, 28 Jul 2005 06:16:48 GMT
CVSROOT: /usr/local/share/doc/apache/cvs
Module name: xorp
Changes by: pavlin@xorpc.icir.org 2005-07-28 06:16:47 UTC
XORP CVS repository
Modified files:
cli cli_client.cc
Log message:
Fix some of the logic for assembling the command_global_name
while we search for a match. Now the result is much closer to
the previous result before the "wildcard" commands were introduced.
This fixes a "create foo" bug where the "create" command wasn't
recognized.
Apparently, the RouterCLI::text_entry_func() doesn't expect
that the first token of the command global name is "create".
To complicate things further, the CliCommand entry for "create"
has name of "create", but its global name (i.e., full path name)
is empty.
As a result of that we need to be extra careful inside
CliClient::process_command() how exactly the full-path command
name is assembled. Sigh...
Bug found by: Michael Larson <mike AT lrlart.com>
Revision Changes Path
1.37 +13 -4; commitid: f7d342e876c97ea6; xorp/cli/cli_client.cc