Figure 10 shows how a subroutine is evaluated. The subroutine is included in the first term of the first routing policy in a chain. Each route is evaluated against the subroutine as follows:
If the subroutine does not specify the accept, reject or next-policy action, it uses the accept or reject action specified by the default policy, and the values of TRUE or FALSE are returned to the calling policy as described in the previous paragraph. (For information about what happens if a termination action is not specified in the term, see Termination Actions. For more information about the default routing policies, see Default Routing Policies and Actions.)
![]() |
Note: If you specify a policy chain as a subroutine, the entire chain acts as a single subroutine. As with other chains, the action specified by the default policy is taken only when the entire chain does not accept or reject a route. |
![]() |
Note: If a term defines multiple match conditions, including a subroutine, and a route does not match a condition specified before the subroutine, the evaluation of the term ends and the subroutine is not called and evaluated. In this situation, an action specified in the subroutine that manipulates a route’s characteristics is not implemented. |
Figure 10: Routing Policy Subroutine Evaluation
