[ Contents] [ Prev] [ Next] [ Index] [ Report an Error]

Routing Policy Tests

After you have created a routing policy, you can use the test policy command to ensure that the policy produces the results that you expect before applying the policy in a live environment. This command determines whether the routes specified in your routing policy are accepted or rejected. The default action of the test policy command is accept.

Note: The default policy of the test policy command accepts all routes from all protocols. Test output can be misleading when you are evaluating protocol-specific conditions.

For example, if you define a policy for BGP that accepts routes of a specified prefix and apply it to BGP as an export policy, BGP routes that match the prefix are advertised to BGP peers. However, if you test the same policy using the test policy command, the test output might indicate that non-BGP routes have been accepted.


[ Contents] [ Prev] [ Next] [ Index] [ Report an Error]