If you specify the trace action, the match is logged to a trace file. To set up a trace file, you must specify the following elements in the global traceoptions statement:
For more information about the global traceoptions statement, see the JUNOS Routing Protocols Configuration Guide.
The following example uses the trace filename of policy-log:
- [edit]
- routing-options {
-
- traceoptions {
- file “policy-log";
- flag policy;
- }
- }
This action does not affect the flow control during routing policy evaluation.
If a term that specifies a trace action also specifies a flow control action, the name of the term will be logged in the trace file. If a term specifies a trace action only, the word <default> only will be logged.