diff options
| author | Mark Stapp <mjs@labn.net> | 2023-03-29 16:00:20 -0400 | 
|---|---|---|
| committer | Mark Stapp <mjs@labn.net> | 2023-04-07 16:17:59 -0400 | 
| commit | c42ac5f64b0e03099b147d5d129a65d067dd0164 (patch) | |
| tree | 1f2d700711802b77231fabd4e141472006857d79 | |
| parent | f5419bf927fcc0c2ae97ebb7845d89d974e30347 (diff) | |
tests: replace deprecated ospf json keys
Replace many deprecated json keys in topotests after removing
those keys from ospfd.
Signed-off-by: Mark Stapp <mjs@labn.net>
35 files changed, 250 insertions, 245 deletions
diff --git a/tests/topotests/bgp_features/r1/ospf_neighbor.json b/tests/topotests/bgp_features/r1/ospf_neighbor.json index 3b5f46d934..caf700d82a 100644 --- a/tests/topotests/bgp_features/r1/ospf_neighbor.json +++ b/tests/topotests/bgp_features/r1/ospf_neighbor.json @@ -2,13 +2,13 @@    "neighbors":{      "192.168.0.2":[        { -        "priority":5, +        "nbrPriority":5,          "converged":"Full"        }      ],      "192.168.0.3":[        { -        "priority":5, +        "nbrPriority":5,          "converged":"Full"        }      ] diff --git a/tests/topotests/bgp_features/r2/ospf_neighbor.json b/tests/topotests/bgp_features/r2/ospf_neighbor.json index 47bb57cd00..3a168ba335 100644 --- a/tests/topotests/bgp_features/r2/ospf_neighbor.json +++ b/tests/topotests/bgp_features/r2/ospf_neighbor.json @@ -2,13 +2,13 @@    "neighbors":{      "192.168.0.1":[        { -        "priority":10, +        "nbrPriority":10,          "converged":"Full"        }      ],      "192.168.0.3":[        { -        "priority":5, +        "nbrPriority":5,          "converged":"Full"        }      ] diff --git a/tests/topotests/bgp_features/r3/ospf_neighbor.json b/tests/topotests/bgp_features/r3/ospf_neighbor.json index b84974ccca..9f8c05949f 100644 --- a/tests/topotests/bgp_features/r3/ospf_neighbor.json +++ b/tests/topotests/bgp_features/r3/ospf_neighbor.json @@ -2,13 +2,13 @@    "neighbors":{      "192.168.0.1":[        { -        "priority":10, +        "nbrPriority":10,          "converged":"Full"        }      ],      "192.168.0.2":[        { -        "priority":10, +        "nbrPriority":10,          "converged":"Full"        }      ] diff --git a/tests/topotests/ldp_oc_acl_topo1/r1/show_ip_ospf_neighbor.json b/tests/topotests/ldp_oc_acl_topo1/r1/show_ip_ospf_neighbor.json index 63281e9be3..c1c231de3d 100644 --- a/tests/topotests/ldp_oc_acl_topo1/r1/show_ip_ospf_neighbor.json +++ b/tests/topotests/ldp_oc_acl_topo1/r1/show_ip_ospf_neighbor.json @@ -2,9 +2,9 @@    "neighbors":{      "2.2.2.2":[        { -        "priority":2, +        "nbrPriority":2,          "converged":"Full", -        "address":"10.0.1.2", +        "ifaceAddress":"10.0.1.2",          "ifaceName":"r1-eth0:10.0.1.1"        }      ] diff --git a/tests/topotests/ldp_oc_acl_topo1/r2/show_ip_ospf_neighbor.json b/tests/topotests/ldp_oc_acl_topo1/r2/show_ip_ospf_neighbor.json index f361d605ce..ee69af5e23 100644 --- a/tests/topotests/ldp_oc_acl_topo1/r2/show_ip_ospf_neighbor.json +++ b/tests/topotests/ldp_oc_acl_topo1/r2/show_ip_ospf_neighbor.json @@ -2,25 +2,25 @@    "neighbors":{      "1.1.1.1":[        { -        "priority":1, +        "nbrPriority":1,          "converged":"Full", -        "address":"10.0.1.1", +        "ifaceAddress":"10.0.1.1",          "ifaceName":"r2-eth0:10.0.1.2"        }      ],      "3.3.3.3":[        { -        "priority":2, +        "nbrPriority":2,          "converged":"Full", -        "address":"10.0.2.3", +        "ifaceAddress":"10.0.2.3",          "ifaceName":"r2-eth1:10.0.2.2"        }      ],      "4.4.4.4":[        { -        "priority":3, +        "nbrPriority":3,          "converged":"Full", -        "address":"10.0.2.4", +        "ifaceAddress":"10.0.2.4",          "ifaceName":"r2-eth1:10.0.2.2"        }      ] diff --git a/tests/topotests/ldp_oc_acl_topo1/r3/show_ip_ospf_neighbor.json b/tests/topotests/ldp_oc_acl_topo1/r3/show_ip_ospf_neighbor.json index 38794357ff..3f76542e94 100644 --- a/tests/topotests/ldp_oc_acl_topo1/r3/show_ip_ospf_neighbor.json +++ b/tests/topotests/ldp_oc_acl_topo1/r3/show_ip_ospf_neighbor.json @@ -2,17 +2,17 @@    "neighbors":{      "2.2.2.2":[        { -        "priority":1, +        "nbrPriority":1,          "converged":"Full", -        "address":"10.0.2.2", +        "ifaceAddress":"10.0.2.2",          "ifaceName":"r3-eth0:10.0.2.3"        }      ],      "4.4.4.4":[        { -        "priority":3, +        "nbrPriority":3,          "converged":"Full", -        "address":"10.0.2.4", +        "ifaceAddress":"10.0.2.4",          "ifaceName":"r3-eth0:10.0.2.3"        }      ] diff --git a/tests/topotests/ldp_oc_acl_topo1/r4/show_ip_ospf_neighbor.json b/tests/topotests/ldp_oc_acl_topo1/r4/show_ip_ospf_neighbor.json index fccca693b9..5395cd25c9 100644 --- a/tests/topotests/ldp_oc_acl_topo1/r4/show_ip_ospf_neighbor.json +++ b/tests/topotests/ldp_oc_acl_topo1/r4/show_ip_ospf_neighbor.json @@ -3,17 +3,17 @@    "neighbors":{      "2.2.2.2":[        { -        "priority":1, +        "nbrPriority":1,          "converged":"Full", -        "address":"10.0.2.2", +        "ifaceAddress":"10.0.2.2",          "ifaceName":"r4-eth0:10.0.2.4"        }      ],      "3.3.3.3":[        { -        "priority":2, +        "nbrPriority":2,          "converged":"Full", -        "address":"10.0.2.3", +        "ifaceAddress":"10.0.2.3",          "ifaceName":"r4-eth0:10.0.2.4"        }      ] diff --git a/tests/topotests/ldp_oc_topo1/r1/show_ip_ospf_neighbor.json b/tests/topotests/ldp_oc_topo1/r1/show_ip_ospf_neighbor.json index 63281e9be3..c1c231de3d 100644 --- a/tests/topotests/ldp_oc_topo1/r1/show_ip_ospf_neighbor.json +++ b/tests/topotests/ldp_oc_topo1/r1/show_ip_ospf_neighbor.json @@ -2,9 +2,9 @@    "neighbors":{      "2.2.2.2":[        { -        "priority":2, +        "nbrPriority":2,          "converged":"Full", -        "address":"10.0.1.2", +        "ifaceAddress":"10.0.1.2",          "ifaceName":"r1-eth0:10.0.1.1"        }      ] diff --git a/tests/topotests/ldp_oc_topo1/r2/show_ip_ospf_neighbor.json b/tests/topotests/ldp_oc_topo1/r2/show_ip_ospf_neighbor.json index f361d605ce..ee69af5e23 100644 --- a/tests/topotests/ldp_oc_topo1/r2/show_ip_ospf_neighbor.json +++ b/tests/topotests/ldp_oc_topo1/r2/show_ip_ospf_neighbor.json @@ -2,25 +2,25 @@    "neighbors":{      "1.1.1.1":[        { -        "priority":1, +        "nbrPriority":1,          "converged":"Full", -        "address":"10.0.1.1", +        "ifaceAddress":"10.0.1.1",          "ifaceName":"r2-eth0:10.0.1.2"        }      ],      "3.3.3.3":[        { -        "priority":2, +        "nbrPriority":2,          "converged":"Full", -        "address":"10.0.2.3", +        "ifaceAddress":"10.0.2.3",          "ifaceName":"r2-eth1:10.0.2.2"        }      ],      "4.4.4.4":[        { -        "priority":3, +        "nbrPriority":3,          "converged":"Full", -        "address":"10.0.2.4", +        "ifaceAddress":"10.0.2.4",          "ifaceName":"r2-eth1:10.0.2.2"        }      ] diff --git a/tests/topotests/ldp_oc_topo1/r3/show_ip_ospf_neighbor.json b/tests/topotests/ldp_oc_topo1/r3/show_ip_ospf_neighbor.json index 38794357ff..3f76542e94 100644 --- a/tests/topotests/ldp_oc_topo1/r3/show_ip_ospf_neighbor.json +++ b/tests/topotests/ldp_oc_topo1/r3/show_ip_ospf_neighbor.json @@ -2,17 +2,17 @@    "neighbors":{      "2.2.2.2":[        { -        "priority":1, +        "nbrPriority":1,          "converged":"Full", -        "address":"10.0.2.2", +        "ifaceAddress":"10.0.2.2",          "ifaceName":"r3-eth0:10.0.2.3"        }      ],      "4.4.4.4":[        { -        "priority":3, +        "nbrPriority":3,          "converged":"Full", -        "address":"10.0.2.4", +        "ifaceAddress":"10.0.2.4",          "ifaceName":"r3-eth0:10.0.2.3"        }      ] diff --git a/tests/topotests/ldp_oc_topo1/r4/show_ip_ospf_neighbor.json b/tests/topotests/ldp_oc_topo1/r4/show_ip_ospf_neighbor.json index fccca693b9..5395cd25c9 100644 --- a/tests/topotests/ldp_oc_topo1/r4/show_ip_ospf_neighbor.json +++ b/tests/topotests/ldp_oc_topo1/r4/show_ip_ospf_neighbor.json @@ -3,17 +3,17 @@    "neighbors":{      "2.2.2.2":[        { -        "priority":1, +        "nbrPriority":1,          "converged":"Full", -        "address":"10.0.2.2", +        "ifaceAddress":"10.0.2.2",          "ifaceName":"r4-eth0:10.0.2.4"        }      ],      "3.3.3.3":[        { -        "priority":2, +        "nbrPriority":2,          "converged":"Full", -        "address":"10.0.2.3", +        "ifaceAddress":"10.0.2.3",          "ifaceName":"r4-eth0:10.0.2.4"        }      ] diff --git a/tests/topotests/ldp_sync_ospf_topo1/r1/show_ip_ospf_neighbor.json b/tests/topotests/ldp_sync_ospf_topo1/r1/show_ip_ospf_neighbor.json index 7efde22f3f..e25523d18d 100644 --- a/tests/topotests/ldp_sync_ospf_topo1/r1/show_ip_ospf_neighbor.json +++ b/tests/topotests/ldp_sync_ospf_topo1/r1/show_ip_ospf_neighbor.json @@ -2,24 +2,24 @@    "neighbors": {      "2.2.2.2": [        { -        "dbSummaryCounter": 0, -        "retransmitCounter": 0, -        "priority": 1, +        "databaseSummaryListCounter": 0, +        "linkStateRetransmissionListCounter": 0, +        "nbrPriority": 1,          "converged": "Full", -        "address": "10.0.1.2", +        "ifaceAddress": "10.0.1.2",          "ifaceName": "r1-eth1:10.0.1.1", -        "requestCounter": 0 +        "linkStateRequestListCounter": 0        }      ],      "3.3.3.3": [        { -        "dbSummaryCounter": 0, -        "retransmitCounter": 0, -        "priority": 1, +        "databaseSummaryListCounter": 0, +        "linkStateRetransmissionListCounter": 0, +        "nbrPriority": 1,          "converged": "Full", -        "address": "10.0.2.3", +        "ifaceAddress": "10.0.2.3",          "ifaceName": "r1-eth2:10.0.2.1", -        "requestCounter": 0 +        "linkStateRequestListCounter": 0        }      ]    } diff --git a/tests/topotests/ldp_sync_ospf_topo1/r2/show_ip_ospf_neighbor.json b/tests/topotests/ldp_sync_ospf_topo1/r2/show_ip_ospf_neighbor.json index 5bea193e01..fa2ea86d67 100644 --- a/tests/topotests/ldp_sync_ospf_topo1/r2/show_ip_ospf_neighbor.json +++ b/tests/topotests/ldp_sync_ospf_topo1/r2/show_ip_ospf_neighbor.json @@ -2,24 +2,24 @@    "neighbors": {      "1.1.1.1": [        { -        "priority":1, +        "nbrPriority":1,          "converged":"Full", -        "address":"10.0.1.1", +        "ifaceAddress":"10.0.1.1",          "ifaceName":"r2-eth1:10.0.1.2", -        "retransmitCounter":0, -        "requestCounter":0, -        "dbSummaryCounter":0 +        "linkStateRetransmissionListCounter":0, +        "linkStateRequestListCounter":0, +        "databaseSummaryListCounter":0        }      ],      "3.3.3.3": [        { -        "priority":1, +        "nbrPriority":1,          "converged":"Full", -        "address":"10.0.3.3", +        "ifaceAddress":"10.0.3.3",          "ifaceName":"r2-eth2:10.0.3.2", -        "retransmitCounter":0, -        "requestCounter":0, -        "dbSummaryCounter":0 +        "linkStateRetransmissionListCounter":0, +        "linkStateRequestListCounter":0, +        "databaseSummaryListCounter":0        }      ]    } diff --git a/tests/topotests/ldp_sync_ospf_topo1/r3/show_ip_ospf_neighbor.json b/tests/topotests/ldp_sync_ospf_topo1/r3/show_ip_ospf_neighbor.json index 9966297d8a..bf77e088d5 100644 --- a/tests/topotests/ldp_sync_ospf_topo1/r3/show_ip_ospf_neighbor.json +++ b/tests/topotests/ldp_sync_ospf_topo1/r3/show_ip_ospf_neighbor.json @@ -2,24 +2,24 @@    "neighbors": {      "1.1.1.1": [        { -        "priority":1, +        "nbrPriority":1,          "converged":"Full", -        "address":"10.0.2.1", +        "ifaceAddress":"10.0.2.1",          "ifaceName":"r3-eth1:10.0.2.3", -        "retransmitCounter":0, -        "requestCounter":0, -        "dbSummaryCounter":0 +        "linkStateRetransmissionListCounter":0, +        "linkStateRequestListCounter":0, +        "databaseSummaryListCounter":0        }      ],      "2.2.2.2": [        { -        "priority":1, +        "nbrPriority":1,          "converged":"Full", -        "address":"10.0.3.2", +        "ifaceAddress":"10.0.3.2",          "ifaceName":"r3-eth2:10.0.3.3", -        "retransmitCounter":0, -        "requestCounter":0, -        "dbSummaryCounter":0 +        "linkStateRetransmissionListCounter":0, +        "linkStateRequestListCounter":0, +        "databaseSummaryListCounter":0        }      ]    } diff --git a/tests/topotests/ldp_topo1/r1/show_ip_ospf_neighbor.json b/tests/topotests/ldp_topo1/r1/show_ip_ospf_neighbor.json index d9192f1104..f47c2dfad7 100644 --- a/tests/topotests/ldp_topo1/r1/show_ip_ospf_neighbor.json +++ b/tests/topotests/ldp_topo1/r1/show_ip_ospf_neighbor.json @@ -2,12 +2,12 @@    "neighbors": {      "2.2.2.2": [        { -        "dbSummaryCounter": 0, -        "retransmitCounter": 0, -        "priority": 1, +        "databaseSummaryListCounter": 0, +        "linkStateRetransmissionListCounter": 0, +        "nbrPriority": 1,          "converged": "Full", -        "address": "10.0.1.2", -        "requestCounter": 0 +        "ifaceAddress": "10.0.1.2", +        "linkStateRequestListCounter": 0        }      ]    } diff --git a/tests/topotests/ldp_topo1/r2/show_ip_ospf_neighbor.json b/tests/topotests/ldp_topo1/r2/show_ip_ospf_neighbor.json index ea78592bd5..901282f876 100644 --- a/tests/topotests/ldp_topo1/r2/show_ip_ospf_neighbor.json +++ b/tests/topotests/ldp_topo1/r2/show_ip_ospf_neighbor.json @@ -2,40 +2,40 @@    "neighbors": {      "1.1.1.1": [        { -        "dbSummaryCounter": 0, -        "retransmitCounter": 0, -        "priority": 1, +        "databaseSummaryListCounter": 0, +        "linkStateRetransmissionListCounter": 0, +        "nbrPriority": 1,          "converged": "Full", -        "address": "10.0.1.1", -        "requestCounter": 0 +        "ifaceAddress": "10.0.1.1", +        "linkStateRequestListCounter": 0        }      ],      "3.3.3.3": [        { -        "dbSummaryCounter": 0, -        "retransmitCounter": 0, -        "priority": 1, +        "databaseSummaryListCounter": 0, +        "linkStateRetransmissionListCounter": 0, +        "nbrPriority": 1,          "converged": "Full", -        "address": "10.0.2.3", -        "requestCounter": 0 +        "ifaceAddress": "10.0.2.3", +        "linkStateRequestListCounter": 0        },        { -        "dbSummaryCounter": 0, -        "retransmitCounter": 0, -        "priority": 1, +        "databaseSummaryListCounter": 0, +        "linkStateRetransmissionListCounter": 0, +        "nbrPriority": 1,          "converged": "Full", -        "address": "10.0.3.3", -        "requestCounter": 0 +        "ifaceAddress": "10.0.3.3", +        "linkStateRequestListCounter": 0        }      ],      "4.4.4.4": [        { -        "dbSummaryCounter": 0, -        "retransmitCounter": 0, -        "priority": 1, +        "databaseSummaryListCounter": 0, +        "linkStateRetransmissionListCounter": 0, +        "nbrPriority": 1,          "converged": "Full", -        "address": "10.0.2.4", -        "requestCounter": 0 +        "ifaceAddress": "10.0.2.4", +        "linkStateRequestListCounter": 0        }      ]    } diff --git a/tests/topotests/ldp_topo1/r3/show_ip_ospf_neighbor.json b/tests/topotests/ldp_topo1/r3/show_ip_ospf_neighbor.json index d3c50247ea..164040ae3e 100644 --- a/tests/topotests/ldp_topo1/r3/show_ip_ospf_neighbor.json +++ b/tests/topotests/ldp_topo1/r3/show_ip_ospf_neighbor.json @@ -2,30 +2,30 @@    "neighbors": {      "2.2.2.2": [        { -        "dbSummaryCounter": 0, -        "retransmitCounter": 0, -        "priority": 1, +        "databaseSummaryListCounter": 0, +        "linkStateRetransmissionListCounter": 0, +        "nbrPriority": 1,          "converged": "Full", -        "address": "10.0.2.2", -        "requestCounter": 0 +        "ifaceAddress": "10.0.2.2", +        "linkStateRequestListCounter": 0        },        { -        "dbSummaryCounter": 0, -        "retransmitCounter": 0, -        "priority": 1, +        "databaseSummaryListCounter": 0, +        "linkStateRetransmissionListCounter": 0, +        "nbrPriority": 1,          "converged": "Full", -        "address": "10.0.3.2", -        "requestCounter": 0 +        "ifaceAddress": "10.0.3.2", +        "linkStateRequestListCounter": 0        }      ],      "4.4.4.4": [        { -        "dbSummaryCounter": 0, -        "retransmitCounter": 0, -        "priority": 1, +        "databaseSummaryListCounter": 0, +        "linkStateRetransmissionListCounter": 0, +        "nbrPriority": 1,          "converged": "Full", -        "address": "10.0.2.4", -        "requestCounter": 0 +        "ifaceAddress": "10.0.2.4", +        "linkStateRequestListCounter": 0        }      ]    } diff --git a/tests/topotests/ldp_topo1/r4/show_ip_ospf_neighbor.json b/tests/topotests/ldp_topo1/r4/show_ip_ospf_neighbor.json index 20751a2884..98c759a6ff 100644 --- a/tests/topotests/ldp_topo1/r4/show_ip_ospf_neighbor.json +++ b/tests/topotests/ldp_topo1/r4/show_ip_ospf_neighbor.json @@ -2,22 +2,22 @@    "neighbors": {      "2.2.2.2": [        { -        "dbSummaryCounter": 0, -        "retransmitCounter": 0, -        "priority": 1, +        "databaseSummaryListCounter": 0, +        "linkStateRetransmissionListCounter": 0, +        "nbrPriority": 1,          "converged": "Full", -        "address": "10.0.2.2", -        "requestCounter": 0 +        "ifaceAddress": "10.0.2.2", +        "linkStateRequestListCounter": 0        }      ],      "3.3.3.3": [        { -        "dbSummaryCounter": 0, -        "retransmitCounter": 0, -        "priority": 1, +        "databaseSummaryListCounter": 0, +        "linkStateRetransmissionListCounter": 0, +        "nbrPriority": 1,          "converged": "Full", -        "address": "10.0.2.3", -        "requestCounter": 0 +        "ifaceAddress": "10.0.2.3", +        "linkStateRequestListCounter": 0        }      ]    } diff --git a/tests/topotests/ldp_vpls_topo1/r1/show_ip_ospf_neighbor.json b/tests/topotests/ldp_vpls_topo1/r1/show_ip_ospf_neighbor.json index 90c8195416..9acb4f7b8c 100644 --- a/tests/topotests/ldp_vpls_topo1/r1/show_ip_ospf_neighbor.json +++ b/tests/topotests/ldp_vpls_topo1/r1/show_ip_ospf_neighbor.json @@ -2,24 +2,24 @@    "neighbors": {      "2.2.2.2": [        { -        "dbSummaryCounter": 0, -        "retransmitCounter": 0, -        "priority": 2, +        "databaseSummaryListCounter": 0, +        "linkStateRetransmissionListCounter": 0, +        "nbrPriority": 2,          "converged": "Full", -        "address": "10.0.1.2", +        "ifaceAddress": "10.0.1.2",          "ifaceName": "r1-eth1:10.0.1.1", -        "requestCounter": 0 +        "linkStateRequestListCounter": 0        }      ],      "3.3.3.3": [        { -        "dbSummaryCounter": 0, -        "retransmitCounter": 0, -        "priority": 2, +        "databaseSummaryListCounter": 0, +        "linkStateRetransmissionListCounter": 0, +        "nbrPriority": 2,          "converged": "Full", -        "address": "10.0.2.3", +        "ifaceAddress": "10.0.2.3",          "ifaceName": "r1-eth2:10.0.2.1", -        "requestCounter": 0 +        "linkStateRequestListCounter": 0        }      ]    } diff --git a/tests/topotests/ldp_vpls_topo1/r2/show_ip_ospf_neighbor.json b/tests/topotests/ldp_vpls_topo1/r2/show_ip_ospf_neighbor.json index 29dde53c6d..6634199902 100644 --- a/tests/topotests/ldp_vpls_topo1/r2/show_ip_ospf_neighbor.json +++ b/tests/topotests/ldp_vpls_topo1/r2/show_ip_ospf_neighbor.json @@ -2,24 +2,24 @@    "neighbors": {      "1.1.1.1": [        { -        "priority":1, +        "nbrPriority":1,          "converged":"Full", -        "address":"10.0.1.1", +        "ifaceAddress":"10.0.1.1",          "ifaceName":"r2-eth1:10.0.1.2", -        "retransmitCounter":0, -        "requestCounter":0, -        "dbSummaryCounter":0 +        "linkStateRetransmissionListCounter":0, +        "linkStateRequestListCounter":0, +        "databaseSummaryListCounter":0        }      ],      "3.3.3.3": [        { -        "priority":2, +        "nbrPriority":2,          "converged":"Full", -        "address":"10.0.3.3", +        "ifaceAddress":"10.0.3.3",          "ifaceName":"r2-eth2:10.0.3.2", -        "retransmitCounter":0, -        "requestCounter":0, -        "dbSummaryCounter":0 +        "linkStateRetransmissionListCounter":0, +        "linkStateRequestListCounter":0, +        "databaseSummaryListCounter":0        }      ]    } diff --git a/tests/topotests/ldp_vpls_topo1/r3/show_ip_ospf_neighbor.json b/tests/topotests/ldp_vpls_topo1/r3/show_ip_ospf_neighbor.json index 9966297d8a..bf77e088d5 100644 --- a/tests/topotests/ldp_vpls_topo1/r3/show_ip_ospf_neighbor.json +++ b/tests/topotests/ldp_vpls_topo1/r3/show_ip_ospf_neighbor.json @@ -2,24 +2,24 @@    "neighbors": {      "1.1.1.1": [        { -        "priority":1, +        "nbrPriority":1,          "converged":"Full", -        "address":"10.0.2.1", +        "ifaceAddress":"10.0.2.1",          "ifaceName":"r3-eth1:10.0.2.3", -        "retransmitCounter":0, -        "requestCounter":0, -        "dbSummaryCounter":0 +        "linkStateRetransmissionListCounter":0, +        "linkStateRequestListCounter":0, +        "databaseSummaryListCounter":0        }      ],      "2.2.2.2": [        { -        "priority":1, +        "nbrPriority":1,          "converged":"Full", -        "address":"10.0.3.2", +        "ifaceAddress":"10.0.3.2",          "ifaceName":"r3-eth2:10.0.3.3", -        "retransmitCounter":0, -        "requestCounter":0, -        "dbSummaryCounter":0 +        "linkStateRetransmissionListCounter":0, +        "linkStateRequestListCounter":0, +        "databaseSummaryListCounter":0        }      ]    } diff --git a/tests/topotests/lib/ospf.py b/tests/topotests/lib/ospf.py index 23b1f2e533..b4ac19ba5f 100644 --- a/tests/topotests/lib/ospf.py +++ b/tests/topotests/lib/ospf.py @@ -577,15 +577,15 @@ def verify_ospf_neighbor(              "ospf": {                  "neighbors": {                      "r1": { -                        "state": "Full", +                        "nbrState": "Full",                          "role": "DR"                      },                      "r2": { -                        "state": "Full", +                        "nbrState": "Full",                          "role": "DROther"                      },                      "r3": { -                        "state": "Full", +                        "nbrState": "Full",                          "role": "DROther"                      }                  } @@ -642,13 +642,13 @@ def verify_ospf_neighbor(                  neighbor_ip = neighbor_ip.lower()                  nbr_rid = data_rid                  try: -                    nh_state = show_ospf_json[nbr_rid][0]["state"].split("/")[0] -                    intf_state = show_ospf_json[nbr_rid][0]["state"].split("/")[1] +                    nh_state = show_ospf_json[nbr_rid][0]["nbrState"].split("/")[0] +                    intf_state = show_ospf_json[nbr_rid][0]["nbrState"].split("/")[1]                  except KeyError:                      errormsg = "[DUT: {}] OSPF peer {} missing".format(router, nbr_rid)                      return errormsg -                nbr_state = nbr_data.setdefault("state", None) +                nbr_state = nbr_data.setdefault("nbrState", None)                  nbr_role = nbr_data.setdefault("role", None)                  if nbr_state: @@ -724,8 +724,9 @@ def verify_ospf_neighbor(                  nh_state = None                  neighbor_ip = neighbor_ip.lower()                  nbr_rid = data_rid +                  try: -                    nh_state = show_ospf_json[nbr_rid][0]["state"].split("/")[0] +                    nh_state = show_ospf_json[nbr_rid][0]["nbrState"].split("/")[0]                  except KeyError:                      errormsg = "[DUT: {}] OSPF peer {} missing,from " "{} ".format(                          router, nbr_rid, ospf_nbr diff --git a/tests/topotests/ospf_basic_functionality/test_ospf_lan.py b/tests/topotests/ospf_basic_functionality/test_ospf_lan.py index c166702958..e4a032018c 100644 --- a/tests/topotests/ospf_basic_functionality/test_ospf_lan.py +++ b/tests/topotests/ospf_basic_functionality/test_ospf_lan.py @@ -165,9 +165,9 @@ def test_ospf_lan_tc1_p0(request):          "r0": {              "ospf": {                  "neighbors": { -                    "r1": {"state": "Full", "role": "DR"}, -                    "r2": {"state": "Full", "role": "DROther"}, -                    "r3": {"state": "Full", "role": "DROther"}, +                    "r1": {"nbrState": "Full", "role": "DR"}, +                    "r2": {"nbrState": "Full", "role": "DROther"}, +                    "r3": {"nbrState": "Full", "role": "DROther"},                  }              }          } @@ -185,9 +185,9 @@ def test_ospf_lan_tc1_p0(request):          "r1": {              "ospf": {                  "neighbors": { -                    "r0": {"state": "Full", "role": "Backup"}, -                    "r2": {"state": "Full", "role": "DROther"}, -                    "r3": {"state": "Full", "role": "DROther"}, +                    "r0": {"nbrState": "Full", "role": "Backup"}, +                    "r2": {"nbrState": "Full", "role": "DROther"}, +                    "r3": {"nbrState": "Full", "role": "DROther"},                  }              }          } @@ -196,7 +196,8 @@ def test_ospf_lan_tc1_p0(request):      result = verify_ospf_neighbor(tgen, topo, dut, input_dict, lan=True)      assert result is True, "Testcase {} : Failed \n Error: {}".format(tc_name, result) -    step("Configure DR pririty 100 on R0 and clear ospf neighbors  on all the routers.") +    step("Configure DR priority 100 on R0 and clear ospf neighbors " +         "on all the routers.")      input_dict = {          "r0": { @@ -221,9 +222,9 @@ def test_ospf_lan_tc1_p0(request):          "r0": {              "ospf": {                  "neighbors": { -                    "r1": {"state": "Full", "role": "Backup"}, -                    "r2": {"state": "Full", "role": "DROther"}, -                    "r3": {"state": "Full", "role": "DROther"}, +                    "r1": {"nbrState": "Full", "role": "Backup"}, +                    "r2": {"nbrState": "Full", "role": "DROther"}, +                    "r3": {"nbrState": "Full", "role": "DROther"},                  }              }          } @@ -232,7 +233,8 @@ def test_ospf_lan_tc1_p0(request):      result = verify_ospf_neighbor(tgen, topo, dut, input_dict, lan=True)      assert result is True, "Testcase {} : Failed \n Error: {}".format(tc_name, result) -    step("Configure DR pririty 150 on R0 and clear ospf neighbors  on all the routers.") +    step("Configure DR priority 150 on R0 and clear ospf neighbors " +         "on all the routers.")      input_dict = {          "r0": { @@ -257,9 +259,9 @@ def test_ospf_lan_tc1_p0(request):          "r0": {              "ospf": {                  "neighbors": { -                    "r1": {"state": "Full", "role": "Backup"}, -                    "r2": {"state": "Full", "role": "DROther"}, -                    "r3": {"state": "Full", "role": "DROther"}, +                    "r1": {"nbrState": "Full", "role": "Backup"}, +                    "r2": {"nbrState": "Full", "role": "DROther"}, +                    "r3": {"nbrState": "Full", "role": "DROther"},                  }              }          } @@ -293,9 +295,9 @@ def test_ospf_lan_tc1_p0(request):          "r0": {              "ospf": {                  "neighbors": { -                    "r1": {"state": "Full", "role": "DR"}, -                    "r2": {"state": "2-Way", "role": "DROther"}, -                    "r3": {"state": "2-Way", "role": "DROther"}, +                    "r1": {"nbrState": "Full", "role": "DR"}, +                    "r2": {"nbrState": "2-Way", "role": "DROther"}, +                    "r3": {"nbrState": "2-Way", "role": "DROther"},                  }              }          } @@ -332,9 +334,9 @@ def test_ospf_lan_tc1_p0(request):          "r0": {              "ospf": {                  "neighbors": { -                    "r1": {"state": "Full", "role": "Backup"}, -                    "r2": {"state": "Full", "role": "DROther"}, -                    "r3": {"state": "Full", "role": "DROther"}, +                    "r1": {"nbrState": "Full", "role": "Backup"}, +                    "r2": {"nbrState": "Full", "role": "DROther"}, +                    "r3": {"nbrState": "Full", "role": "DROther"},                  }              }          } @@ -364,9 +366,9 @@ def test_ospf_lan_tc1_p0(request):          "r0": {              "ospf": {                  "neighbors": { -                    "r1": {"state": "Full", "role": "DR"}, -                    "r2": {"state": "Full", "role": "DROther"}, -                    "r3": {"state": "Full", "role": "DROther"}, +                    "r1": {"nbrState": "Full", "role": "DR"}, +                    "r2": {"nbrState": "Full", "role": "DROther"}, +                    "r3": {"nbrState": "Full", "role": "DROther"},                  }              }          } @@ -419,9 +421,9 @@ def test_ospf_lan_tc1_p0(request):          "r1": {              "ospf": {                  "neighbors": { -                    "r0": {"state": "Full", "role": "Backup"}, -                    "r2": {"state": "Full", "role": "DROther"}, -                    "r3": {"state": "Full", "role": "DROther"}, +                    "r0": {"nbrState": "Full", "role": "Backup"}, +                    "r2": {"nbrState": "Full", "role": "DROther"}, +                    "r3": {"nbrState": "Full", "role": "DROther"},                  }              }          } @@ -445,9 +447,9 @@ def test_ospf_lan_tc1_p0(request):          "r1": {              "ospf": {                  "neighbors": { -                    "r0": {"state": "Full", "role": "Backup"}, -                    "r2": {"state": "Full", "role": "DROther"}, -                    "r3": {"state": "Full", "role": "DROther"}, +                    "r0": {"nbrState": "Full", "role": "Backup"}, +                    "r2": {"nbrState": "Full", "role": "DROther"}, +                    "r3": {"nbrState": "Full", "role": "DROther"},                  }              }          } diff --git a/tests/topotests/ospf_basic_functionality/test_ospf_p2mp.py b/tests/topotests/ospf_basic_functionality/test_ospf_p2mp.py index 858412f1d3..4f797743e7 100644 --- a/tests/topotests/ospf_basic_functionality/test_ospf_p2mp.py +++ b/tests/topotests/ospf_basic_functionality/test_ospf_p2mp.py @@ -411,17 +411,17 @@ def test_ospf_nbrs(tgen):                  "neighbors": {                      "100.1.1.1": [                          { -                            "state": "Full/DROther", +                            "nbrState": "Full/DROther",                          }                      ],                      "100.1.1.2": [                          { -                            "state": "Full/DROther", +                            "nbrState": "Full/DROther",                          }                      ],                      "100.1.1.3": [                          { -                            "state": "Full/DROther", +                            "nbrState": "Full/DROther",                          }                      ],                  } @@ -434,17 +434,17 @@ def test_ospf_nbrs(tgen):                  "neighbors": {                      "100.1.1.0": [                          { -                            "state": "Full/DROther", +                            "nbrState": "Full/DROther",                          }                      ],                      "100.1.1.2": [                          { -                            "state": "Full/DROther", +                            "nbrState": "Full/DROther",                          }                      ],                      "100.1.1.3": [                          { -                            "state": "Full/DROther", +                            "nbrState": "Full/DROther",                          }                      ],                  } @@ -457,17 +457,17 @@ def test_ospf_nbrs(tgen):                  "neighbors": {                      "100.1.1.0": [                          { -                            "state": "Full/DROther", +                            "nbrState": "Full/DROther",                          }                      ],                      "100.1.1.1": [                          { -                            "state": "Full/DROther", +                            "nbrState": "Full/DROther",                          }                      ],                      "100.1.1.3": [                          { -                            "state": "Full/DROther", +                            "nbrState": "Full/DROther",                          }                      ],                  } @@ -480,17 +480,17 @@ def test_ospf_nbrs(tgen):                  "neighbors": {                      "100.1.1.0": [                          { -                            "state": "Full/DROther", +                            "nbrState": "Full/DROther",                          }                      ],                      "100.1.1.1": [                          { -                            "state": "Full/DROther", +                            "nbrState": "Full/DROther",                          }                      ],                      "100.1.1.2": [                          { -                            "state": "Full/DROther", +                            "nbrState": "Full/DROther",                          }                      ],                  } diff --git a/tests/topotests/ospf_gr_helper/test_ospf_gr_helper2.py b/tests/topotests/ospf_gr_helper/test_ospf_gr_helper2.py index 202afe5485..46c0da309f 100644 --- a/tests/topotests/ospf_gr_helper/test_ospf_gr_helper2.py +++ b/tests/topotests/ospf_gr_helper/test_ospf_gr_helper2.py @@ -189,7 +189,9 @@ def test_ospf_gr_helper_tc3_p1(request):      assert (          ospf_covergence is True      ), "OSPF is not after reset config \n Error:  {}".format(ospf_covergence) -    step("Configure DR pririty 100 on R0 and clear ospf neighbors  on all the routers.") + +    step("Configure DR priority 100 on R0 and clear ospf neighbors " +         "on all the routers.")      input_dict = {          "r0": { @@ -214,9 +216,9 @@ def test_ospf_gr_helper_tc3_p1(request):          "r0": {              "ospf": {                  "neighbors": { -                    "r1": {"state": "Full", "role": "Backup"}, -                    "r2": {"state": "Full", "role": "DROther"}, -                    "r3": {"state": "Full", "role": "DROther"}, +                    "r1": {"nbrState": "Full", "role": "Backup"}, +                    "r2": {"nbrState": "Full", "role": "DROther"}, +                    "r3": {"nbrState": "Full", "role": "DROther"},                  }              }          } @@ -281,7 +283,7 @@ def test_ospf_gr_helper_tc4_p1(request):      assert (          ospf_covergence is True      ), "OSPF is not after reset config \n Error:  {}".format(ospf_covergence) -    step("Configure DR pririty 100 on R0 and clear ospf neighbors  on all the routers.") +    step("Configure DR priority 0 on R0 and clear ospf neighbors  on all the routers.")      input_dict = {          "r0": { @@ -306,9 +308,9 @@ def test_ospf_gr_helper_tc4_p1(request):          "r0": {              "ospf": {                  "neighbors": { -                    "r1": {"state": "Full", "role": "DR"}, -                    "r2": {"state": "2-Way", "role": "DROther"}, -                    "r3": {"state": "2-Way", "role": "DROther"}, +                    "r1": {"nbrState": "Full", "role": "DR"}, +                    "r2": {"nbrState": "2-Way", "role": "DROther"}, +                    "r3": {"nbrState": "2-Way", "role": "DROther"},                  }              }          } diff --git a/tests/topotests/ospf_gr_topo1/rt1/show_ip_ospf_neighbor.json b/tests/topotests/ospf_gr_topo1/rt1/show_ip_ospf_neighbor.json index f82758101c..0212f9da9c 100644 --- a/tests/topotests/ospf_gr_topo1/rt1/show_ip_ospf_neighbor.json +++ b/tests/topotests/ospf_gr_topo1/rt1/show_ip_ospf_neighbor.json @@ -3,7 +3,7 @@      "2.2.2.2":[        {          "converged":"Full", -        "address":"10.0.1.2", +        "ifaceAddress":"10.0.1.2",          "ifaceName":"eth-rt2:10.0.1.1"        }      ] diff --git a/tests/topotests/ospf_gr_topo1/rt2/show_ip_ospf_neighbor.json b/tests/topotests/ospf_gr_topo1/rt2/show_ip_ospf_neighbor.json index 5a0b092702..3114660483 100644 --- a/tests/topotests/ospf_gr_topo1/rt2/show_ip_ospf_neighbor.json +++ b/tests/topotests/ospf_gr_topo1/rt2/show_ip_ospf_neighbor.json @@ -3,14 +3,14 @@      "1.1.1.1":[        {          "converged":"Full", -        "address":"10.0.1.1", +        "ifaceAddress":"10.0.1.1",          "ifaceName":"eth-rt1:10.0.1.2"        }      ],      "3.3.3.3":[        {          "converged":"Full", -        "address":"10.0.2.3", +        "ifaceAddress":"10.0.2.3",          "ifaceName":"eth-rt3:10.0.2.2"        }      ] diff --git a/tests/topotests/ospf_gr_topo1/rt3/show_ip_ospf_neighbor.json b/tests/topotests/ospf_gr_topo1/rt3/show_ip_ospf_neighbor.json index ab5e78414d..49a019d36d 100644 --- a/tests/topotests/ospf_gr_topo1/rt3/show_ip_ospf_neighbor.json +++ b/tests/topotests/ospf_gr_topo1/rt3/show_ip_ospf_neighbor.json @@ -3,21 +3,21 @@      "2.2.2.2":[        {          "converged":"Full", -        "address":"10.0.2.2", +        "ifaceAddress":"10.0.2.2",          "ifaceName":"eth-rt2:10.0.2.3"        }      ],      "4.4.4.4":[        {          "converged":"Full", -        "address":"10.0.3.4", +        "ifaceAddress":"10.0.3.4",          "ifaceName":"eth-rt4:10.0.3.3"        }      ],      "6.6.6.6":[        {          "converged":"Full", -        "address":"10.0.4.6", +        "ifaceAddress":"10.0.4.6",          "ifaceName":"eth-rt6:10.0.4.3"        }      ] diff --git a/tests/topotests/ospf_gr_topo1/rt4/show_ip_ospf_neighbor.json b/tests/topotests/ospf_gr_topo1/rt4/show_ip_ospf_neighbor.json index 405679c10e..9ab49d7266 100644 --- a/tests/topotests/ospf_gr_topo1/rt4/show_ip_ospf_neighbor.json +++ b/tests/topotests/ospf_gr_topo1/rt4/show_ip_ospf_neighbor.json @@ -3,14 +3,14 @@      "3.3.3.3":[        {          "converged":"Full", -        "address":"10.0.3.3", +        "ifaceAddress":"10.0.3.3",          "ifaceName":"eth-rt3:10.0.3.4"        }      ],      "5.5.5.5":[        {          "converged":"Full", -        "address":"10.0.5.5", +        "ifaceAddress":"10.0.5.5",          "ifaceName":"eth-rt5:10.0.5.4"        }      ] diff --git a/tests/topotests/ospf_gr_topo1/rt5/show_ip_ospf_neighbor.json b/tests/topotests/ospf_gr_topo1/rt5/show_ip_ospf_neighbor.json index 893d454368..7d3d589772 100644 --- a/tests/topotests/ospf_gr_topo1/rt5/show_ip_ospf_neighbor.json +++ b/tests/topotests/ospf_gr_topo1/rt5/show_ip_ospf_neighbor.json @@ -3,7 +3,7 @@      "4.4.4.4":[        {          "converged":"Full", -        "address":"10.0.5.4", +        "ifaceAddress":"10.0.5.4",          "ifaceName":"eth-rt4:10.0.5.5"        }      ] diff --git a/tests/topotests/ospf_gr_topo1/rt6/show_ip_ospf_neighbor.json b/tests/topotests/ospf_gr_topo1/rt6/show_ip_ospf_neighbor.json index 564a513ac6..506eb4086b 100644 --- a/tests/topotests/ospf_gr_topo1/rt6/show_ip_ospf_neighbor.json +++ b/tests/topotests/ospf_gr_topo1/rt6/show_ip_ospf_neighbor.json @@ -3,14 +3,14 @@      "3.3.3.3":[        {          "converged":"Full", -        "address":"10.0.4.3", +        "ifaceAddress":"10.0.4.3",          "ifaceName":"eth-rt3:10.0.4.6"        }      ],      "7.7.7.7":[        {          "converged":"Full", -        "address":"10.0.6.7", +        "ifaceAddress":"10.0.6.7",          "ifaceName":"eth-rt7:10.0.6.6"        }      ] diff --git a/tests/topotests/ospf_gr_topo1/rt7/show_ip_ospf_neighbor.json b/tests/topotests/ospf_gr_topo1/rt7/show_ip_ospf_neighbor.json index bc6b60697c..6429148004 100644 --- a/tests/topotests/ospf_gr_topo1/rt7/show_ip_ospf_neighbor.json +++ b/tests/topotests/ospf_gr_topo1/rt7/show_ip_ospf_neighbor.json @@ -3,7 +3,7 @@      "6.6.6.6":[        {          "converged":"Full", -        "address":"10.0.6.6", +        "ifaceAddress":"10.0.6.6",          "ifaceName":"eth-rt6:10.0.6.7"        }      ] diff --git a/tests/topotests/pim_acl/r1/ospf_neighbor.json b/tests/topotests/pim_acl/r1/ospf_neighbor.json index af83d6bea3..34ce481a3f 100644 --- a/tests/topotests/pim_acl/r1/ospf_neighbor.json +++ b/tests/topotests/pim_acl/r1/ospf_neighbor.json @@ -2,57 +2,57 @@    "neighbors":{      "192.168.0.11":[        { -        "priority":10, +        "nbrPriority":10,          "converged":"Full", -        "address":"192.168.101.11", +        "ifaceAddress":"192.168.101.11",          "ifaceName":"r1-eth1:192.168.101.1", -        "retransmitCounter":0, -        "requestCounter":0, -        "dbSummaryCounter":0 +        "linkStateRetransmissionListCounter":0, +        "linkStateRequestListCounter":0, +        "databaseSummaryListCounter":0        }      ],      "192.168.0.12":[        { -        "priority":0, +        "nbrPriority":0,          "converged":"Full", -        "address":"192.168.101.12", +        "ifaceAddress":"192.168.101.12",          "ifaceName":"r1-eth1:192.168.101.1", -        "retransmitCounter":0, -        "requestCounter":0, -        "dbSummaryCounter":0 +        "linkStateRetransmissionListCounter":0, +        "linkStateRequestListCounter":0, +        "databaseSummaryListCounter":0        }      ],      "192.168.0.13":[        { -        "priority":0, +        "nbrPriority":0,          "converged":"Full", -        "address":"192.168.101.13", +        "ifaceAddress":"192.168.101.13",          "ifaceName":"r1-eth1:192.168.101.1", -        "retransmitCounter":0, -        "requestCounter":0, -        "dbSummaryCounter":0 +        "linkStateRetransmissionListCounter":0, +        "linkStateRequestListCounter":0, +        "databaseSummaryListCounter":0        }      ],      "192.168.0.14":[        { -        "priority":0, +        "nbrPriority":0,          "converged":"Full", -        "address":"192.168.101.14", +        "ifaceAddress":"192.168.101.14",          "ifaceName":"r1-eth1:192.168.101.1", -        "retransmitCounter":0, -        "requestCounter":0, -        "dbSummaryCounter":0 +        "linkStateRetransmissionListCounter":0, +        "linkStateRequestListCounter":0, +        "databaseSummaryListCounter":0        }      ],      "192.168.0.15":[        { -        "priority":0, +        "nbrPriority":0,          "converged":"Full", -        "address":"192.168.101.15", +        "ifaceAddress":"192.168.101.15",          "ifaceName":"r1-eth1:192.168.101.1", -        "retransmitCounter":0, -        "requestCounter":0, -        "dbSummaryCounter":0 +        "linkStateRetransmissionListCounter":0, +        "linkStateRequestListCounter":0, +        "databaseSummaryListCounter":0        }      ]    } diff --git a/tests/topotests/pim_igmp_vrf/r1/ospf_blue_neighbor.json b/tests/topotests/pim_igmp_vrf/r1/ospf_blue_neighbor.json index 1e70fcc36e..198098d3d3 100644 --- a/tests/topotests/pim_igmp_vrf/r1/ospf_blue_neighbor.json +++ b/tests/topotests/pim_igmp_vrf/r1/ospf_blue_neighbor.json @@ -4,9 +4,9 @@      "neighbors":{        "192.168.0.11":[          { -          "priority":10, +          "nbrPriority":10,            "converged":"Full", -          "address":"192.168.101.11", +          "ifaceAddress":"192.168.101.11",            "ifaceName":"r1-eth1:192.168.101.1"          }        ] diff --git a/tests/topotests/pim_igmp_vrf/r1/ospf_red_neighbor.json b/tests/topotests/pim_igmp_vrf/r1/ospf_red_neighbor.json index 7f2ab248cc..6fce225ffc 100644 --- a/tests/topotests/pim_igmp_vrf/r1/ospf_red_neighbor.json +++ b/tests/topotests/pim_igmp_vrf/r1/ospf_red_neighbor.json @@ -4,9 +4,9 @@      "neighbors":{        "192.168.0.12":[          { -          "priority":10, +          "nbrPriority":10,            "converged":"Full", -          "address":"192.168.101.12", +          "ifaceAddress":"192.168.101.12",            "ifaceName":"r1-eth3:192.168.101.1"          }        ]  | 
