the command `import vrf XXX` under the address family in bgp tells bgp to take the routes in vrf X that are in that afi safi and to import them into this bgp vrf afi safi. the `match source-vrf XXX` command allows you to look at the originating vrf for when you are making a route-map decision. donald On Wed, Nov 13, 2019 at 9:19 PM <Bing.S@dell.com> wrote:
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
_______________________________________________ frog mailing list frog@lists.frrouting.org https://lists.frrouting.org/listinfo/frog