summaryrefslogtreecommitdiff
path: root/tests/topotests/lib/ospf.py
diff options
context:
space:
mode:
authorDonald Sharp <donaldsharp72@gmail.com>2023-02-01 15:39:18 -0500
committerGitHub <noreply@github.com>2023-02-01 15:39:18 -0500
commit33303f08bf179431326a65f394b76f5c0ca1e71e (patch)
treeb1d2c5e517de3658dd5e3d90beda169d485d27c1 /tests/topotests/lib/ospf.py
parentb54ec1733b4cbf52911a3922026bc5112e2810be (diff)
parentf932966b02478cf3a3dd443d98eea7cc95c8379a (diff)
Merge pull request #12713 from opensourcerouting/fix/json_naming_deprecation
*: Drop deprecated incorrect JSON fields with wrong naming
Diffstat (limited to 'tests/topotests/lib/ospf.py')
-rw-r--r--tests/topotests/lib/ospf.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/topotests/lib/ospf.py b/tests/topotests/lib/ospf.py
index e7ea7d32ba..59ae1a2559 100644
--- a/tests/topotests/lib/ospf.py
+++ b/tests/topotests/lib/ospf.py
@@ -1533,11 +1533,11 @@ def verify_ospf_summary(tgen, topo, dut, input_dict, ospf=None, expected=True):
-----
input_dict = {
"11.0.0.0/8": {
- "Summary address": "11.0.0.0/8",
- "Metric-type": "E2",
- "Metric": 20,
- "Tag": 0,
- "External route count": 5
+ "summaryAddress": "11.0.0.0/8",
+ "metricType": "E2",
+ "metric": 20,
+ "tag": 0,
+ "externalRouteCount": 5
}
}
result = verify_ospf_summary(tgen, topo, dut, input_dict)
@@ -1586,7 +1586,7 @@ def verify_ospf_summary(tgen, topo, dut, input_dict, ospf=None, expected=True):
for ospf_summ, summ_data in ospf_summary_data.items():
if ospf_summ not in show_ospf_json:
continue
- summary = ospf_summary_data[ospf_summ]["Summary address"]
+ summary = ospf_summary_data[ospf_summ]["summaryAddress"]
if summary in show_ospf_json:
for summ in summ_data: