16.03.2014 Views

Policy Framework Configuration Guide - Juniper Networks

Policy Framework Configuration Guide - Juniper Networks

Policy Framework Configuration Guide - Juniper Networks

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 3: Routing <strong>Policy</strong> <strong>Configuration</strong> Statements<br />

protocols] hierarchy level, you can define a chain of policy names that are evaluated in<br />

order.<br />

Minimum Subroutine <strong>Configuration</strong><br />

[edit]<br />

policy-options {<br />

policy-statement policy-name {<br />

term term-name {<br />

from {<br />

family family-name;<br />

match-conditions;<br />

prefix-list name;<br />

route-filter destination-prefix match-type ;<br />

source-address-filter source-prefix match-type ;<br />

}<br />

to {<br />

match-conditions;<br />

}<br />

then actions;<br />

}<br />

}<br />

policy-statement policy-name {<br />

term term-name {<br />

from {<br />

family family-name;<br />

match-conditions;<br />

prefix-list name;<br />

route-filter destination-prefix match-type ;<br />

source-address-filter source-prefix match-type ;<br />

}<br />

to {<br />

match-conditions;<br />

}<br />

then actions;<br />

}<br />

}<br />

prefix-list name {<br />

ip-addresses;<br />

}<br />

}<br />

protocols {<br />

protocol-name {<br />

import [ policy-names ];<br />

export [ policy-names ];<br />

}<br />

}<br />

To configure a routing policy that calls a subroutine from another routing policy, you must<br />

include at least the following statements at the [edit policy-options] and [edit protocols]<br />

hierarchy levels. At the [edit protocols protocol-name (export | import)] hierarchy levels,<br />

you can specify one or more policy names.<br />

[edit]<br />

policy-options {<br />

Copyright © 2010, <strong>Juniper</strong> <strong>Networks</strong>, Inc.<br />

37

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!