No subject
Tue Jun 1 20:57:32 2004
Return-Path: xorp-cvs-admin@icir.org
Delivery-Date: Tue, 01 Jun 2004 20:58:01 -0700
Received: from wyvern.icir.org (wyvern.icir.org [192.150.187.14])
by tigger.icir.org (8.12.9p1/8.12.8) with ESMTP id i523w1NG093859
for <atanu@tigger.icir.org>; Tue, 1 Jun 2004 20:58:01 -0700 (PDT)
(envelope-from xorp-cvs-admin@icir.org)
Received: from fruitcake.icsi.Berkeley.EDU (fruitcake.ICSI.Berkeley.EDU [192.150.186.11])
by wyvern.icir.org (8.12.9p1/8.12.8) with ESMTP id i523w0PA091204
for <atanu@icir.org>; Tue, 1 Jun 2004 20:58:01 -0700 (PDT)
(envelope-from xorp-cvs-admin@icir.org)
Received: from fruitcake.icsi.Berkeley.EDU (localhost [127.0.0.1])
by fruitcake.icsi.Berkeley.EDU (8.12.10/8.12.9) with ESMTP id i523w0Yq024230;
Tue, 1 Jun 2004 20:58:00 -0700 (PDT)
Received: from wyvern.icir.org (wyvern.icir.org [192.150.187.14])
by fruitcake.icsi.Berkeley.EDU (8.12.10/8.12.9) with ESMTP id i523vWYq024222
for <xorp-cvs@icsi.berkeley.edu>; Tue, 1 Jun 2004 20:57:32 -0700 (PDT)
Received: from xorpc.icir.org (xorpc.icir.org [192.150.187.68])
by wyvern.icir.org (8.12.9p1/8.12.8) with ESMTP id i523vWPA091197
for <xorp-cvs@icir.org>; Tue, 1 Jun 2004 20:57:32 -0700 (PDT)
(envelope-from pavlin@icir.org)
Received: from xorpc.icir.org (localhost [127.0.0.1])
by xorpc.icir.org (8.12.9p1/8.12.8) with ESMTP id i523vWgd037139
for <xorp-cvs@icir.org>; Tue, 1 Jun 2004 20:57:32 -0700 (PDT)
(envelope-from pavlin@xorpc.icir.org)
Received: (from pavlin@localhost)
by xorpc.icir.org (8.12.9p1/8.12.3/Submit) id i523vWOw037138;
Tue, 1 Jun 2004 20:57:32 -0700 (PDT)
(envelope-from pavlin)
From: Pavlin Radoslavov <pavlin@icir.org>
Message-Id: <200406020357.i523vWOw037138@xorpc.icir.org>
Date: Tue, 1 Jun 2004 20:57:32 ()
To: xorp-cvs@icir.org
Reply-To: pavlin@icir.org
Subject: [Xorp-cvs] XORP cvs commit: xorp/rtrmgr/ cli.cc op_commands.cc op_commands.hh
Sender: xorp-cvs-admin@icir.org
Errors-To: xorp-cvs-admin@icir.org
X-BeenThere: xorp-cvs@icir.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:xorp-cvs-request@icir.org?subject=help>
List-Post: <mailto:xorp-cvs@icir.org>
List-Subscribe: <http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-cvs>,
<mailto:xorp-cvs-request@icir.org?subject=subscribe>
List-Id: Mailing list for XORP CVS commit messages <xorp-cvs.icir.org>
List-Unsubscribe: <http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-cvs>,
<mailto:xorp-cvs-request@icir.org?subject=unsubscribe>
CVSROOT: /usr/local/share/doc/apache/cvs
Module name: xorp
Repository: xorp/rtrmgr/
Changes by: pavlin@xorpc.icir.org. 04/06/01 20:57:32
Modified files:
xorp/rtrmgr/: cli.cc op_commands.cc op_commands.hh
Log message:
* Bugfix in executing the correct operational commands:
Originally, OpCommandList::prefix_matches() and
OpCommand::prefix_matches() were used to find the particular
operational command to execute. However, the search is prefix-based,
and doesn't do exact matching.
For example, if the template file contains an entry for command
"show foo bar", and then an entry for "show foo", if the user
types "show foo", the executed command is actually the one that
corresponds to the "show foo bar" command, which is wrong.
The solution is to rename prefix_matches() to command_match()
and to use an extra third argument to it "bool exact_match"
which specifies whether we are looking for exact match or
for a prefix match.
* Bugfix in OpCommandList::top_level_commands() in creating
the map of top-level commands.
_______________________________________________
Xorp-cvs mailing list
Xorp-cvs@icir.org
http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-cvs