Skip to content

Commit

Permalink
Merge pull request #6096 from pjdruddy/vxlan_evpn_topo_test
Browse files Browse the repository at this point in the history
tests: add basic topotest for VXLAN EVPN
  • Loading branch information
donaldsharp authored Apr 14, 2020
2 parents 897cb75 + 6f77a97 commit e68a7db
Show file tree
Hide file tree
Showing 19 changed files with 389 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/topotests/bgp-evpn-vxlan_topo1/P1/bgpd.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
!
4 changes: 4 additions & 0 deletions tests/topotests/bgp-evpn-vxlan_topo1/P1/ospfd.conf
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
7 changes: 7 additions & 0 deletions tests/topotests/bgp-evpn-vxlan_topo1/P1/zebra.conf
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
10 changes: 10 additions & 0 deletions tests/topotests/bgp-evpn-vxlan_topo1/PE1/bgpd.conf
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
16 changes: 16 additions & 0 deletions tests/topotests/bgp-evpn-vxlan_topo1/PE1/evpn.vni.json
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"
]
}

4 changes: 4 additions & 0 deletions tests/topotests/bgp-evpn-vxlan_topo1/PE1/ospfd.conf
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
10 changes: 10 additions & 0 deletions tests/topotests/bgp-evpn-vxlan_topo1/PE1/zebra.conf
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
!
11 changes: 11 additions & 0 deletions tests/topotests/bgp-evpn-vxlan_topo1/PE2/bgpd.conf
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
15 changes: 15 additions & 0 deletions tests/topotests/bgp-evpn-vxlan_topo1/PE2/evpn.vni.json
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"
]
}
4 changes: 4 additions & 0 deletions tests/topotests/bgp-evpn-vxlan_topo1/PE2/ospfd.conf
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
8 changes: 8 additions & 0 deletions tests/topotests/bgp-evpn-vxlan_topo1/PE2/zebra.conf
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.
1 change: 1 addition & 0 deletions tests/topotests/bgp-evpn-vxlan_topo1/host1/bgpd.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
!
1 change: 1 addition & 0 deletions tests/topotests/bgp-evpn-vxlan_topo1/host1/ospfd.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
!
3 changes: 3 additions & 0 deletions tests/topotests/bgp-evpn-vxlan_topo1/host1/zebra.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
!
int host1-eth0
ip address 10.10.1.55/24
1 change: 1 addition & 0 deletions tests/topotests/bgp-evpn-vxlan_topo1/host2/bgpd.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
!
1 change: 1 addition & 0 deletions tests/topotests/bgp-evpn-vxlan_topo1/host2/ospfd.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
!
3 changes: 3 additions & 0 deletions tests/topotests/bgp-evpn-vxlan_topo1/host2/zebra.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
!
interface host2-eth0
ip address 10.10.1.56/24
Loading

0 comments on commit e68a7db

Please sign in to comment.