[FROG] import vrf <vrf_name> vs route-map match source-vrf <vrf_name>

Donald Sharp sharpd at cumulusnetworks.com
Thu Nov 14 07:26:03 EST 2019


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 at 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 at lists.frrouting.org
> https://lists.frrouting.org/listinfo/frog



More information about the frog mailing list