Skip to content

Commit ac162b9

Browse files
authored
Add reduced OSPF timers to BGP integration tests following PR #3303 pattern (#3304)
1 parent 77282b3 commit ac162b9

17 files changed

Lines changed: 180 additions & 14 deletions

tests/integration/bgp.multihop/01-global.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ groups:
1515
defaults.paths.prepend.plugin: [ "topology:../plugin" ]
1616
plugin: [ ebgp.multihop, bgp.session, adjust_test ]
1717

18+
ospf.timers.hello: 1
19+
ospf.timers.dead: 3
20+
1821
bgp.multihop.sessions:
1922
- dut:
2023
pe2:
@@ -36,6 +39,12 @@ links:
3639
- c1-pe2
3740
- dut-ce1
3841

42+
_adjust:
43+
- nodes: [ dut ]
44+
features: [ ospf.timers ]
45+
remove:
46+
- nodes:ospf.timers
47+
3948
validate:
4049
ospf:
4150
description: Check OSPFv2 adjacency with DUT

tests/integration/bgp.multihop/02-vrf.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ groups:
1313
defaults.paths.prepend.plugin: [ "topology:../plugin" ]
1414
plugin: [ ebgp.multihop, bgp.session, adjust_test ]
1515

16+
ospf.timers.hello: 1
17+
ospf.timers.dead: 3
18+
1619
vrfs:
1720
tenant:
1821
links:
@@ -51,6 +54,10 @@ _adjust:
5154
- validate.ospf6
5255
- validate.bgp6
5356
- validate.prefix6
57+
- nodes: [ dut ]
58+
features: [ ospf.timers ]
59+
remove:
60+
- nodes:ospf.timers
5461

5562
validate:
5663
ospf:

tests/integration/bgp.multihop/x-01-global-ipv4.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@ groups:
1414
provider: clab
1515
members: [ pe2, c1 ]
1616

17-
plugin: [ ebgp.multihop, bgp.session ]
17+
defaults.paths.prepend.plugin: [ "topology:../plugin" ]
18+
plugin: [ ebgp.multihop, bgp.session, adjust_test ]
19+
20+
ospf.timers.hello: 1
21+
ospf.timers.dead: 3
1822

1923
bgp.multihop.sessions:
2024
- dut:
@@ -35,6 +39,12 @@ links:
3539
- dut:
3640
prefix: beacon
3741

42+
_adjust:
43+
- nodes: [ dut ]
44+
features: [ ospf.timers ]
45+
remove:
46+
- nodes:ospf.timers
47+
3848
validate:
3949
ospf:
4050
description: Check OSPFv2 adjacency with DUT

tests/integration/bgp.multihop/x-03-localas_ibgp.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@ groups:
2323
provider: clab
2424
members: [ pe2, c1 ]
2525

26-
plugin: [ ebgp.multihop, bgp.session ]
26+
defaults.paths.prepend.plugin: [ "topology:../plugin" ]
27+
plugin: [ ebgp.multihop, bgp.session, adjust_test ]
28+
29+
ospf.timers.hello: 1
30+
ospf.timers.dead: 3
2731

2832
bgp.multihop.sessions:
2933
- dut:
@@ -45,6 +49,12 @@ links:
4549
- dut:
4650
prefix: beacon
4751

52+
_adjust:
53+
- nodes: [ dut ]
54+
features: [ ospf.timers ]
55+
remove:
56+
- nodes:ospf.timers
57+
4858
validate:
4959
ospf:
5060
description: Check OSPFv2 adjacency with DUT

tests/integration/bgp.policy/10-bgp-bandwidth-auto.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ message: |
55
66
defaults.sources.extra: [ ../wait_times.yml, ../warnings.yml ]
77

8-
plugin: [ bgp.policy ]
8+
defaults.paths.prepend.plugin: [ "topology:../plugin" ]
9+
plugin: [ bgp.policy, adjust_test ]
910
module: [ bgp, ospf ]
1011

1112
groups:
@@ -24,6 +25,15 @@ nodes:
2425
bgp.as: 65101
2526
module: [ bgp ]
2627

28+
ospf.timers.hello: 1
29+
ospf.timers.dead: 3
30+
31+
_adjust:
32+
- nodes: [ dut ]
33+
features: [ ospf.timers ]
34+
remove:
35+
- nodes:ospf.timers
36+
2737
links:
2838
- dut:
2939
x1:

tests/integration/bgp.policy/11-bgp-bandwidth-value.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ message: |
66
77
defaults.sources.extra: [ ../wait_times.yml, ../warnings.yml ]
88

9-
plugin: [ bgp.policy ]
9+
defaults.paths.prepend.plugin: [ "topology:../plugin" ]
10+
plugin: [ bgp.policy, adjust_test ]
1011
module: [ bgp, ospf ]
1112

1213
groups:
@@ -25,6 +26,15 @@ nodes:
2526
bgp.as: 65101
2627
module: [ bgp ]
2728

29+
ospf.timers.hello: 1
30+
ospf.timers.dead: 3
31+
32+
_adjust:
33+
- nodes: [ dut ]
34+
features: [ ospf.timers ]
35+
remove:
36+
- nodes:ospf.timers
37+
2838
links:
2939
- dut:
3040
x1:

tests/integration/bgp.policy/12-bgp-bandwidth-value-out.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ message: |
66
77
defaults.sources.extra: [ ../wait_times.yml, ../warnings.yml ]
88

9-
plugin: [ bgp.policy ]
9+
defaults.paths.prepend.plugin: [ "topology:../plugin" ]
10+
plugin: [ bgp.policy, adjust_test ]
1011
module: [ bgp, ospf ]
1112

1213
groups:
@@ -25,6 +26,15 @@ nodes:
2526
bgp.as: 65101
2627
module: [ bgp ]
2728

29+
ospf.timers.hello: 1
30+
ospf.timers.dead: 3
31+
32+
_adjust:
33+
- nodes: [ dut ]
34+
features: [ ospf.timers ]
35+
remove:
36+
- nodes:ospf.timers
37+
2838
links:
2939
- dut:
3040
x1:

tests/integration/bgp.policy/21-locpref.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ message: |
66
77
defaults.sources.extra: [ defaults-ds.yml, ../wait_times.yml, ../warnings.yml ]
88

9-
plugin: [ bgp.policy ]
9+
defaults.paths.prepend.plugin: [ "topology:../plugin" ]
10+
plugin: [ bgp.policy, adjust_test ]
1011
module: [ bgp, ospf ]
1112

1213
groups:
@@ -33,6 +34,15 @@ nodes:
3334
loopback.ipv4: 172.42.43.1/24
3435
loopback.ipv6: 2001:db8:cafe:43::1/64
3536

37+
ospf.timers.hello: 1
38+
ospf.timers.dead: 3
39+
40+
_adjust:
41+
- nodes: [ dut ]
42+
features: [ ospf.timers ]
43+
remove:
44+
- nodes:ospf.timers
45+
3646
links:
3747
- dut:
3848
x1:

tests/integration/bgp.policy/22-locpref-unnumbered.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ message: |
44
has to set node-wide local preference on prefixes received from X1 and
55
neighbor-specific local preference on prefixes received from X2.
66
7-
plugin: [ bgp.policy ]
7+
defaults.paths.prepend.plugin: [ "topology:../plugin" ]
8+
plugin: [ bgp.policy, adjust_test ]
89
module: [ bgp, ospf ]
910

1011
defaults.sources.extra: [ defaults-ds.yml, ../wait_times.yml, ../warnings.yml ]
@@ -33,6 +34,15 @@ nodes:
3334
loopback.ipv4: 172.42.43.1/24
3435
loopback.ipv6: 2001:db8:cafe:43::1/64
3536

37+
ospf.timers.hello: 1
38+
ospf.timers.dead: 3
39+
40+
_adjust:
41+
- nodes: [ dut ]
42+
features: [ ospf.timers ]
43+
remove:
44+
- nodes:ospf.timers
45+
3646
links:
3747
- dut:
3848
x1:

tests/integration/bgp.policy/51-weight.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ message: |
33
Use this topology to test BGP weights on IPv4 and IPv6 prefixes. DUT has to
44
prefer prefixes advertised by X2 (identified by longer AS path).
55
6-
plugin: [ bgp.policy ]
6+
defaults.paths.prepend.plugin: [ "topology:../plugin" ]
7+
plugin: [ bgp.policy, adjust_test ]
78
module: [ bgp, ospf ]
89

910
defaults.sources.extra: [ defaults-ds.yml, ../wait_times.yml, ../warnings.yml ]
@@ -28,6 +29,15 @@ nodes:
2829
bgp.as: 65101
2930
module: [ bgp ]
3031

32+
ospf.timers.hello: 1
33+
ospf.timers.dead: 3
34+
35+
_adjust:
36+
- nodes: [ dut ]
37+
features: [ ospf.timers ]
38+
remove:
39+
- nodes:ospf.timers
40+
3141
links:
3242
- x1:
3343
x2:

0 commit comments

Comments
 (0)