Both inbound and outbound label binding filtering are supported. Inbound filtering allows a route policy to control the label bindings 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:
neighbor
Match on bindings received from the specified peer.
interface
Match on bindings received from a neighbor or neighbors adjacent over the specified interface.
prefix list
Match on bindings with the specified prefix/prefixes.
Outbound filtering allows a route policy to control the set of LDP label bindings advertised by the LSR. An export policy can control the set of LDP label bindings advertised by the router. By default, label bindings for only the system address are advertised and propagate all FECs that are received.
Matches can be based on:
loopback - loopback interfaces
all - all local subnets
match - match on bindings with the specified prefix/prefixes
Use the following syntax to apply import and export policies.
config>router>ldp
export policy-name [policy-name...(upto 32 max)]
import policy-name [policy-name...(upto 32 max)]