[Xorp-cvs] XORP cvs commit: xorp/etc/templates xorp/policy

Andrea Bittau abittau at icir.org
Wed Aug 6 01:18:31 PDT 2008


CVSROOT:	/usr/local/www/data/cvs
Module name:	xorp
Changes by:	abittau at chum.icir.org	2008-08-06 08:18:31 UTC

XORP CVS repository


Modified files:
	etc/templates bgp.tp 
	policy        code_generator.cc lex.yy_policy_parser.cc node.hh 
	              policy.l policy.y visitor_printer.cc 
	              visitor_semantic.cc visitor_semantic.hh 
	              yacc.yy_policy_parser.cc yacc.yy_policy_parser.cc.h 

Log message:
	Allow subtraction and addition to the localpref property.  I've implemented it
	the "hard way" but I think it makes things much prettier now.  You can have the
	following in the configuration:
	
	localpref: 123
	localpref add 1
	localpref sub 1
	
	rather than the hacky:
	localpref: 123
	localpref-add: 1
	localpref-sub: 1
	
	With this patch, we can apply similar operators to other things such as aspath,
	community, etc.  I.e., no need for a specialy leaf such as aspath-prepend - we
	can have aspath and aspath add.

Revision  Changes                                    Path
1.97      +4 -3;  commitid: 881348995e4e41a7;        xorp/etc/templates/bgp.tp
1.17      +10 -1;  commitid: 881348995e4e41a7;       xorp/policy/code_generator.cc
1.18      +2479 -2351;  commitid: 881348995e4e41a7;  xorp/policy/lex.yy_policy_parser.cc
1.14      +10 -6;  commitid: 881348995e4e41a7;       xorp/policy/node.hh
1.17      +4 -1;  commitid: 881348995e4e41a7;        xorp/policy/policy.l
1.14      +19 -6;  commitid: 881348995e4e41a7;       xorp/policy/policy.y
1.10      +9 -2;  commitid: 881348995e4e41a7;        xorp/policy/visitor_printer.cc
1.20      +19 -5;  commitid: 881348995e4e41a7;       xorp/policy/visitor_semantic.cc
1.14      +5 -3;  commitid: 881348995e4e41a7;        xorp/policy/visitor_semantic.hh
1.19      +272 -244;  commitid: 881348995e4e41a7;    xorp/policy/yacc.yy_policy_parser.cc
1.10      +26 -23;  commitid: 881348995e4e41a7;      xorp/policy/yacc.yy_policy_parser.cc.h



More information about the Xorp-cvs mailing list