Hi,

 

Is there any difference between “import vrf <vrf_name>” and “match source-vrf <vrf_name>”

 

For example

route-map myMap permit 1

        match ip address prefix-list p1

 

option1:

    having “match source-vrf” in the same myMap

  

   route-map myMap permit 1

        match ip address prefix-list p1

        match source-vrf Vrf_red

 

  for vrf_blue:

       address-familiy ipv4 unicast

               route-map vpn import myMap

               rt vpn import 1111:11

               import vpn

 

option2:

    do not have “match source-vrf” in the myMap

   

       route-map myMap permit 1

            match ip address prefix-list p1

 

    for vrf_blue:

        

        address-family ipv4 unicast

               import vrf route-map myMap

               import vrf Vrf_red

 

What is the  difference in terms of routes filtering between the 2 options?

 

Thanks,

Bing