Skip to content

Commit 256598d

Browse files
committed
Fix: OSPF "passive interface" tests have to reset OSPF on probes first
The OSPF "passive interface" tests rely on one of the probes not having an OSPF neighbor. With the new FRR configuration process, FRR gets ready way before the tested device and remembers any brain fart the tested device makes. Clearing the OSPF process before starting the test ensures a clean slate.
1 parent 00ddbed commit 256598d

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

tests/integration/ospf/ospfv2/04-passive.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,11 @@ links:
4242
mtu: 1500
4343

4444
validate:
45-
clear_x2:
45+
reset_ospf:
4646
description: Cleanup after leaky OSPFv2 implementations (IOS XR)
47-
nodes: [ x2 ]
48-
exec.frr: vtysh -c 'clear ip ospf neighbor'
47+
nodes: [ x1, x2 ]
48+
exec.frr: >-
49+
vtysh -c 'clear ip ospf process'
4950
adj_x1:
5051
description: Is DUT a neigbor of X1?
5152
wait: ospfv2_adj_p2p

tests/integration/ospf/ospfv3/04-passive.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ links:
4242
mtu: 1500
4343

4444
validate:
45+
reset_ospf:
46+
description: Cleanup after leaky OSPFv3 implementations
47+
nodes: [ x1, x2 ]
48+
exec.frr: >-
49+
vtysh -c 'clear ipv6 ospf6 process'
4550
adj_x1:
4651
description: Is DUT a neigbor of X1?
4752
wait: ospfv3_adj_p2p

0 commit comments

Comments
 (0)