No subject
Tue May 25 21:24:33 2004
Return-Path: xorp-cvs-admin@icir.org
Delivery-Date: Tue, 25 May 2004 21:25: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 i4Q4P1NG064162
for <atanu@tigger.icir.org>; Tue, 25 May 2004 21:25: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 i4Q4P1PA075877
for <atanu@icir.org>; Tue, 25 May 2004 21:25: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 i4Q4P0Pb024697;
Tue, 25 May 2004 21:25: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 i4Q4OXPb024686
for <xorp-cvs@icsi.berkeley.edu>; Tue, 25 May 2004 21:24:33 -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 i4Q4OXPA075871
for <xorp-cvs@icir.org>; Tue, 25 May 2004 21:24:33 -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 i4Q4OXgd009738
for <xorp-cvs@icir.org>; Tue, 25 May 2004 21:24:33 -0700 (PDT)
(envelope-from pavlin@xorpc.icir.org)
Received: (from pavlin@localhost)
by xorpc.icir.org (8.12.9p1/8.12.3/Submit) id i4Q4OXpK009735;
Tue, 25 May 2004 21:24:33 -0700 (PDT)
(envelope-from pavlin)
From: Pavlin Radoslavov <pavlin@icir.org>
Message-Id: <200405260424.i4Q4OXpK009735@xorpc.icir.org>
Date: Tue, 25 May 2004 21:24:33 ()
To: xorp-cvs@icir.org
Reply-To: pavlin@icir.org
Subject: [Xorp-cvs] XORP cvs commit: xorp/rtrmgr/ op_commands.hh op_commands.cc op_commands.yy y.opcmd_tab.cc
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/05/25 21:24:33
Modified files:
xorp/rtrmgr/: op_commands.hh op_commands.cc op_commands.yy
y.opcmd_tab.cc
Log message:
Xorpsh operation command template related changes:
Implement support for specifying positional arguments
to the binary command. E.g., $0 is replaced with all
arguments, $1 is replaced with the first argument,
$2 is replaced with the second argument, etc.
For example, originally if the template is:
show interfaces $(interfaces.interface.*) {
%command: "fea/tools/show_interfaces" %help: HELP;
then when "fea/tools/show_interfaces" is called, xorpsh
will call it with three arguments: "show", "interfaces",
and the particular interface name.
With the new positional argument support the template
%command should explicitly contain $0 to suppy all arguments
as above:
show interfaces $(interfaces.interface.*) {
%command: "fea/tools/show_interfaces $0" %help: HELP;
If we want to call "show_interface" with argument "-i <iface_name>",
then the template should be:
show interfaces $(interfaces.interface.*) {
%command: "fea/tools/show_interfaces -i $3" %help: HELP;
_______________________________________________
Xorp-cvs mailing list
Xorp-cvs@icir.org
http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-cvs