]> git.puffer.fish Git - mirror/frr.git/commitdiff
tests: Speed up bgp_features topotests by a lot 7043/head
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 2 Sep 2020 19:42:01 +0000 (15:42 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 2 Sep 2020 19:47:14 +0000 (15:47 -0400)
Initial run of topotests on my machine takes ~210 seconds
With these changes we are at ~40 seconds

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
tests/topotests/bgp_features/r1/bgpd.conf
tests/topotests/bgp_features/r1/ospfd.conf
tests/topotests/bgp_features/r2/bgpd.conf
tests/topotests/bgp_features/r2/ospfd.conf
tests/topotests/bgp_features/r3/ospfd.conf
tests/topotests/bgp_features/r4/bgpd.conf
tests/topotests/bgp_features/r5/bgpd.conf

index 48b71fc91a60c1802449dceb4da65331bb014b6a..7aea2dc16140af302f0c397c357cd59c8305cc32 100644 (file)
@@ -3,14 +3,18 @@ hostname r1
 log file bgpd.log
 !
 router bgp 65000
+ timers bgp 3 10
+ coalesce-time 0
  bgp router-id 192.168.0.1
  bgp log-neighbor-changes
  no bgp ebgp-requires-policy
  neighbor 192.168.0.2 remote-as 65000
  neighbor 192.168.0.2 description Router R2 (iBGP)
  neighbor 192.168.0.2 update-source lo
+ neighbor 192.168.0.2 timers connect 5
  neighbor 192.168.101.2 remote-as 65100
  neighbor 192.168.101.2 description Router R4 (eBGP AS 65100)
+ neighbor 192.168.101.2 timers connect 5
  !
  address-family ipv4 unicast
   network 192.168.0.0/24
index 952abdec5976103c89dc8d3e2ec62729a25db6e6..8f1711db7b762e61b2b8502de58fcbb2d13ed02f 100644 (file)
@@ -7,6 +7,17 @@ router ospf
  ospf router-id 192.168.0.1
  log-adjacency-changes
  network 192.168.0.0/20 area 0.0.0.0
+ timers throttle spf 0 0 0
+ timers lsa min-arrival 10
+ timers throttle lsa all 0
+ refresh timer 10
 !
 line vty
+interface r1-eth1
+ ip ospf hello-interval 2
+ ip ospf dead-interval 10
+!
+interface r1-eth2
+ ip ospf hello-interval 2
+ ip ospf dead-interval 10
 !
index 775733d1d3dc52347bd47999cf8052484a4be89b..3daf9842ce7baa3bcdc51cd94ff1091599f5c870 100644 (file)
@@ -4,13 +4,17 @@ log file bgpd.log
 !
 router bgp 65000
  bgp router-id 192.168.0.2
+ timers bgp 3 10
+ coalesce-time 0
  bgp log-neighbor-changes
  no bgp ebgp-requires-policy
  neighbor 192.168.0.1 remote-as 65000
  neighbor 192.168.0.1 description Router R1 (iBGP)
  neighbor 192.168.0.1 update-source lo
+ neighbor 192.168.0.1 timers connect 5
  neighbor 192.168.201.2 remote-as 65200
  neighbor 192.168.201.2 description Router R5 (eBGP AS 65200)
+ neighbor 192.168.201.2 timers connect 5
  !
  address-family ipv4 unicast
   network 192.168.0.0/24
index c9ebfe506e415eea89f9a1eede63b8f6681c6ebf..2174fddb11567c10037ac614c28bbf95ad9d7f0a 100644 (file)
@@ -7,6 +7,17 @@ router ospf
  ospf router-id 192.168.0.2
  log-adjacency-changes
  network 192.168.0.0/20 area 0.0.0.0
+ timers throttle spf 0 0 0
+ timers lsa min-arrival 10
+ timers throttle lsa all 0
+ refresh timer 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
 !
 line vty
 !
index a8d66f1ed3ea983725bc7e3e18bc57f018756251..795344fbe66d064967633e4beb1cbfdf15961a23 100644 (file)
@@ -7,6 +7,17 @@ router ospf
  ospf router-id 192.168.0.3
  log-adjacency-changes
  network 192.168.0.0/20 area 0.0.0.0
+ timers throttle spf 0 0 0
+ timers lsa min-arrival 10
+ timers throttle lsa all 0
+ refresh timer 10
+!
+int r3-eth1
+  ip ospf hello-interval 2
+  ip ospf dead-interval 10
+int r3-eth2
+  ip ospf hello-interval 2
+  ip ospf dead-interval 10
 !
 line vty
 !
index 83b452b86d6f84b3b1f1a6a249ee3cf764fb526d..fe1a4d4ffe0004b93d64ae773b3754502cb7014e 100644 (file)
@@ -4,10 +4,13 @@ log file bgpd.log
 !
 router bgp 65100
  bgp router-id 192.168.100.1
+ timers bgp 3 10
+ coalesce-time 0
  bgp log-neighbor-changes
  no bgp ebgp-requires-policy
  neighbor 192.168.101.1 remote-as 65000
  neighbor 192.168.101.1 description Router R1 (eBGP AS 65000)
+ neighbor 192.168.101.1 timers connect 5
  !
  address-family ipv4 unicast
   network 192.168.100.0/24
index a6a42a007ce41510657b40d5526c8e626e63c9bd..8504213b41b30c267e13b747156e8f2325f13f75 100644 (file)
@@ -4,10 +4,13 @@ log file bgpd.log
 !
 router bgp 65200
  bgp router-id 192.168.200.1
+ timers bgp 3 10
+ coalesce-time 0
  bgp log-neighbor-changes
  no bgp ebgp-requires-policy
  neighbor 192.168.201.1 remote-as 65000
  neighbor 192.168.201.1 description Router R2 (eBGP AS 65000)
+ neighbor 192.168.201.1 timers connect 5
  !
  address-family ipv4 unicast
   network 192.168.200.0/24