-
Notifications
You must be signed in to change notification settings - Fork 707
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding the option to import IPv4/6 routes from VRF tables to the Glob…
…al table as EVPN Type 5 The current behavior is: For neighbors attached to VRFs, IPv4/6 routes are imported as VPNv4/6 to the Global RIB. For example: ``` root@9652c769b373:/go# gobgp vrf blue neighbor Peer AS Up/Down State |#Received Accepted 172.17.0.5 65001 00:00:48 Establ | 1 1 172.17.0.6 65001 00:00:48 Establ | 1 1 root@9652c769b373:/go# gobgp vrf blue neighbor Peer AS Up/Down State |#Received Accepted 172.17.0.5 65001 00:00:48 Establ | 1 1 172.17.0.6 65001 00:00:48 Establ | 1 1 root@9652c769b373:/go# gobgp vrf blue rib Network Next Hop AS_PATH Age Attrs * 10.0.0.0/24 172.17.0.5 00:01:50 [{Origin: ?} {LocalPref: 100}] root@9652c769b373:/go# gobgp vrf red rib Network Next Hop AS_PATH Age Attrs * 10.0.0.0/24 172.17.0.2 00:01:50 [{Origin: ?} {LocalPref: 100}] root@9652c769b373:/go# gobgp global rib -a vpnv4 Network Labels Next Hop AS_PATH Age Attrs *> 10:10:10.0.0.0/24 [0] 172.17.0.2 00:02:43 [{Origin: ?} {LocalPref: 100} {Extcomms: [10:10]}] *> 20:20:10.0.0.0/24 [0] 172.17.0.5 00:02:43 [{Origin: ?} {LocalPref: 100} {Extcomms: [20:20]}] ``` After this change, we can configure the VRF to convert to EVPN Type 5 (IP Prefix) instead of VPNv4/v6: ``` config file: ... ... [[vrfs]] [vrfs.config] name = "blue" rd = "20:20" both-rt-list = ["65000:200"] import-as-evpn-ipprefix = true routers-mac = "ca:fe:00:00:be:ef" ethernet-tag = 100 root@dc00a25785dd:/go# gobgp vrf Name RD Import RT Export RT Router's MAC ID Import as EVPN Ethernet Tag blue 20:20 20:20 20:20 ca:fe:00:00:fe:ed 0 true 200 red 10:10 10:10 10:10 ca:fe:00:00:be:ef 0 true 100 root@dc00a25785dd:/go# gobgp global rib -a evpn *> [type:Prefix][rd:20:20][etag:200][prefix:10.0.0.0/24] [0] 172.17.0.5 00:00:41 [{Origin: ?} {LocalPref: 100} {Extcomms: [20:20], [router's mac: ca:fe:00:00:fe:ed]} [ESI: single-homed] [GW: 0.0.0.0]] *> [type:Prefix][rd:10:10][etag:100][prefix:10.0.0.0/24] [0] 172.17.0.2 00:00:28 [{Origin: ?} {LocalPref: 100} {Extcomms: [10:10], [router's mac: ca:fe:00:00:be:ef]} [ESI: single-homed] [GW: 0.0.0.0]] ```
- Loading branch information
Lucas Lima
committed
Nov 15, 2024
1 parent
3b819cb
commit 051d4b9
Showing
23 changed files
with
950 additions
and
456 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.