No subject
Fri Oct 29 01:10:06 2004
Return-Path: xorp-cvs-admin@icir.org
Delivery-Date: Thu, 28 Oct 2004 18:11:01 -0700
Received: from wyvern.icir.org (wyvern.icir.org [192.150.187.14])
by tigger.icir.org (8.12.11/8.12.8) with ESMTP id i9T1B1Jk032030
for <atanu@tigger.icir.org>; Thu, 28 Oct 2004 18:11: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 i9T1B09l006913
for <atanu@icir.org>; Thu, 28 Oct 2004 18:11: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 i9T1B0N1010673;
Thu, 28 Oct 2004 18:11: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 i9T1A6N1010651
for <xorp-cvs@icsi.berkeley.edu>; Thu, 28 Oct 2004 18:10:06 -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 i9T1A69l006878
for <xorp-cvs@icir.org>; Thu, 28 Oct 2004 18:10:06 -0700 (PDT)
(envelope-from bms@icir.org)
Received: from xorpc.icir.org (localhost [127.0.0.1])
by xorpc.icir.org (8.12.11/8.12.8) with ESMTP id i9T1A6A1075741
for <xorp-cvs@icir.org>; Thu, 28 Oct 2004 18:10:06 -0700 (PDT)
(envelope-from bms@xorpc.icir.org)
Received: (from bms@localhost)
by xorpc.icir.org (8.12.11/8.12.3/Submit) id i9T1A6YL075740
for xorp-cvs@icir.org; Fri, 29 Oct 2004 01:10:06 GMT
(envelope-from bms)
Date: Fri, 29 Oct 2004 01:10:06 GMT
From: Bruce Simpson <bms@icir.org>
Message-Id: <200410290110.i9T1A6YL075740@xorpc.icir.org>
To: xorp-cvs@icir.org
X-XORP-CVS-Branch: HEAD
Subject: [Xorp-cvs] XORP cvs commit: xorp/rib
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/www/data/cvs
Module name: xorp
Changes by: bms@xorpc.icir.org 2004-10-29 01:10:06 UTC
XORP CVS repository
Modified files:
rib commands parser.hh parser_direct_cmds.hh rib.cc
rib.hh test_register.cc
Log message:
Improve RIB regression testing in preparation for blackhole routes.
Expand the RIB's verify_route() syntax to determine if a given destination
has no route, has an IP family route, or has a route whose next-hop is
a DiscardNextHop (i.e. is a blackhole route).
As a pleasant side-effect, we eliminate the special-casing of the vifname
field whereby we would check for a non-existent interface called 'discard'.
This was also somewhat misleading as the condition being checked for was
in fact the absence of a route for the given destination.
Apply the following substitutions to the 'commands' script used to
drive the RIB regression tests to make use of the new syntax:
1)
verify
becomes
verify ip
2)
^route verify ip \([0-9.]*\) discard \(.*\)
becomes
route verify miss \1 lo0 0.0.0.0 0
Apply the following regexps to test_register.cc:
1)
test_route_range("\([0-9.]*\)", \(.*\)
becomes
test_route_range("\1", "ip", \2
2)
test_route_range("\([0-9.]*\)", "ip", "discard", \(.*\)
becomes
test_route_range("\1", "miss", "lo0", \2
Revision Changes Path
1.4 +165 -165 xorp/rib/commands
1.12 +10 -7 xorp/rib/parser.hh
1.14 +33 -5 xorp/rib/parser_direct_cmds.hh
1.41 +21 -6 xorp/rib/rib.cc
1.27 +17 -4 xorp/rib/rib.hh
1.18 +45 -23 xorp/rib/test_register.cc
_______________________________________________
Xorp-cvs mailing list
Xorp-cvs@icir.org
http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-cvs