Skip to content

Commit

Permalink
tests: Reduce run time of bgp_l3vpn_to_bgp_vrf
Browse files Browse the repository at this point in the history
Reduces run time of the bgp_l3vpn_to_bgp_vrf topotests
from ~118 seconds to ~87 seconds by reducing hello timers
in bgp and ospf

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
  • Loading branch information
donaldsharp committed Sep 3, 2020
1 parent f3ce48d commit ff3218f
Show file tree
Hide file tree
Showing 12 changed files with 42 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/topotests/bgp_l3vpn_to_bgp_vrf/ce1/bgpd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ router bgp 5227
no bgp ebgp-requires-policy
neighbor 192.168.1.1 remote-as 5227
neighbor 192.168.1.1 update-source 192.168.1.2
neighbor 192.168.1.1 timers 3 10
address-family ipv4 unicast
network 99.0.0.1/32
network 5.1.0.0/24 route-map rm-nh
Expand Down
1 change: 1 addition & 0 deletions tests/topotests/bgp_l3vpn_to_bgp_vrf/ce2/bgpd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ router bgp 5227
no bgp ebgp-requires-policy
neighbor 192.168.1.1 remote-as 5227
neighbor 192.168.1.1 update-source 192.168.1.2
neighbor 192.168.1.1 timers 3 10
address-family ipv4 unicast
network 99.0.0.2/32
network 5.1.0.0/24 route-map rm-nh
Expand Down
1 change: 1 addition & 0 deletions tests/topotests/bgp_l3vpn_to_bgp_vrf/ce3/bgpd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ router bgp 5227
no bgp ebgp-requires-policy
neighbor 192.168.1.1 remote-as 5227
neighbor 192.168.1.1 update-source 192.168.1.2
neighbor 192.168.1.1 timers 3 10
address-family ipv4 unicast
network 99.0.0.3/32
network 5.1.2.0/24 route-map rm-nh
Expand Down
1 change: 1 addition & 0 deletions tests/topotests/bgp_l3vpn_to_bgp_vrf/ce4/bgpd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ router bgp 5228 vrf ce4-cust2
no bgp ebgp-requires-policy
neighbor 192.168.2.1 remote-as 5228
neighbor 192.168.2.1 update-source 192.168.2.2
neighbor 192.168.2.1 timers 3 10
address-family ipv4 unicast
network 99.0.0.4/32
network 5.4.2.0/24 route-map rm-nh
Expand Down
2 changes: 2 additions & 0 deletions tests/topotests/bgp_l3vpn_to_bgp_vrf/r1/bgpd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ router bgp 5226
no bgp ebgp-requires-policy
neighbor 2.2.2.2 remote-as 5226
neighbor 2.2.2.2 update-source 1.1.1.1
neighbor 2.2.2.2 timers 3 10

address-family ipv4 unicast
no neighbor 2.2.2.2 activate
Expand All @@ -35,6 +36,7 @@ router bgp 5227 vrf r1-cust1

neighbor 192.168.1.2 remote-as 5227
neighbor 192.168.1.2 update-source 192.168.1.1
neighbor 192.168.1.2 timers 3 10

address-family ipv4 unicast
neighbor 192.168.1.2 activate
Expand Down
4 changes: 4 additions & 0 deletions tests/topotests/bgp_l3vpn_to_bgp_vrf/r1/ospfd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@ router ospf
network 0.0.0.0/4 area 0
redistribute static
!
int r1-eth0
ip ospf hello-interval 2
ip ospf dead-interval 10
!
3 changes: 3 additions & 0 deletions tests/topotests/bgp_l3vpn_to_bgp_vrf/r2/bgpd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,13 @@ router bgp 5226
no bgp ebgp-requires-policy
neighbor 1.1.1.1 remote-as 5226
neighbor 1.1.1.1 update-source 2.2.2.2
neighbor 1.1.1.1 timers 3 10
neighbor 3.3.3.3 remote-as 5226
neighbor 3.3.3.3 update-source 2.2.2.2
neighbor 3.3.3.3 timers 3 10
neighbor 4.4.4.4 remote-as 5226
neighbor 4.4.4.4 update-source 2.2.2.2
neighbor 4.4.4.4 timers 3 10
address-family ipv4 unicast
no neighbor 1.1.1.1 activate
no neighbor 3.3.3.3 activate
Expand Down
12 changes: 12 additions & 0 deletions tests/topotests/bgp_l3vpn_to_bgp_vrf/r2/ospfd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,15 @@ router ospf
router-id 2.2.2.2
network 0.0.0.0/0 area 0
!
int r2-eth0
ip ospf hello-interval 2
ip ospf dead-interval 10
!
int r2-eth1
ip ospf hello-interval 2
ip ospf dead-interval 10
!
int r2-eth2
ip ospf hello-interval 2
ip ospf dead-interval 10
!
2 changes: 2 additions & 0 deletions tests/topotests/bgp_l3vpn_to_bgp_vrf/r3/bgpd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ router bgp 5226
no bgp ebgp-requires-policy
neighbor 2.2.2.2 remote-as 5226
neighbor 2.2.2.2 update-source 3.3.3.3
neighbor 2.2.2.2 timers 3 10

address-family ipv4 unicast
no neighbor 2.2.2.2 activate
Expand All @@ -29,6 +30,7 @@ router bgp 5227 vrf r3-cust1

neighbor 192.168.1.2 remote-as 5227
neighbor 192.168.1.2 update-source 192.168.1.1
neighbor 192.168.1.2 timers 3 10

address-family ipv4 unicast
neighbor 192.168.1.2 activate
Expand Down
8 changes: 8 additions & 0 deletions tests/topotests/bgp_l3vpn_to_bgp_vrf/r3/ospfd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,11 @@ router ospf
network 0.0.0.0/4 area 0
redistribute static
!
int r3-eth0
ip ospf hello-interval 2
ip ospf dead-interval 10
!
int r3-eth1
ip ospf hello-interval 2
ip ospf dead-interval 10
!
3 changes: 3 additions & 0 deletions tests/topotests/bgp_l3vpn_to_bgp_vrf/r4/bgpd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ router bgp 5226
no bgp ebgp-requires-policy
neighbor 2.2.2.2 remote-as 5226
neighbor 2.2.2.2 update-source 4.4.4.4
neighbor 2.2.2.2 timers 3 10

address-family ipv4 unicast
no neighbor 2.2.2.2 activate
Expand All @@ -32,6 +33,7 @@ router bgp 5227 vrf r4-cust1

neighbor 192.168.1.2 remote-as 5227
neighbor 192.168.1.2 update-source 192.168.1.1
neighbor 192.168.1.2 timers 3 10

address-family ipv4 unicast
neighbor 192.168.1.2 activate
Expand All @@ -52,6 +54,7 @@ router bgp 5228 vrf r4-cust2

neighbor 192.168.2.2 remote-as 5228
neighbor 192.168.2.2 update-source 192.168.2.1
neighbor 192.168.2.2 timers 3 10

address-family ipv4 unicast
neighbor 192.168.2.2 activate
Expand Down
4 changes: 4 additions & 0 deletions tests/topotests/bgp_l3vpn_to_bgp_vrf/r4/ospfd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@ router ospf
network 0.0.0.0/4 area 0
redistribute static
!
int r4-eth0
ip ospf hello-interval 2
ip ospf dead-interval 10
!

0 comments on commit ff3218f

Please sign in to comment.