Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bgpd: Add support for BGP vrf route copying #13582

Closed
wants to merge 3 commits into from
Closed

bgpd: Add support for BGP vrf route copying #13582

wants to merge 3 commits into from

Commits on May 23, 2023

  1. doc: add new command 'redistribute vrf <VRFNAME>'

    Signed-off-by: Jack.Zhang <hanyu.zly@alibaba-inc.com>
    zice312963205 committed May 23, 2023
    Configuration menu
    Copy the full SHA
    7940e8e View commit details
    Browse the repository at this point in the history
  2. tests: add test for BGP vrf route copying behavior

    This commit adds a new test case.The new test case performs three
    operations:
    
     install routes in vrf1.
     set redistribute vrf vrf1 command on vrf2.
     check the copying routes by vrf1 in vrf2.
    
    Signed-off-by: Jack.Zhang <hanyu.zly@alibaba-inc.com>
    zice312963205 committed May 23, 2023
    Configuration menu
    Copy the full SHA
    f7b8af7 View commit details
    Browse the repository at this point in the history

Commits on Jun 26, 2023

  1. bgpd: Add support for BGP vrf route copying

        Example configuration:
            router bgp 100 vrf vrf-1
             address-family ipv4 unicast
              rd vpn export 1:1
              rt vpn both 1:1
              export vpn
              import vpn
              redistribute vrf vrf-2
             exit-address-family
             !
            !
            router bgp 100 vrf vrf-2
             neighbor 2.2.2.2 remote-as 1
             address-family ipv4 unicast
              rd vpn export 2:2
              rt vpn both 2:2
              neighbor 2.2.2.2 activate
             exit-address-family
             !
            !
        BGP routes learned from the neighbor 2.2.2.2 under VRF-1 can be directly copied to the BGP under VRF-1 without carrying the RD and RT attributes of VRF-1.
        After being copied to VRF-1, the routes will be sent to VPN with the RD 1:1 and RT 1:1 attributes, forming BGP-VPN routes.
    
    Signed-off-by: Jack.Zhang <hanyu.zly@alibaba-inc.com>
    zice312963205 committed Jun 26, 2023
    Configuration menu
    Copy the full SHA
    5857e92 View commit details
    Browse the repository at this point in the history