Applying Import and Export Policies

Inbound filtering (import policy) allows a route policy to control the label bindings that an LSR accepts from its peers. An import policy can accept or reject label bindings received from LDP peers. Label bindings can be filtered based on the following:

Outbound filtering (export policy) allows a route policy to control the label bindings advertised by the LSR to its peers. Label bindings can be filtered based on the following:

Import or export policies must already exist before they are applied to LDP. Policies are configured in the config>router>policy-options context. See the ‟Route Policies” section in the 7705 SAR Router Configuration Guide for details.

Note:

Use the following CLI syntax to apply import or export policies:

CLI Syntax:
config>router>ldp
    import policy-name [policy-name...(up to 5 max)]
    export policy-name [policy-name...(up to 5 max)]
Example:
config>router>ldp
config>router>ldp# import LDP-import
config>router>ldp# export LDP-export
config>router>ldp# exit
config>router# 

The following example displays the import and export policy configuration output.

ALU-1>config>router>ldp# info
----------------------------------------------
            export "LDP-export"
            import "LDP-import"
            interface-parameters
            exit
            targeted-session
            exit
----------------------------------------------