[Xorp-cvs] XORP cvs commit: xorp/policy
Pavlin Radoslavov
pavlin@icir.org
Thu, 6 Apr 2006 00:27:57 GMT
CVSROOT: /usr/local/share/doc/apache/cvs
Module name: xorp
Changes by: pavlin@xorpc.icir.org 2006-04-06 00:27:57 UTC
XORP CVS repository
Modified files:
policy node.hh node_base.hh source_match_code_generator.cc
Log message:
Fix the mechanism for generating the code for source blocks:
generate first the source block for the protocol statement,
because the protocol value is needed by the processing of other
statements.
Previously, if we use xorpsh to add a "protocol" statement in the
"from" block of an export policy, there is no guarantee the
"protocol" statement will be first in "from" block. Hence,
when the policy manager processes all statements, it may return
an error when processing the statements before the "protocol"
statement.
The only way we could guarantee the "protocol" statement is first
is by moving all policy statements from "bgp.tp", "rip.tp", etc.
to "policy.tp" and then declare the "protocol" statement template
as the very first one in the "from" block.
This fixes Bugzilla entry #339
Bugzilla URL: http://www.xorp.org/bugzilla/show_bug.cgi?id=339
Revision Changes Path
1.8 +6 -1; commitid: fe944345f2f7ea6; xorp/policy/node.hh
1.4 +6 -1; commitid: fe944345f2f7ea6; xorp/policy/node_base.hh
1.9 +19 -2; commitid: fe944345f2f7ea6; xorp/policy/source_match_code_generator.cc