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 4: Routing <strong>Policy</strong> <strong>Configuration</strong><br />

policy-statement policy-statement-name {<br />

dynamic-db;<br />

}<br />

You can also define specific policy objects based on the configuration of these objects<br />

in the dynamic database. To define a policy object based on the dynamic database,<br />

include the dynamic-db statement with the following statements at the [edit<br />

policy-options] hierarchy level:<br />

• as-path name<br />

• as-path-group group-name<br />

• community community-name<br />

• condition condition-name<br />

• prefix-list prefix-list-name<br />

In the standard configuration, you can also define a routing policy that references any<br />

policy object you have configured in the standard configuration that references an object<br />

configured in the dynamic database.<br />

For example, in standard configuration mode, you configure a prefix list prefix-list pl2<br />

that references a prefix list, also named prefix-list pl2, that has been configured in the<br />

dynamic database:<br />

[edit policy-options]<br />

prefix-list pl2 {<br />

dynamic-db; # Reference a prefix list configured in the dynamic database.<br />

}<br />

You then configure a routing policy in the standard configuration that includes prefix-list<br />

pl2:<br />

[edit policy-options]<br />

policy-statement one {<br />

term term1 {<br />

from {<br />

prefix-list pl2; # Include the prefix list configured in the standard configuration<br />

# database, but which references a prefix list configured in the dynamic database.<br />

}<br />

then accept;<br />

}<br />

then reject;<br />

}<br />

If you need to update the configuration of prefix-list pl2, you do so in the dynamic database<br />

configuration using the [edit dynamic] hierarchy level. This enables you to make commit<br />

configuration changes to the prefix list more quickly than you can in the standard<br />

configuration database.<br />

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

67

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

Saved successfully!

Ooh no, something went wrong!