The import route-policy command associates an EVPN instance with an import routing policy.
The undo import route-policy command disassociates an EVPN instance with an import routing policy.
By default, an EVPN instance is not associated with any import routing policy.
Usage Scenario
By default, an EVPN instance matches the export VPN targets of received routes against its import VPN targets to determine whether to import these routes. To control route import more precisely, run the import route-policy command to associate the EVPN instance with an import routing policy and set attributes for eligible routes.
Prerequisites
An RD has been configured for the EVPN instance using the route-distinguisher command.
Configuration Impact
If the command is run more than once, the latest configuration overrides the previous one.
Precautions
If the specified routing policy does not exist, run the route-policy command to create the routing policy.
<HUAWEI> system-view [~HUAWEI] route-policy rp1 permit node 10 [*HUAWEI-route-policy] apply community 10:1 [*HUAWEI-route-policy] quit [*HUAWEI] evpn vpn-instance vrf bd-mode [*HUAWEI-evpn-instance-vrf] route-distinguisher 100:1 [*HUAWEI-evpn-instance-vrf] import route-policy rp1