To configure a routing policy that calls a subroutine from another routing policy, you must include at least the following statements at the
[edit policy-options]and[edit protocols]hierarchy levels. At the[edit protocols]hierarchy level, you can define one or more policy names.[edit]policy-options {policy-statementsubroutine-policy-name{termterm-name{from {family family-name;match-conditions;prefix-listname;route-filterdestination-prefix match-type<actions>;source-address-filterdestination-prefix match-type<actions>;}to {match-conditions;}thenactions;}}policy-statementpolicy-name{termterm-name{from {family family-name;policysubroutine-policy-name;}to {policysubroutine-policy-name;}thenactions;}}}protocols {protocol-name{import [policy-names];export [policy-names];}}