-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: add basic topotest for VXLAN EVPN
This test creates a 5 box setup with 2 hosts, 2 PEs and a P router it checks for 1. VNI VTEPs being communicated between zebra from PE1 to PE2 and vice versa. 2. MAC addresses from host 1 being learned by PE1 and signalled to PE2 over BGP Signed-off-by: Pat Ruddy <pat@voltanet.io>
- Loading branch information
Showing
19 changed files
with
389 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
! |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
! | ||
router ospf | ||
network 10.20.0.0/16 area 0 | ||
network 10.20.20.20/32 area 0 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
! | ||
interface lo | ||
ip address 10.20.20.20/32 | ||
interface P1-eth0 | ||
ip address 10.20.1.2/24 | ||
interface P1-eth1 | ||
ip address 10.20.2.2/24 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
router bgp 65000 | ||
bgp router-id 10.10.10.10 | ||
no bgp default ipv4-unicast | ||
neighbor 10.30.30.30 remote-as 65000 | ||
neighbor 10.30.30.30 ebgp-multihop 2 | ||
neighbor 10.30.30.30 update-source lo | ||
neighbor 10.30.30.30 capability extended-nexthop | ||
address-family l2vpn evpn | ||
neighbor 10.30.30.30 activate | ||
advertise-all-vni |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"vni":101, | ||
"type":"L2", | ||
"vrf":"default", | ||
"vxlanInterface":"vxlan101", | ||
"ifindex":5, | ||
"vtepIp":"10.10.10.10", | ||
"mcastGroup":"0.0.0.0", | ||
"advertiseGatewayMacip":"No", | ||
"numMacs":5, | ||
"numArpNd":2, | ||
"numRemoteVteps":[ | ||
"10.30.30.30" | ||
] | ||
} | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
! | ||
router ospf | ||
network 10.20.0.0/16 area 0 | ||
network 10.10.10.10/32 area 0 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
! | ||
log file zebra.log | ||
! | ||
interface lo | ||
ip address 10.10.10.10/32 | ||
interface PE1-eth0 | ||
ip address 10.10.1.1/24 | ||
interface PE1-eth1 | ||
ip address 10.20.1.1/24 | ||
! |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
router bgp 65000 | ||
bgp router-id 10.30.30.30 | ||
no bgp default ipv4-unicast | ||
neighbor 10.10.10.10 remote-as 65000 | ||
neighbor 10.10.10.10 ebgp-multihop 2 | ||
neighbor 10.10.10.10 update-source lo | ||
neighbor 10.10.10.10 capability extended-nexthop | ||
! | ||
address-family l2vpn evpn | ||
neighbor 10.10.10.10 activate | ||
advertise-all-vni |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"vni":101, | ||
"type":"L2", | ||
"vrf":"default", | ||
"vxlanInterface":"vxlan101", | ||
"ifindex":5, | ||
"vtepIp":"10.30.30.30", | ||
"mcastGroup":"0.0.0.0", | ||
"advertiseGatewayMacip":"No", | ||
"numMacs":5, | ||
"numArpNd":2, | ||
"numRemoteVteps":[ | ||
"10.10.10.10" | ||
] | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
! | ||
router ospf | ||
network 10.20.0.0/16 area 0 | ||
network 10.30.30.30/32 area 0 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
! | ||
interface lo | ||
ip address 10.30.30.30/32 | ||
interface PE2-eth0 | ||
ip address 10.20.2.3/24 | ||
interface PE2-eth1 | ||
ip address 10.10.1.3/24 | ||
! |
Empty file.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
! |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
! |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
! | ||
int host1-eth0 | ||
ip address 10.10.1.55/24 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
! |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
! |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
! | ||
interface host2-eth0 | ||
ip address 10.10.1.56/24 |
Oops, something went wrong.