R3303-HP HSR6800 Routers MPLS Command Reference

313
[Sysname-bgp] ipv4-family vpnv4
[Sysname-bgp-af-vpnv4] filter-policy 2255 import
import route-policy (VPN instance view/IPv4 VPN view)
Use import route-policy to apply a routing policy to filter incoming routes for the VPN instance. Such a
routing policy is referred to as an import routing policy.
Use undo import route-policy to remove the application.
Syntax
import route-policy route-policy
undo import route-policy
Default
All routes matching the import target attribute are accepted.
Views
VPN instance view, IPv4 VPN view
Default command level
2: System level
Parameters
route-policy: Specifies the name of a routing policy, a case-sensitive string of 1 to 63 characters.
Usage guidelines
You can specify an import routing policy when the route redistribution control provided by the extended
community attributes is not enough.
An import routing policy specified in VPN instance view applies to both the IPv4 VPN and IPv6 VPN.
An import routing policy specified in IPv4 VPN view applies to only the IPv4 VPN.
An import routing policy specified in IPv4 VPN view takes precedence over that specified in VPN
instance view. If you specify an import routing policy in both IPv4 VPN view and VPN instance view, the
IPv4 VPN uses the policy specified in IPv4 VPN view.
Examples
# Apply import routing policy poly-1 to VPN instance vpn1.
<Sysname> system-view
[Sysname] ip vpn-instance vpn1
[Sysname-vpn-instance-vpn1] import route-policy poly-1
[Sysname-vpn-instance-vpn1] quit
# Apply import routing policy poly-2 to the IPv4 VPN of VPN instance vpn2.
<Sysname> system-view
[Sysname] ip vpn-instance vpn2
[Sysname-vpn-instance-vpn2] ipv4-family
[Sysname-vpn-ipv4-vpn2] import route-policy poly-2