forked from FRRouting/frr
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: ospf_suppress_fa sleeps, convert to run_and_expect
The test_ospf_suppres_fa.py script is using straight up sleeps before testing that the next step worked properly. On a unloaded test system this will work 100% of the time on a loaded test system this will have random failures. Convert the test to use run_and_expect and give each section of the test 30 seconds to get to the next state appropriately instead of 10. Signed-off-by: Donald Sharp <[email protected]>
- Loading branch information
1 parent
0d57a9a
commit 48df84a
Showing
4 changed files
with
150 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
"routerId":"10.0.12.1", | ||
"asExternalLinkStates":[ | ||
{ | ||
"options":"*|-|-|-|-|-|E|-", | ||
"lsaFlags":6, | ||
"lsaType":"AS-external-LSA", | ||
"linkStateId":"3.3.1.1", | ||
"advertisingRouter":"10.0.23.2", | ||
"networkMask":32, | ||
"metricType":"E2 (Larger than any link state path)", | ||
"tos":0, | ||
"metric":20, | ||
"forwardAddress":"10.0.23.3", | ||
"externalRouteTag":0 | ||
}, | ||
{ | ||
"options":"*|-|-|-|-|-|E|-", | ||
"lsaFlags":6, | ||
"lsaType":"AS-external-LSA", | ||
"linkStateId":"3.3.2.2", | ||
"advertisingRouter":"10.0.23.2", | ||
"networkMask":32, | ||
"metricType":"E2 (Larger than any link state path)", | ||
"tos":0, | ||
"metric":20, | ||
"forwardAddress":"10.0.23.3", | ||
"externalRouteTag":0 | ||
}, | ||
{ | ||
"options":"*|-|-|-|-|-|E|-", | ||
"lsaFlags":6, | ||
"lsaType":"AS-external-LSA", | ||
"linkStateId":"3.3.3.3", | ||
"advertisingRouter":"10.0.23.2", | ||
"networkMask":32, | ||
"metricType":"E2 (Larger than any link state path)", | ||
"tos":0, | ||
"metric":20, | ||
"forwardAddress":"10.0.23.3", | ||
"externalRouteTag":0 | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"neighbors":{ | ||
"10.0.23.2":[ | ||
{ | ||
"nbrPriority":1, | ||
"converged":"Full", | ||
"role":"DROther", | ||
"ifaceAddress":"10.0.12.2", | ||
"ifaceName":"r1-eth0:10.0.12.1" | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
"routerId":"10.0.12.1", | ||
"asExternalLinkStates":[ | ||
{ | ||
"options":"*|-|-|-|-|-|E|-", | ||
"lsaFlags":6, | ||
"lsaType":"AS-external-LSA", | ||
"linkStateId":"3.3.1.1", | ||
"advertisingRouter":"10.0.23.2", | ||
"networkMask":32, | ||
"metricType":"E2 (Larger than any link state path)", | ||
"tos":0, | ||
"metric":20, | ||
"forwardAddress":"0.0.0.0", | ||
"externalRouteTag":0 | ||
}, | ||
{ | ||
"options":"*|-|-|-|-|-|E|-", | ||
"lsaFlags":6, | ||
"lsaType":"AS-external-LSA", | ||
"linkStateId":"3.3.2.2", | ||
"advertisingRouter":"10.0.23.2", | ||
"networkMask":32, | ||
"metricType":"E2 (Larger than any link state path)", | ||
"tos":0, | ||
"metric":20, | ||
"forwardAddress":"0.0.0.0", | ||
"externalRouteTag":0 | ||
}, | ||
{ | ||
"options":"*|-|-|-|-|-|E|-", | ||
"lsaFlags":6, | ||
"lsaType":"AS-external-LSA", | ||
"linkStateId":"3.3.3.3", | ||
"advertisingRouter":"10.0.23.2", | ||
"networkMask":32, | ||
"metricType":"E2 (Larger than any link state path)", | ||
"tos":0, | ||
"metric":20, | ||
"forwardAddress":"0.0.0.0", | ||
"externalRouteTag":0 | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters