# Configure the type codes of OSPF extended community attributes Domain ID, Router ID, and Route
Type as 0x8005, 0x8001, and 0x8000, for OSPF process 100.
[Sysname] ospf 100
[Sysname-ospf-100] ext-community-type domain-id 8005
[Sysname-ospf-100] ext-community-type router-id 8001
[Sysname-ospf-100] ext-community-type route-type 8000
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.
import route-policy route-policy
undo import route-policy
No import routing policy is applied to a VPN instance. All routes matching the import target attribute are
VPN instance view, IPv4 VPN view, IPv6 VPN view
Predefined user roles
route-policy: Specifies the name of a routing policy, a case-sensitive string of 1 to 63 characters.
Use this command to apply a routing policy to a VPN instance for more precise and flexible route
reception of the VPN instance. When the device receives routes of the VPN instance, it filters the received
routes and modifies attributes for the received routes according to the specified routing policy.
If you execute this command multiple times, the most recent configuration takes effect.
A routing policy specified in VPN instance view applies to both the IPv4 VPN and IPv6 VPN. A routing
policy specified in IPv4 VPN view applies only to the IPv4 VPN. A routing policy specified in IPv6 VPN
view applies only to the IPv6 VPN.
A routing policy specified in IPv4 VPN view or IPv6 view takes precedence over that specified in VPN
instance view. If you specify a routing policy in both IPv4 VPN view (or IPv6 VPN view) and VPN instance
view, the IPv4 VPN (IPv6 VPN) uses the policy specified in IPv4 VPN view (IPv6 VPN view).
# Apply import routing policy poly-1 to VPN instance vpn1.
[Sysname] ip vpn-instance vpn1
[Sysname-vpn-instance-vpn1] import route-policy poly-1