From beabd51253de3227f55fa7c0537055c0d894bb77 Mon Sep 17 00:00:00 2001 From: takishida <38262981+takishida@users.noreply.github.com> Date: Thu, 18 Apr 2024 11:49:44 -0700 Subject: [PATCH] SUP-A/A+ High Memory Usage (#92) * Add check and tests for SUP-A high memory check * Add documentation * Update recommended action --- aci-preupgrade-validation-script.py | 35 +- docs/docs/validations.md | 14 + .../eqptSupC_SUP_A.json | 562 ++++++++++++++++++ .../eqptSupC_SUP_A_Aplus.json | 562 ++++++++++++++++++ .../eqptSupC_SUP_Aplus.json | 562 ++++++++++++++++++ .../eqptSupC_no_SUP_A_Aplus.json | 562 ++++++++++++++++++ .../test_sup_a_high_memory_check.py | 60 ++ 7 files changed, 2356 insertions(+), 1 deletion(-) create mode 100644 tests/sup_a_high_memory_check/eqptSupC_SUP_A.json create mode 100644 tests/sup_a_high_memory_check/eqptSupC_SUP_A_Aplus.json create mode 100644 tests/sup_a_high_memory_check/eqptSupC_SUP_Aplus.json create mode 100644 tests/sup_a_high_memory_check/eqptSupC_no_SUP_A_Aplus.json create mode 100644 tests/sup_a_high_memory_check/test_sup_a_high_memory_check.py diff --git a/aci-preupgrade-validation-script.py b/aci-preupgrade-validation-script.py index a460618..80761e7 100644 --- a/aci-preupgrade-validation-script.py +++ b/aci-preupgrade-validation-script.py @@ -2791,6 +2791,39 @@ def oob_mgmt_security_check(index, total_checks, cversion, tversion, **kwargs): return result +def sup_a_high_memory_check(index, total_checks, tversion, **kwargs): + title = "SUP-A/A+ High Memory Usage" + result = PASS + msg = "" + headers = ["Pod ID", "Node ID", "SUP Model", "Active/Standby"] + data = [] + recommended_action = "Change the target version to the one with memory optimization in a near-future 6.0 release." + doc_url = "https://datacenter.github.io/ACI-Pre-Upgrade-Validation-Script/validations/#sup-aa-high-memory-usage" + + print_title(title, index, total_checks) + + if not tversion: + print_result(title, MANUAL, "Target version not supplied. Skipping.") + return MANUAL + + affected_versions = ["6.0(3)", "6.0(4)", "6.0(5)"] + if tversion.simple_version in affected_versions: + eqptSupCs = icurl("class", "eqptSupC.json") + for eqptSupC in eqptSupCs: + model = eqptSupC["eqptSupC"]["attributes"]["model"] + if model in ["N9K-SUP-A", "N9K-SUP-A+"]: + dn = re.search(node_regex, eqptSupC["eqptSupC"]["attributes"]["dn"]) + pod_id = dn.group("pod") + node_id = dn.group("node") + act_stb = eqptSupC["eqptSupC"]["attributes"]["rdSt"] + data.append([pod_id, node_id, model, act_stb]) + + if data: + result = FAIL_O + print_result(title, result, msg, headers, data, recommended_action=recommended_action, doc_url=doc_url) + return result + + if __name__ == "__main__": prints(' ==== %s%s, Script Version %s ====\n' % (ts, tz, SCRIPT_VERSION)) prints('!!!! Check https://github.com/datacenter/ACI-Pre-Upgrade-Validation-Script for Latest Release !!!!\n') @@ -2870,7 +2903,7 @@ def oob_mgmt_security_check(index, total_checks, cversion, tversion, **kwargs): apic_ca_cert_validation, fabricdomain_name_check, sup_hwrev_check, - + sup_a_high_memory_check, ] summary = {PASS: 0, FAIL_O: 0, FAIL_UF: 0, ERROR: 0, MANUAL: 0, NA: 0, 'TOTAL': len(checks)} for idx, check in enumerate(checks): diff --git a/docs/docs/validations.md b/docs/docs/validations.md index a2b5119..47c0281 100644 --- a/docs/docs/validations.md +++ b/docs/docs/validations.md @@ -127,6 +127,7 @@ Items | Defect | This Script [APIC CA Cert Validation][d7] | CSCvy35257 | :white_check_mark: | :no_entry_sign: |:no_entry_sign: [FabricDomain Name Check][d8] | CSCwf80352 | :white_check_mark: | :no_entry_sign: |:no_entry_sign: [Spine SUP HW Revision Check][d9] | CSCwb86706 | :white_check_mark: | :no_entry_sign: |:no_entry_sign: +[SUP-A/A+ High Memory Usage][d10] | CSCwh39489 | :white_check_mark: | :no_entry_sign: |:no_entry_sign: [d1]: #ep-announce-compatibility [d2]: #eventmgr-db-size @@ -137,6 +138,7 @@ Items | Defect | This Script [d7]: #apic-ca-cert-validation [d8]: #fabric-domain-name [d9]: #spine-sup-hw-revision +[d10]: #sup-aa-high-memory-usage @@ -1307,6 +1309,15 @@ Due to the defect CSCwb86706, ACI modular spine switches may not be able to boot The script checks if the version and the SUP modules are susceptible to the defect. +### SUP-A/A+ High Memory Usage + +Due to the increased memory utilization from 6.0(3), N9K-SUP-A or N9K-SUP-A+ will likely experience constant high memory utilization. + +It is highly recommended not to upgrade your ACI fabric to 6.0(3), 6.0(4) or 6.0(5) if your fabric contains N9K-SUP-A and/or N9K-SUP-A+. Instead, wait for the memory optimization in a near-future Cisco ACI 6.0 maintenance release that will allow the N9K-SUP-A and N9K-SUP-A+ supervisors to operate in a normal memory condition. + +!!! note + This is also called out in release notes of each version - [6.0(3)][15], [6.0(4)][16], [6.0(5)][17]: + @@ -1325,3 +1336,6 @@ The script checks if the version and the SUP modules are susceptible to the defe [12]: https://www.cisco.com/c/en/us/td/docs/switches/datacenter/aci/apic/sw/4-x/L2-configuration/Cisco-APIC-Layer2-Configuration-Guide-42x/Cisco-APIC-Layer2-Configuration-Guide-421_chapter_0110.html#id_109428 [13]: https://www.cisco.com/c/en/us/td/docs/dcn/whitepapers/cisco-aci-best-practices-quick-summary.html#_Toc114493697 [14]: https://www.cisco.com/c/en/us/td/docs/dcn/whitepapers/cisco-aci-best-practices-quick-summary.html#_Toc114493698 +[15]: https://www.cisco.com/c/en/us/td/docs/dcn/aci/apic/6x/release-notes/cisco-apic-release-notes-603.html +[16]: https://www.cisco.com/c/en/us/td/docs/dcn/aci/apic/6x/release-notes/cisco-apic-release-notes-604.html +[17]: https://www.cisco.com/c/en/us/td/docs/dcn/aci/apic/6x/release-notes/cisco-apic-release-notes-605.html diff --git a/tests/sup_a_high_memory_check/eqptSupC_SUP_A.json b/tests/sup_a_high_memory_check/eqptSupC_SUP_A.json new file mode 100644 index 0000000..ecf63bc --- /dev/null +++ b/tests/sup_a_high_memory_check/eqptSupC_SUP_A.json @@ -0,0 +1,562 @@ +[ + { + "eqptSupC": { + "attributes": { + "childAction": "", + "descr": "48x10/25G", + "dn": "topology/pod-1/node-101/sys/ch/supslot-1/sup", + "fwVer": "", + "hwVer": "0.2070", + "id": "1", + "macB": "a0-e0-00-00-00-00", + "macE": "", + "macL": "76", + "mfgTm": "2016-10-30T17:00:00.000-07:00", + "modTs": "2024-04-09T00:35:05.233-07:00", + "model": "N9K-C93180YC-FX", + "monPolDn": "uni/fabric/monfab-default", + "numP": "48", + "operSt": "online", + "partNumber": "", + "pwrSt": "on", + "rdSt": "active", + "rev": "07", + "rn": "sup", + "ser": "FDOxxxxxxxx", + "status": "", + "swCId": "274", + "swVer": "", + "type": "supervisor", + "upTs": "2024-04-09T00:35:05.233-07:00", + "vId": "V00", + "vdrId": "", + "vendor": "Cisco Systems, Inc." + } + } + }, + { + "eqptSupC": { + "attributes": { + "childAction": "", + "descr": "48x10/25G", + "dn": "topology/pod-1/node-102/sys/ch/supslot-1/sup", + "fwVer": "", + "hwVer": "0.2080", + "id": "1", + "macB": "a0-e0-00-00-00-00", + "macE": "", + "macL": "76", + "mfgTm": "2016-12-18T17:00:00.000-07:00", + "modTs": "2024-04-09T00:11:41.882-07:00", + "model": "N9K-C93180YC-FX", + "monPolDn": "uni/fabric/monfab-default", + "numP": "48", + "operSt": "online", + "partNumber": "", + "pwrSt": "on", + "rdSt": "active", + "rev": "08", + "rn": "sup", + "ser": "FDOxxxxxxxx", + "status": "", + "swCId": "274", + "swVer": "", + "type": "supervisor", + "upTs": "2024-04-09T00:11:41.882-07:00", + "vId": "V00", + "vdrId": "", + "vendor": "Cisco Systems, Inc." + } + } + }, + { + "eqptSupC": { + "attributes": { + "childAction": "", + "descr": "48x10/25G", + "dn": "topology/pod-1/node-103/sys/ch/supslot-1/sup", + "fwVer": "", + "hwVer": "0.2080", + "id": "1", + "macB": "a0-e0-00-00-00-00", + "macE": "", + "macL": "76", + "mfgTm": "2016-12-18T17:00:00.000-07:00", + "modTs": "2024-04-09T00:34:42.142-07:00", + "model": "N9K-C93180YC-FX", + "monPolDn": "uni/fabric/monfab-default", + "numP": "48", + "operSt": "online", + "partNumber": "", + "pwrSt": "on", + "rdSt": "active", + "rev": "08", + "rn": "sup", + "ser": "FDOxxxxxxxx", + "status": "", + "swCId": "274", + "swVer": "", + "type": "supervisor", + "upTs": "2024-04-09T00:34:42.142-07:00", + "vId": "V00", + "vdrId": "", + "vendor": "Cisco Systems, Inc." + } + } + }, + { + "eqptSupC": { + "attributes": { + "childAction": "", + "descr": "48x10/25G", + "dn": "topology/pod-1/node-104/sys/ch/supslot-1/sup", + "fwVer": "", + "hwVer": "0.2080", + "id": "1", + "macB": "a0-e0-00-00-00-00", + "macE": "", + "macL": "76", + "mfgTm": "2016-12-18T17:00:00.000-07:00", + "modTs": "2024-04-09T00:11:42.889-07:00", + "model": "N9K-C93180YC-FX", + "monPolDn": "uni/fabric/monfab-default", + "numP": "48", + "operSt": "online", + "partNumber": "", + "pwrSt": "on", + "rdSt": "active", + "rev": "08", + "rn": "sup", + "ser": "FDOxxxxxxxx", + "status": "", + "swCId": "274", + "swVer": "", + "type": "supervisor", + "upTs": "2024-04-09T00:11:42.889-07:00", + "vId": "V00", + "vdrId": "", + "vendor": "Cisco Systems, Inc." + } + } + }, + { + "eqptSupC": { + "attributes": { + "childAction": "", + "descr": "48x10/25G", + "dn": "topology/pod-2/node-201/sys/ch/supslot-1/sup", + "fwVer": "", + "hwVer": "1.0", + "id": "1", + "macB": "a0-e0-00-00-00-00", + "macE": "", + "macL": "72", + "mfgTm": "2016-05-29T17:00:00.000-07:00", + "modTs": "2024-04-09T00:10:36.103-07:00", + "model": "N9K-C93180YC-EX", + "monPolDn": "uni/fabric/monfab-default", + "numP": "48", + "operSt": "online", + "partNumber": "", + "pwrSt": "on", + "rdSt": "active", + "rev": "A0", + "rn": "sup", + "ser": "FDOxxxxxxxx", + "status": "", + "swCId": "262", + "swVer": "", + "type": "supervisor", + "upTs": "2024-04-09T00:10:36.103-07:00", + "vId": "V01", + "vdrId": "", + "vendor": "Cisco Systems, Inc." + } + } + }, + { + "eqptSupC": { + "attributes": { + "childAction": "", + "descr": "48x10/25G", + "dn": "topology/pod-2/node-202/sys/ch/supslot-1/sup", + "fwVer": "", + "hwVer": "1.0", + "id": "1", + "macB": "00-f6-63-10-bd-15", + "macE": "", + "macL": "72", + "mfgTm": "2016-05-29T17:00:00.000-07:00", + "modTs": "2024-04-09T00:10:41.660-07:00", + "model": "N9K-C93180YC-EX", + "monPolDn": "uni/fabric/monfab-default", + "numP": "48", + "operSt": "online", + "partNumber": "", + "pwrSt": "on", + "rdSt": "active", + "rev": "A0", + "rn": "sup", + "ser": "FDOxxxxxxxx", + "status": "", + "swCId": "262", + "swVer": "", + "type": "supervisor", + "upTs": "2024-04-09T00:10:41.660-07:00", + "vId": "V01", + "vdrId": "", + "vendor": "Cisco Systems, Inc." + } + } + }, + { + "eqptSupC": { + "attributes": { + "childAction": "", + "descr": "30x40G/100G", + "dn": "topology/pod-2/node-213/sys/ch/supslot-1/sup", + "fwVer": "", + "hwVer": "1.0", + "id": "1", + "macB": "a0-e0-00-00-00-00", + "macE": "", + "macL": "148", + "mfgTm": "2018-07-08T17:00:00.000-07:00", + "modTs": "2024-04-09T00:11:13.440-07:00", + "model": "N9K-C9336C-FX2", + "monPolDn": "uni/fabric/monfab-default", + "numP": "30", + "operSt": "online", + "partNumber": "", + "pwrSt": "on", + "rdSt": "active", + "rev": "A0", + "rn": "sup", + "ser": "FDOxxxxxxxx", + "status": "", + "swCId": "353", + "swVer": "", + "type": "supervisor", + "upTs": "2024-04-09T00:11:13.440-07:00", + "vId": "V01", + "vdrId": "", + "vendor": "Cisco Systems, Inc." + } + } + }, + { + "eqptSupC": { + "attributes": { + "childAction": "", + "descr": "30x40G/100G", + "dn": "topology/pod-2/node-214/sys/ch/supslot-1/sup", + "fwVer": "", + "hwVer": "1.0", + "id": "1", + "macB": "a0-e0-00-00-00-00", + "macE": "", + "macL": "148", + "mfgTm": "2018-07-01T17:00:00.000-07:00", + "modTs": "2024-04-09T00:11:22.800-07:00", + "model": "N9K-C9336C-FX2", + "monPolDn": "uni/fabric/monfab-default", + "numP": "30", + "operSt": "online", + "partNumber": "", + "pwrSt": "on", + "rdSt": "active", + "rev": "A0", + "rn": "sup", + "ser": "FDOxxxxxxxx", + "status": "", + "swCId": "353", + "swVer": "", + "type": "supervisor", + "upTs": "2024-04-09T00:11:22.800-07:00", + "vId": "V01", + "vdrId": "", + "vendor": "Cisco Systems, Inc." + } + } + }, + { + "eqptSupC": { + "attributes": { + "childAction": "", + "descr": "48x10/25G", + "dn": "topology/pod-3/node-301/sys/ch/supslot-1/sup", + "fwVer": "", + "hwVer": "3.0", + "id": "1", + "macB": "a0-e0-00-00-00-00", + "macE": "", + "macL": "72", + "mfgTm": "2017-08-06T17:00:00.000-07:00", + "modTs": "2024-02-21T13:21:45.814-07:00", + "model": "N9K-C93180YC-EX", + "monPolDn": "uni/fabric/monfab-default", + "numP": "48", + "operSt": "online", + "partNumber": "", + "pwrSt": "on", + "rdSt": "active", + "rev": "A0", + "rn": "sup", + "ser": "FDOxxxxxxxx", + "status": "", + "swCId": "262", + "swVer": "", + "type": "supervisor", + "upTs": "2024-02-21T13:21:45.814-07:00", + "vId": "V02", + "vdrId": "", + "vendor": "Cisco Systems, Inc." + } + } + }, + { + "eqptSupC": { + "attributes": { + "childAction": "", + "descr": "48x10/25G", + "dn": "topology/pod-3/node-302/sys/ch/supslot-1/sup", + "fwVer": "", + "hwVer": "3.0", + "id": "1", + "macB": "a0-e0-00-00-00-00", + "macE": "", + "macL": "72", + "mfgTm": "2017-08-06T17:00:00.000-07:00", + "modTs": "2024-02-21T13:25:41.376-07:00", + "model": "N9K-C93180YC-EX", + "monPolDn": "uni/fabric/monfab-default", + "numP": "48", + "operSt": "online", + "partNumber": "", + "pwrSt": "on", + "rdSt": "active", + "rev": "A0", + "rn": "sup", + "ser": "FDOxxxxxxxx", + "status": "", + "swCId": "262", + "swVer": "", + "type": "supervisor", + "upTs": "2024-02-21T13:25:41.376-07:00", + "vId": "V02", + "vdrId": "", + "vendor": "Cisco Systems, Inc." + } + } + }, + { + "eqptSupC": { + "attributes": { + "childAction": "", + "descr": "64x100G+2x10G Ethernet Switch", + "dn": "topology/pod-1/node-1001/sys/ch/supslot-1/sup", + "fwVer": "", + "hwVer": "1.0", + "id": "1", + "macB": "a0-e0-00-00-00-00", + "macE": "", + "macL": "70", + "mfgTm": "2017-12-24T17:00:00.000-07:00", + "modTs": "2024-03-27T16:10:51.786-07:00", + "model": "N9K-C9364C", + "monPolDn": "uni/fabric/monfab-default", + "numP": "0", + "operSt": "online", + "partNumber": "", + "pwrSt": "on", + "rdSt": "active", + "rev": "A0", + "rn": "sup", + "ser": "FDOxxxxxxxx", + "status": "", + "swCId": "346", + "swVer": "", + "type": "supervisor", + "upTs": "2024-03-27T16:10:51.786-07:00", + "vId": "V01", + "vdrId": "", + "vendor": "Cisco Systems, Inc." + } + } + }, + { + "eqptSupC": { + "attributes": { + "childAction": "", + "descr": "64x100G+2x10G Ethernet Switch", + "dn": "topology/pod-1/node-1002/sys/ch/supslot-1/sup", + "fwVer": "", + "hwVer": "1.0", + "id": "1", + "macB": "a0-e0-00-00-00-00", + "macE": "", + "macL": "70", + "mfgTm": "2017-12-24T17:00:00.000-07:00", + "modTs": "2024-03-27T15:50:40.468-07:00", + "model": "N9K-C9364C", + "monPolDn": "uni/fabric/monfab-default", + "numP": "0", + "operSt": "online", + "partNumber": "", + "pwrSt": "on", + "rdSt": "active", + "rev": "A0", + "rn": "sup", + "ser": "FDOxxxxxxxx", + "status": "", + "swCId": "346", + "swVer": "", + "type": "supervisor", + "upTs": "2024-03-27T15:50:40.468-07:00", + "vId": "V01", + "vdrId": "", + "vendor": "Cisco Systems, Inc." + } + } + }, + { + "eqptSupC": { + "attributes": { + "childAction": "", + "descr": "64x100G+2x10G Ethernet Switch", + "dn": "topology/pod-3/node-3001/sys/ch/supslot-1/sup", + "fwVer": "", + "hwVer": "1.0", + "id": "1", + "macB": "a0-e0-00-00-00-00", + "macE": "", + "macL": "70", + "mfgTm": "2017-12-24T17:00:00.000-07:00", + "modTs": "2024-02-21T14:54:58.930-07:00", + "model": "N9K-C9364C", + "monPolDn": "uni/fabric/monfab-default", + "numP": "0", + "operSt": "online", + "partNumber": "", + "pwrSt": "on", + "rdSt": "active", + "rev": "A0", + "rn": "sup", + "ser": "FDOxxxxxxxx", + "status": "", + "swCId": "346", + "swVer": "", + "type": "supervisor", + "upTs": "2024-02-21T14:54:58.930-07:00", + "vId": "V01", + "vdrId": "", + "vendor": "Cisco Systems, Inc." + } + } + }, + { + "eqptSupC": { + "attributes": { + "childAction": "", + "descr": "Supervisor Module", + "dn": "topology/pod-2/node-2002/sys/ch/supslot-1/sup", + "fwVer": "", + "hwVer": "2.1", + "id": "1", + "macB": "a0-e0-00-00-00-00", + "macE": "", + "macL": "18", + "mfgTm": "2017-01-01T17:00:00.000-07:00", + "modTs": "2024-03-18T11:15:47.174-07:00", + "model": "N9K-SUP-A", + "monPolDn": "uni/fabric/monfab-default", + "numP": "0", + "operSt": "online", + "partNumber": "", + "pwrSt": "on", + "rdSt": "active", + "rev": "A0", + "rn": "sup", + "ser": "FDOxxxxxxxx", + "status": "", + "swCId": "234", + "swVer": "", + "type": "supervisor", + "upTs": "2024-03-18T11:15:47.174-07:00", + "vId": "V04", + "vdrId": "", + "vendor": "Cisco Systems, Inc." + } + } + }, + { + "eqptSupC": { + "attributes": { + "childAction": "", + "descr": "Supervisor Module", + "dn": "topology/pod-2/node-2001/sys/ch/supslot-1/sup", + "fwVer": "", + "hwVer": "2.1", + "id": "1", + "macB": "a0-e0-00-00-00-00", + "macE": "", + "macL": "18", + "mfgTm": "2017-01-01T17:00:00.000-07:00", + "modTs": "2024-03-08T15:47:14.364-07:00", + "model": "N9K-SUP-A", + "monPolDn": "uni/fabric/monfab-default", + "numP": "0", + "operSt": "online", + "partNumber": "", + "pwrSt": "on", + "rdSt": "active", + "rev": "A0", + "rn": "sup", + "ser": "FDOxxxxxxxx", + "status": "", + "swCId": "234", + "swVer": "", + "type": "supervisor", + "upTs": "2024-03-08T15:47:14.364-07:00", + "vId": "V04", + "vdrId": "", + "vendor": "Cisco Systems, Inc." + } + } + }, + { + "eqptSupC": { + "attributes": { + "childAction": "", + "descr": "Supervisor Module", + "dn": "topology/pod-2/node-2001/sys/ch/supslot-2/sup", + "fwVer": "", + "hwVer": "2.1", + "id": "2", + "macB": "a0-e0-00-00-00-00", + "macE": "", + "macL": "18", + "mfgTm": "2017-01-01T17:00:00.000-07:00", + "modTs": "2024-03-08T15:47:14.364-07:00", + "model": "N9K-SUP-A", + "monPolDn": "uni/fabric/monfab-default", + "numP": "0", + "operSt": "online", + "partNumber": "", + "pwrSt": "on", + "rdSt": "standby", + "rev": "A0", + "rn": "sup", + "ser": "FDOxxxxxxxx", + "status": "", + "swCId": "234", + "swVer": "", + "type": "supervisor", + "upTs": "2024-03-08T15:47:14.364-07:00", + "vId": "V04", + "vdrId": "", + "vendor": "Cisco Systems, Inc." + } + } + } +] diff --git a/tests/sup_a_high_memory_check/eqptSupC_SUP_A_Aplus.json b/tests/sup_a_high_memory_check/eqptSupC_SUP_A_Aplus.json new file mode 100644 index 0000000..5ba39d0 --- /dev/null +++ b/tests/sup_a_high_memory_check/eqptSupC_SUP_A_Aplus.json @@ -0,0 +1,562 @@ +[ + { + "eqptSupC": { + "attributes": { + "childAction": "", + "descr": "48x10/25G", + "dn": "topology/pod-1/node-101/sys/ch/supslot-1/sup", + "fwVer": "", + "hwVer": "0.2070", + "id": "1", + "macB": "a0-e0-00-00-00-00", + "macE": "", + "macL": "76", + "mfgTm": "2016-10-30T17:00:00.000-07:00", + "modTs": "2024-04-09T00:35:05.233-07:00", + "model": "N9K-C93180YC-FX", + "monPolDn": "uni/fabric/monfab-default", + "numP": "48", + "operSt": "online", + "partNumber": "", + "pwrSt": "on", + "rdSt": "active", + "rev": "07", + "rn": "sup", + "ser": "FDOxxxxxxxx", + "status": "", + "swCId": "274", + "swVer": "", + "type": "supervisor", + "upTs": "2024-04-09T00:35:05.233-07:00", + "vId": "V00", + "vdrId": "", + "vendor": "Cisco Systems, Inc." + } + } + }, + { + "eqptSupC": { + "attributes": { + "childAction": "", + "descr": "48x10/25G", + "dn": "topology/pod-1/node-102/sys/ch/supslot-1/sup", + "fwVer": "", + "hwVer": "0.2080", + "id": "1", + "macB": "a0-e0-00-00-00-00", + "macE": "", + "macL": "76", + "mfgTm": "2016-12-18T17:00:00.000-07:00", + "modTs": "2024-04-09T00:11:41.882-07:00", + "model": "N9K-C93180YC-FX", + "monPolDn": "uni/fabric/monfab-default", + "numP": "48", + "operSt": "online", + "partNumber": "", + "pwrSt": "on", + "rdSt": "active", + "rev": "08", + "rn": "sup", + "ser": "FDOxxxxxxxx", + "status": "", + "swCId": "274", + "swVer": "", + "type": "supervisor", + "upTs": "2024-04-09T00:11:41.882-07:00", + "vId": "V00", + "vdrId": "", + "vendor": "Cisco Systems, Inc." + } + } + }, + { + "eqptSupC": { + "attributes": { + "childAction": "", + "descr": "48x10/25G", + "dn": "topology/pod-1/node-103/sys/ch/supslot-1/sup", + "fwVer": "", + "hwVer": "0.2080", + "id": "1", + "macB": "a0-e0-00-00-00-00", + "macE": "", + "macL": "76", + "mfgTm": "2016-12-18T17:00:00.000-07:00", + "modTs": "2024-04-09T00:34:42.142-07:00", + "model": "N9K-C93180YC-FX", + "monPolDn": "uni/fabric/monfab-default", + "numP": "48", + "operSt": "online", + "partNumber": "", + "pwrSt": "on", + "rdSt": "active", + "rev": "08", + "rn": "sup", + "ser": "FDOxxxxxxxx", + "status": "", + "swCId": "274", + "swVer": "", + "type": "supervisor", + "upTs": "2024-04-09T00:34:42.142-07:00", + "vId": "V00", + "vdrId": "", + "vendor": "Cisco Systems, Inc." + } + } + }, + { + "eqptSupC": { + "attributes": { + "childAction": "", + "descr": "48x10/25G", + "dn": "topology/pod-1/node-104/sys/ch/supslot-1/sup", + "fwVer": "", + "hwVer": "0.2080", + "id": "1", + "macB": "a0-e0-00-00-00-00", + "macE": "", + "macL": "76", + "mfgTm": "2016-12-18T17:00:00.000-07:00", + "modTs": "2024-04-09T00:11:42.889-07:00", + "model": "N9K-C93180YC-FX", + "monPolDn": "uni/fabric/monfab-default", + "numP": "48", + "operSt": "online", + "partNumber": "", + "pwrSt": "on", + "rdSt": "active", + "rev": "08", + "rn": "sup", + "ser": "FDOxxxxxxxx", + "status": "", + "swCId": "274", + "swVer": "", + "type": "supervisor", + "upTs": "2024-04-09T00:11:42.889-07:00", + "vId": "V00", + "vdrId": "", + "vendor": "Cisco Systems, Inc." + } + } + }, + { + "eqptSupC": { + "attributes": { + "childAction": "", + "descr": "48x10/25G", + "dn": "topology/pod-2/node-201/sys/ch/supslot-1/sup", + "fwVer": "", + "hwVer": "1.0", + "id": "1", + "macB": "a0-e0-00-00-00-00", + "macE": "", + "macL": "72", + "mfgTm": "2016-05-29T17:00:00.000-07:00", + "modTs": "2024-04-09T00:10:36.103-07:00", + "model": "N9K-C93180YC-EX", + "monPolDn": "uni/fabric/monfab-default", + "numP": "48", + "operSt": "online", + "partNumber": "", + "pwrSt": "on", + "rdSt": "active", + "rev": "A0", + "rn": "sup", + "ser": "FDOxxxxxxxx", + "status": "", + "swCId": "262", + "swVer": "", + "type": "supervisor", + "upTs": "2024-04-09T00:10:36.103-07:00", + "vId": "V01", + "vdrId": "", + "vendor": "Cisco Systems, Inc." + } + } + }, + { + "eqptSupC": { + "attributes": { + "childAction": "", + "descr": "48x10/25G", + "dn": "topology/pod-2/node-202/sys/ch/supslot-1/sup", + "fwVer": "", + "hwVer": "1.0", + "id": "1", + "macB": "00-f6-63-10-bd-15", + "macE": "", + "macL": "72", + "mfgTm": "2016-05-29T17:00:00.000-07:00", + "modTs": "2024-04-09T00:10:41.660-07:00", + "model": "N9K-C93180YC-EX", + "monPolDn": "uni/fabric/monfab-default", + "numP": "48", + "operSt": "online", + "partNumber": "", + "pwrSt": "on", + "rdSt": "active", + "rev": "A0", + "rn": "sup", + "ser": "FDOxxxxxxxx", + "status": "", + "swCId": "262", + "swVer": "", + "type": "supervisor", + "upTs": "2024-04-09T00:10:41.660-07:00", + "vId": "V01", + "vdrId": "", + "vendor": "Cisco Systems, Inc." + } + } + }, + { + "eqptSupC": { + "attributes": { + "childAction": "", + "descr": "30x40G/100G", + "dn": "topology/pod-2/node-213/sys/ch/supslot-1/sup", + "fwVer": "", + "hwVer": "1.0", + "id": "1", + "macB": "a0-e0-00-00-00-00", + "macE": "", + "macL": "148", + "mfgTm": "2018-07-08T17:00:00.000-07:00", + "modTs": "2024-04-09T00:11:13.440-07:00", + "model": "N9K-C9336C-FX2", + "monPolDn": "uni/fabric/monfab-default", + "numP": "30", + "operSt": "online", + "partNumber": "", + "pwrSt": "on", + "rdSt": "active", + "rev": "A0", + "rn": "sup", + "ser": "FDOxxxxxxxx", + "status": "", + "swCId": "353", + "swVer": "", + "type": "supervisor", + "upTs": "2024-04-09T00:11:13.440-07:00", + "vId": "V01", + "vdrId": "", + "vendor": "Cisco Systems, Inc." + } + } + }, + { + "eqptSupC": { + "attributes": { + "childAction": "", + "descr": "30x40G/100G", + "dn": "topology/pod-2/node-214/sys/ch/supslot-1/sup", + "fwVer": "", + "hwVer": "1.0", + "id": "1", + "macB": "a0-e0-00-00-00-00", + "macE": "", + "macL": "148", + "mfgTm": "2018-07-01T17:00:00.000-07:00", + "modTs": "2024-04-09T00:11:22.800-07:00", + "model": "N9K-C9336C-FX2", + "monPolDn": "uni/fabric/monfab-default", + "numP": "30", + "operSt": "online", + "partNumber": "", + "pwrSt": "on", + "rdSt": "active", + "rev": "A0", + "rn": "sup", + "ser": "FDOxxxxxxxx", + "status": "", + "swCId": "353", + "swVer": "", + "type": "supervisor", + "upTs": "2024-04-09T00:11:22.800-07:00", + "vId": "V01", + "vdrId": "", + "vendor": "Cisco Systems, Inc." + } + } + }, + { + "eqptSupC": { + "attributes": { + "childAction": "", + "descr": "48x10/25G", + "dn": "topology/pod-3/node-301/sys/ch/supslot-1/sup", + "fwVer": "", + "hwVer": "3.0", + "id": "1", + "macB": "a0-e0-00-00-00-00", + "macE": "", + "macL": "72", + "mfgTm": "2017-08-06T17:00:00.000-07:00", + "modTs": "2024-02-21T13:21:45.814-07:00", + "model": "N9K-C93180YC-EX", + "monPolDn": "uni/fabric/monfab-default", + "numP": "48", + "operSt": "online", + "partNumber": "", + "pwrSt": "on", + "rdSt": "active", + "rev": "A0", + "rn": "sup", + "ser": "FDOxxxxxxxx", + "status": "", + "swCId": "262", + "swVer": "", + "type": "supervisor", + "upTs": "2024-02-21T13:21:45.814-07:00", + "vId": "V02", + "vdrId": "", + "vendor": "Cisco Systems, Inc." + } + } + }, + { + "eqptSupC": { + "attributes": { + "childAction": "", + "descr": "48x10/25G", + "dn": "topology/pod-3/node-302/sys/ch/supslot-1/sup", + "fwVer": "", + "hwVer": "3.0", + "id": "1", + "macB": "a0-e0-00-00-00-00", + "macE": "", + "macL": "72", + "mfgTm": "2017-08-06T17:00:00.000-07:00", + "modTs": "2024-02-21T13:25:41.376-07:00", + "model": "N9K-C93180YC-EX", + "monPolDn": "uni/fabric/monfab-default", + "numP": "48", + "operSt": "online", + "partNumber": "", + "pwrSt": "on", + "rdSt": "active", + "rev": "A0", + "rn": "sup", + "ser": "FDOxxxxxxxx", + "status": "", + "swCId": "262", + "swVer": "", + "type": "supervisor", + "upTs": "2024-02-21T13:25:41.376-07:00", + "vId": "V02", + "vdrId": "", + "vendor": "Cisco Systems, Inc." + } + } + }, + { + "eqptSupC": { + "attributes": { + "childAction": "", + "descr": "64x100G+2x10G Ethernet Switch", + "dn": "topology/pod-1/node-1001/sys/ch/supslot-1/sup", + "fwVer": "", + "hwVer": "1.0", + "id": "1", + "macB": "a0-e0-00-00-00-00", + "macE": "", + "macL": "70", + "mfgTm": "2017-12-24T17:00:00.000-07:00", + "modTs": "2024-03-27T16:10:51.786-07:00", + "model": "N9K-C9364C", + "monPolDn": "uni/fabric/monfab-default", + "numP": "0", + "operSt": "online", + "partNumber": "", + "pwrSt": "on", + "rdSt": "active", + "rev": "A0", + "rn": "sup", + "ser": "FDOxxxxxxxx", + "status": "", + "swCId": "346", + "swVer": "", + "type": "supervisor", + "upTs": "2024-03-27T16:10:51.786-07:00", + "vId": "V01", + "vdrId": "", + "vendor": "Cisco Systems, Inc." + } + } + }, + { + "eqptSupC": { + "attributes": { + "childAction": "", + "descr": "64x100G+2x10G Ethernet Switch", + "dn": "topology/pod-1/node-1002/sys/ch/supslot-1/sup", + "fwVer": "", + "hwVer": "1.0", + "id": "1", + "macB": "a0-e0-00-00-00-00", + "macE": "", + "macL": "70", + "mfgTm": "2017-12-24T17:00:00.000-07:00", + "modTs": "2024-03-27T15:50:40.468-07:00", + "model": "N9K-C9364C", + "monPolDn": "uni/fabric/monfab-default", + "numP": "0", + "operSt": "online", + "partNumber": "", + "pwrSt": "on", + "rdSt": "active", + "rev": "A0", + "rn": "sup", + "ser": "FDOxxxxxxxx", + "status": "", + "swCId": "346", + "swVer": "", + "type": "supervisor", + "upTs": "2024-03-27T15:50:40.468-07:00", + "vId": "V01", + "vdrId": "", + "vendor": "Cisco Systems, Inc." + } + } + }, + { + "eqptSupC": { + "attributes": { + "childAction": "", + "descr": "64x100G+2x10G Ethernet Switch", + "dn": "topology/pod-3/node-3001/sys/ch/supslot-1/sup", + "fwVer": "", + "hwVer": "1.0", + "id": "1", + "macB": "a0-e0-00-00-00-00", + "macE": "", + "macL": "70", + "mfgTm": "2017-12-24T17:00:00.000-07:00", + "modTs": "2024-02-21T14:54:58.930-07:00", + "model": "N9K-C9364C", + "monPolDn": "uni/fabric/monfab-default", + "numP": "0", + "operSt": "online", + "partNumber": "", + "pwrSt": "on", + "rdSt": "active", + "rev": "A0", + "rn": "sup", + "ser": "FDOxxxxxxxx", + "status": "", + "swCId": "346", + "swVer": "", + "type": "supervisor", + "upTs": "2024-02-21T14:54:58.930-07:00", + "vId": "V01", + "vdrId": "", + "vendor": "Cisco Systems, Inc." + } + } + }, + { + "eqptSupC": { + "attributes": { + "childAction": "", + "descr": "Supervisor Module", + "dn": "topology/pod-2/node-2002/sys/ch/supslot-1/sup", + "fwVer": "", + "hwVer": "2.1", + "id": "1", + "macB": "a0-e0-00-00-00-00", + "macE": "", + "macL": "18", + "mfgTm": "2017-01-01T17:00:00.000-07:00", + "modTs": "2024-03-18T11:15:47.174-07:00", + "model": "N9K-SUP-A+", + "monPolDn": "uni/fabric/monfab-default", + "numP": "0", + "operSt": "online", + "partNumber": "", + "pwrSt": "on", + "rdSt": "active", + "rev": "A0", + "rn": "sup", + "ser": "FDOxxxxxxxx", + "status": "", + "swCId": "234", + "swVer": "", + "type": "supervisor", + "upTs": "2024-03-18T11:15:47.174-07:00", + "vId": "V04", + "vdrId": "", + "vendor": "Cisco Systems, Inc." + } + } + }, + { + "eqptSupC": { + "attributes": { + "childAction": "", + "descr": "Supervisor Module", + "dn": "topology/pod-2/node-2001/sys/ch/supslot-1/sup", + "fwVer": "", + "hwVer": "2.1", + "id": "1", + "macB": "a0-e0-00-00-00-00", + "macE": "", + "macL": "18", + "mfgTm": "2017-01-01T17:00:00.000-07:00", + "modTs": "2024-03-08T15:47:14.364-07:00", + "model": "N9K-SUP-A", + "monPolDn": "uni/fabric/monfab-default", + "numP": "0", + "operSt": "online", + "partNumber": "", + "pwrSt": "on", + "rdSt": "active", + "rev": "A0", + "rn": "sup", + "ser": "FDOxxxxxxxx", + "status": "", + "swCId": "234", + "swVer": "", + "type": "supervisor", + "upTs": "2024-03-08T15:47:14.364-07:00", + "vId": "V04", + "vdrId": "", + "vendor": "Cisco Systems, Inc." + } + } + }, + { + "eqptSupC": { + "attributes": { + "childAction": "", + "descr": "Supervisor Module", + "dn": "topology/pod-2/node-2001/sys/ch/supslot-2/sup", + "fwVer": "", + "hwVer": "2.1", + "id": "2", + "macB": "a0-e0-00-00-00-00", + "macE": "", + "macL": "18", + "mfgTm": "2017-01-01T17:00:00.000-07:00", + "modTs": "2024-03-08T15:47:14.364-07:00", + "model": "N9K-SUP-A", + "monPolDn": "uni/fabric/monfab-default", + "numP": "0", + "operSt": "online", + "partNumber": "", + "pwrSt": "on", + "rdSt": "standby", + "rev": "A0", + "rn": "sup", + "ser": "FDOxxxxxxxx", + "status": "", + "swCId": "234", + "swVer": "", + "type": "supervisor", + "upTs": "2024-03-08T15:47:14.364-07:00", + "vId": "V04", + "vdrId": "", + "vendor": "Cisco Systems, Inc." + } + } + } +] diff --git a/tests/sup_a_high_memory_check/eqptSupC_SUP_Aplus.json b/tests/sup_a_high_memory_check/eqptSupC_SUP_Aplus.json new file mode 100644 index 0000000..7809302 --- /dev/null +++ b/tests/sup_a_high_memory_check/eqptSupC_SUP_Aplus.json @@ -0,0 +1,562 @@ +[ + { + "eqptSupC": { + "attributes": { + "childAction": "", + "descr": "48x10/25G", + "dn": "topology/pod-1/node-101/sys/ch/supslot-1/sup", + "fwVer": "", + "hwVer": "0.2070", + "id": "1", + "macB": "a0-e0-00-00-00-00", + "macE": "", + "macL": "76", + "mfgTm": "2016-10-30T17:00:00.000-07:00", + "modTs": "2024-04-09T00:35:05.233-07:00", + "model": "N9K-C93180YC-FX", + "monPolDn": "uni/fabric/monfab-default", + "numP": "48", + "operSt": "online", + "partNumber": "", + "pwrSt": "on", + "rdSt": "active", + "rev": "07", + "rn": "sup", + "ser": "FDOxxxxxxxx", + "status": "", + "swCId": "274", + "swVer": "", + "type": "supervisor", + "upTs": "2024-04-09T00:35:05.233-07:00", + "vId": "V00", + "vdrId": "", + "vendor": "Cisco Systems, Inc." + } + } + }, + { + "eqptSupC": { + "attributes": { + "childAction": "", + "descr": "48x10/25G", + "dn": "topology/pod-1/node-102/sys/ch/supslot-1/sup", + "fwVer": "", + "hwVer": "0.2080", + "id": "1", + "macB": "a0-e0-00-00-00-00", + "macE": "", + "macL": "76", + "mfgTm": "2016-12-18T17:00:00.000-07:00", + "modTs": "2024-04-09T00:11:41.882-07:00", + "model": "N9K-C93180YC-FX", + "monPolDn": "uni/fabric/monfab-default", + "numP": "48", + "operSt": "online", + "partNumber": "", + "pwrSt": "on", + "rdSt": "active", + "rev": "08", + "rn": "sup", + "ser": "FDOxxxxxxxx", + "status": "", + "swCId": "274", + "swVer": "", + "type": "supervisor", + "upTs": "2024-04-09T00:11:41.882-07:00", + "vId": "V00", + "vdrId": "", + "vendor": "Cisco Systems, Inc." + } + } + }, + { + "eqptSupC": { + "attributes": { + "childAction": "", + "descr": "48x10/25G", + "dn": "topology/pod-1/node-103/sys/ch/supslot-1/sup", + "fwVer": "", + "hwVer": "0.2080", + "id": "1", + "macB": "a0-e0-00-00-00-00", + "macE": "", + "macL": "76", + "mfgTm": "2016-12-18T17:00:00.000-07:00", + "modTs": "2024-04-09T00:34:42.142-07:00", + "model": "N9K-C93180YC-FX", + "monPolDn": "uni/fabric/monfab-default", + "numP": "48", + "operSt": "online", + "partNumber": "", + "pwrSt": "on", + "rdSt": "active", + "rev": "08", + "rn": "sup", + "ser": "FDOxxxxxxxx", + "status": "", + "swCId": "274", + "swVer": "", + "type": "supervisor", + "upTs": "2024-04-09T00:34:42.142-07:00", + "vId": "V00", + "vdrId": "", + "vendor": "Cisco Systems, Inc." + } + } + }, + { + "eqptSupC": { + "attributes": { + "childAction": "", + "descr": "48x10/25G", + "dn": "topology/pod-1/node-104/sys/ch/supslot-1/sup", + "fwVer": "", + "hwVer": "0.2080", + "id": "1", + "macB": "a0-e0-00-00-00-00", + "macE": "", + "macL": "76", + "mfgTm": "2016-12-18T17:00:00.000-07:00", + "modTs": "2024-04-09T00:11:42.889-07:00", + "model": "N9K-C93180YC-FX", + "monPolDn": "uni/fabric/monfab-default", + "numP": "48", + "operSt": "online", + "partNumber": "", + "pwrSt": "on", + "rdSt": "active", + "rev": "08", + "rn": "sup", + "ser": "FDOxxxxxxxx", + "status": "", + "swCId": "274", + "swVer": "", + "type": "supervisor", + "upTs": "2024-04-09T00:11:42.889-07:00", + "vId": "V00", + "vdrId": "", + "vendor": "Cisco Systems, Inc." + } + } + }, + { + "eqptSupC": { + "attributes": { + "childAction": "", + "descr": "48x10/25G", + "dn": "topology/pod-2/node-201/sys/ch/supslot-1/sup", + "fwVer": "", + "hwVer": "1.0", + "id": "1", + "macB": "a0-e0-00-00-00-00", + "macE": "", + "macL": "72", + "mfgTm": "2016-05-29T17:00:00.000-07:00", + "modTs": "2024-04-09T00:10:36.103-07:00", + "model": "N9K-C93180YC-EX", + "monPolDn": "uni/fabric/monfab-default", + "numP": "48", + "operSt": "online", + "partNumber": "", + "pwrSt": "on", + "rdSt": "active", + "rev": "A0", + "rn": "sup", + "ser": "FDOxxxxxxxx", + "status": "", + "swCId": "262", + "swVer": "", + "type": "supervisor", + "upTs": "2024-04-09T00:10:36.103-07:00", + "vId": "V01", + "vdrId": "", + "vendor": "Cisco Systems, Inc." + } + } + }, + { + "eqptSupC": { + "attributes": { + "childAction": "", + "descr": "48x10/25G", + "dn": "topology/pod-2/node-202/sys/ch/supslot-1/sup", + "fwVer": "", + "hwVer": "1.0", + "id": "1", + "macB": "00-f6-63-10-bd-15", + "macE": "", + "macL": "72", + "mfgTm": "2016-05-29T17:00:00.000-07:00", + "modTs": "2024-04-09T00:10:41.660-07:00", + "model": "N9K-C93180YC-EX", + "monPolDn": "uni/fabric/monfab-default", + "numP": "48", + "operSt": "online", + "partNumber": "", + "pwrSt": "on", + "rdSt": "active", + "rev": "A0", + "rn": "sup", + "ser": "FDOxxxxxxxx", + "status": "", + "swCId": "262", + "swVer": "", + "type": "supervisor", + "upTs": "2024-04-09T00:10:41.660-07:00", + "vId": "V01", + "vdrId": "", + "vendor": "Cisco Systems, Inc." + } + } + }, + { + "eqptSupC": { + "attributes": { + "childAction": "", + "descr": "30x40G/100G", + "dn": "topology/pod-2/node-213/sys/ch/supslot-1/sup", + "fwVer": "", + "hwVer": "1.0", + "id": "1", + "macB": "a0-e0-00-00-00-00", + "macE": "", + "macL": "148", + "mfgTm": "2018-07-08T17:00:00.000-07:00", + "modTs": "2024-04-09T00:11:13.440-07:00", + "model": "N9K-C9336C-FX2", + "monPolDn": "uni/fabric/monfab-default", + "numP": "30", + "operSt": "online", + "partNumber": "", + "pwrSt": "on", + "rdSt": "active", + "rev": "A0", + "rn": "sup", + "ser": "FDOxxxxxxxx", + "status": "", + "swCId": "353", + "swVer": "", + "type": "supervisor", + "upTs": "2024-04-09T00:11:13.440-07:00", + "vId": "V01", + "vdrId": "", + "vendor": "Cisco Systems, Inc." + } + } + }, + { + "eqptSupC": { + "attributes": { + "childAction": "", + "descr": "30x40G/100G", + "dn": "topology/pod-2/node-214/sys/ch/supslot-1/sup", + "fwVer": "", + "hwVer": "1.0", + "id": "1", + "macB": "a0-e0-00-00-00-00", + "macE": "", + "macL": "148", + "mfgTm": "2018-07-01T17:00:00.000-07:00", + "modTs": "2024-04-09T00:11:22.800-07:00", + "model": "N9K-C9336C-FX2", + "monPolDn": "uni/fabric/monfab-default", + "numP": "30", + "operSt": "online", + "partNumber": "", + "pwrSt": "on", + "rdSt": "active", + "rev": "A0", + "rn": "sup", + "ser": "FDOxxxxxxxx", + "status": "", + "swCId": "353", + "swVer": "", + "type": "supervisor", + "upTs": "2024-04-09T00:11:22.800-07:00", + "vId": "V01", + "vdrId": "", + "vendor": "Cisco Systems, Inc." + } + } + }, + { + "eqptSupC": { + "attributes": { + "childAction": "", + "descr": "48x10/25G", + "dn": "topology/pod-3/node-301/sys/ch/supslot-1/sup", + "fwVer": "", + "hwVer": "3.0", + "id": "1", + "macB": "a0-e0-00-00-00-00", + "macE": "", + "macL": "72", + "mfgTm": "2017-08-06T17:00:00.000-07:00", + "modTs": "2024-02-21T13:21:45.814-07:00", + "model": "N9K-C93180YC-EX", + "monPolDn": "uni/fabric/monfab-default", + "numP": "48", + "operSt": "online", + "partNumber": "", + "pwrSt": "on", + "rdSt": "active", + "rev": "A0", + "rn": "sup", + "ser": "FDOxxxxxxxx", + "status": "", + "swCId": "262", + "swVer": "", + "type": "supervisor", + "upTs": "2024-02-21T13:21:45.814-07:00", + "vId": "V02", + "vdrId": "", + "vendor": "Cisco Systems, Inc." + } + } + }, + { + "eqptSupC": { + "attributes": { + "childAction": "", + "descr": "48x10/25G", + "dn": "topology/pod-3/node-302/sys/ch/supslot-1/sup", + "fwVer": "", + "hwVer": "3.0", + "id": "1", + "macB": "a0-e0-00-00-00-00", + "macE": "", + "macL": "72", + "mfgTm": "2017-08-06T17:00:00.000-07:00", + "modTs": "2024-02-21T13:25:41.376-07:00", + "model": "N9K-C93180YC-EX", + "monPolDn": "uni/fabric/monfab-default", + "numP": "48", + "operSt": "online", + "partNumber": "", + "pwrSt": "on", + "rdSt": "active", + "rev": "A0", + "rn": "sup", + "ser": "FDOxxxxxxxx", + "status": "", + "swCId": "262", + "swVer": "", + "type": "supervisor", + "upTs": "2024-02-21T13:25:41.376-07:00", + "vId": "V02", + "vdrId": "", + "vendor": "Cisco Systems, Inc." + } + } + }, + { + "eqptSupC": { + "attributes": { + "childAction": "", + "descr": "64x100G+2x10G Ethernet Switch", + "dn": "topology/pod-1/node-1001/sys/ch/supslot-1/sup", + "fwVer": "", + "hwVer": "1.0", + "id": "1", + "macB": "a0-e0-00-00-00-00", + "macE": "", + "macL": "70", + "mfgTm": "2017-12-24T17:00:00.000-07:00", + "modTs": "2024-03-27T16:10:51.786-07:00", + "model": "N9K-C9364C", + "monPolDn": "uni/fabric/monfab-default", + "numP": "0", + "operSt": "online", + "partNumber": "", + "pwrSt": "on", + "rdSt": "active", + "rev": "A0", + "rn": "sup", + "ser": "FDOxxxxxxxx", + "status": "", + "swCId": "346", + "swVer": "", + "type": "supervisor", + "upTs": "2024-03-27T16:10:51.786-07:00", + "vId": "V01", + "vdrId": "", + "vendor": "Cisco Systems, Inc." + } + } + }, + { + "eqptSupC": { + "attributes": { + "childAction": "", + "descr": "64x100G+2x10G Ethernet Switch", + "dn": "topology/pod-1/node-1002/sys/ch/supslot-1/sup", + "fwVer": "", + "hwVer": "1.0", + "id": "1", + "macB": "a0-e0-00-00-00-00", + "macE": "", + "macL": "70", + "mfgTm": "2017-12-24T17:00:00.000-07:00", + "modTs": "2024-03-27T15:50:40.468-07:00", + "model": "N9K-C9364C", + "monPolDn": "uni/fabric/monfab-default", + "numP": "0", + "operSt": "online", + "partNumber": "", + "pwrSt": "on", + "rdSt": "active", + "rev": "A0", + "rn": "sup", + "ser": "FDOxxxxxxxx", + "status": "", + "swCId": "346", + "swVer": "", + "type": "supervisor", + "upTs": "2024-03-27T15:50:40.468-07:00", + "vId": "V01", + "vdrId": "", + "vendor": "Cisco Systems, Inc." + } + } + }, + { + "eqptSupC": { + "attributes": { + "childAction": "", + "descr": "64x100G+2x10G Ethernet Switch", + "dn": "topology/pod-3/node-3001/sys/ch/supslot-1/sup", + "fwVer": "", + "hwVer": "1.0", + "id": "1", + "macB": "a0-e0-00-00-00-00", + "macE": "", + "macL": "70", + "mfgTm": "2017-12-24T17:00:00.000-07:00", + "modTs": "2024-02-21T14:54:58.930-07:00", + "model": "N9K-C9364C", + "monPolDn": "uni/fabric/monfab-default", + "numP": "0", + "operSt": "online", + "partNumber": "", + "pwrSt": "on", + "rdSt": "active", + "rev": "A0", + "rn": "sup", + "ser": "FDOxxxxxxxx", + "status": "", + "swCId": "346", + "swVer": "", + "type": "supervisor", + "upTs": "2024-02-21T14:54:58.930-07:00", + "vId": "V01", + "vdrId": "", + "vendor": "Cisco Systems, Inc." + } + } + }, + { + "eqptSupC": { + "attributes": { + "childAction": "", + "descr": "Supervisor Module", + "dn": "topology/pod-2/node-2002/sys/ch/supslot-1/sup", + "fwVer": "", + "hwVer": "2.1", + "id": "1", + "macB": "a0-e0-00-00-00-00", + "macE": "", + "macL": "18", + "mfgTm": "2017-01-01T17:00:00.000-07:00", + "modTs": "2024-03-18T11:15:47.174-07:00", + "model": "N9K-SUP-A+", + "monPolDn": "uni/fabric/monfab-default", + "numP": "0", + "operSt": "online", + "partNumber": "", + "pwrSt": "on", + "rdSt": "active", + "rev": "A0", + "rn": "sup", + "ser": "FDOxxxxxxxx", + "status": "", + "swCId": "234", + "swVer": "", + "type": "supervisor", + "upTs": "2024-03-18T11:15:47.174-07:00", + "vId": "V04", + "vdrId": "", + "vendor": "Cisco Systems, Inc." + } + } + }, + { + "eqptSupC": { + "attributes": { + "childAction": "", + "descr": "Supervisor Module", + "dn": "topology/pod-2/node-2001/sys/ch/supslot-1/sup", + "fwVer": "", + "hwVer": "2.1", + "id": "1", + "macB": "a0-e0-00-00-00-00", + "macE": "", + "macL": "18", + "mfgTm": "2017-01-01T17:00:00.000-07:00", + "modTs": "2024-03-08T15:47:14.364-07:00", + "model": "N9K-SUP-A+", + "monPolDn": "uni/fabric/monfab-default", + "numP": "0", + "operSt": "online", + "partNumber": "", + "pwrSt": "on", + "rdSt": "active", + "rev": "A0", + "rn": "sup", + "ser": "FDOxxxxxxxx", + "status": "", + "swCId": "234", + "swVer": "", + "type": "supervisor", + "upTs": "2024-03-08T15:47:14.364-07:00", + "vId": "V04", + "vdrId": "", + "vendor": "Cisco Systems, Inc." + } + } + }, + { + "eqptSupC": { + "attributes": { + "childAction": "", + "descr": "Supervisor Module", + "dn": "topology/pod-2/node-2001/sys/ch/supslot-2/sup", + "fwVer": "", + "hwVer": "2.1", + "id": "2", + "macB": "a0-e0-00-00-00-00", + "macE": "", + "macL": "18", + "mfgTm": "2017-01-01T17:00:00.000-07:00", + "modTs": "2024-03-08T15:47:14.364-07:00", + "model": "N9K-SUP-A+", + "monPolDn": "uni/fabric/monfab-default", + "numP": "0", + "operSt": "online", + "partNumber": "", + "pwrSt": "on", + "rdSt": "standby", + "rev": "A0", + "rn": "sup", + "ser": "FDOxxxxxxxx", + "status": "", + "swCId": "234", + "swVer": "", + "type": "supervisor", + "upTs": "2024-03-08T15:47:14.364-07:00", + "vId": "V04", + "vdrId": "", + "vendor": "Cisco Systems, Inc." + } + } + } +] diff --git a/tests/sup_a_high_memory_check/eqptSupC_no_SUP_A_Aplus.json b/tests/sup_a_high_memory_check/eqptSupC_no_SUP_A_Aplus.json new file mode 100644 index 0000000..d840e03 --- /dev/null +++ b/tests/sup_a_high_memory_check/eqptSupC_no_SUP_A_Aplus.json @@ -0,0 +1,562 @@ +[ + { + "eqptSupC": { + "attributes": { + "childAction": "", + "descr": "48x10/25G", + "dn": "topology/pod-1/node-101/sys/ch/supslot-1/sup", + "fwVer": "", + "hwVer": "0.2070", + "id": "1", + "macB": "a0-e0-00-00-00-00", + "macE": "", + "macL": "76", + "mfgTm": "2016-10-30T17:00:00.000-07:00", + "modTs": "2024-04-09T00:35:05.233-07:00", + "model": "N9K-C93180YC-FX", + "monPolDn": "uni/fabric/monfab-default", + "numP": "48", + "operSt": "online", + "partNumber": "", + "pwrSt": "on", + "rdSt": "active", + "rev": "07", + "rn": "sup", + "ser": "FDOxxxxxxxx", + "status": "", + "swCId": "274", + "swVer": "", + "type": "supervisor", + "upTs": "2024-04-09T00:35:05.233-07:00", + "vId": "V00", + "vdrId": "", + "vendor": "Cisco Systems, Inc." + } + } + }, + { + "eqptSupC": { + "attributes": { + "childAction": "", + "descr": "48x10/25G", + "dn": "topology/pod-1/node-102/sys/ch/supslot-1/sup", + "fwVer": "", + "hwVer": "0.2080", + "id": "1", + "macB": "a0-e0-00-00-00-00", + "macE": "", + "macL": "76", + "mfgTm": "2016-12-18T17:00:00.000-07:00", + "modTs": "2024-04-09T00:11:41.882-07:00", + "model": "N9K-C93180YC-FX", + "monPolDn": "uni/fabric/monfab-default", + "numP": "48", + "operSt": "online", + "partNumber": "", + "pwrSt": "on", + "rdSt": "active", + "rev": "08", + "rn": "sup", + "ser": "FDOxxxxxxxx", + "status": "", + "swCId": "274", + "swVer": "", + "type": "supervisor", + "upTs": "2024-04-09T00:11:41.882-07:00", + "vId": "V00", + "vdrId": "", + "vendor": "Cisco Systems, Inc." + } + } + }, + { + "eqptSupC": { + "attributes": { + "childAction": "", + "descr": "48x10/25G", + "dn": "topology/pod-1/node-103/sys/ch/supslot-1/sup", + "fwVer": "", + "hwVer": "0.2080", + "id": "1", + "macB": "a0-e0-00-00-00-00", + "macE": "", + "macL": "76", + "mfgTm": "2016-12-18T17:00:00.000-07:00", + "modTs": "2024-04-09T00:34:42.142-07:00", + "model": "N9K-C93180YC-FX", + "monPolDn": "uni/fabric/monfab-default", + "numP": "48", + "operSt": "online", + "partNumber": "", + "pwrSt": "on", + "rdSt": "active", + "rev": "08", + "rn": "sup", + "ser": "FDOxxxxxxxx", + "status": "", + "swCId": "274", + "swVer": "", + "type": "supervisor", + "upTs": "2024-04-09T00:34:42.142-07:00", + "vId": "V00", + "vdrId": "", + "vendor": "Cisco Systems, Inc." + } + } + }, + { + "eqptSupC": { + "attributes": { + "childAction": "", + "descr": "48x10/25G", + "dn": "topology/pod-1/node-104/sys/ch/supslot-1/sup", + "fwVer": "", + "hwVer": "0.2080", + "id": "1", + "macB": "a0-e0-00-00-00-00", + "macE": "", + "macL": "76", + "mfgTm": "2016-12-18T17:00:00.000-07:00", + "modTs": "2024-04-09T00:11:42.889-07:00", + "model": "N9K-C93180YC-FX", + "monPolDn": "uni/fabric/monfab-default", + "numP": "48", + "operSt": "online", + "partNumber": "", + "pwrSt": "on", + "rdSt": "active", + "rev": "08", + "rn": "sup", + "ser": "FDOxxxxxxxx", + "status": "", + "swCId": "274", + "swVer": "", + "type": "supervisor", + "upTs": "2024-04-09T00:11:42.889-07:00", + "vId": "V00", + "vdrId": "", + "vendor": "Cisco Systems, Inc." + } + } + }, + { + "eqptSupC": { + "attributes": { + "childAction": "", + "descr": "48x10/25G", + "dn": "topology/pod-2/node-201/sys/ch/supslot-1/sup", + "fwVer": "", + "hwVer": "1.0", + "id": "1", + "macB": "a0-e0-00-00-00-00", + "macE": "", + "macL": "72", + "mfgTm": "2016-05-29T17:00:00.000-07:00", + "modTs": "2024-04-09T00:10:36.103-07:00", + "model": "N9K-C93180YC-EX", + "monPolDn": "uni/fabric/monfab-default", + "numP": "48", + "operSt": "online", + "partNumber": "", + "pwrSt": "on", + "rdSt": "active", + "rev": "A0", + "rn": "sup", + "ser": "FDOxxxxxxxx", + "status": "", + "swCId": "262", + "swVer": "", + "type": "supervisor", + "upTs": "2024-04-09T00:10:36.103-07:00", + "vId": "V01", + "vdrId": "", + "vendor": "Cisco Systems, Inc." + } + } + }, + { + "eqptSupC": { + "attributes": { + "childAction": "", + "descr": "48x10/25G", + "dn": "topology/pod-2/node-202/sys/ch/supslot-1/sup", + "fwVer": "", + "hwVer": "1.0", + "id": "1", + "macB": "00-f6-63-10-bd-15", + "macE": "", + "macL": "72", + "mfgTm": "2016-05-29T17:00:00.000-07:00", + "modTs": "2024-04-09T00:10:41.660-07:00", + "model": "N9K-C93180YC-EX", + "monPolDn": "uni/fabric/monfab-default", + "numP": "48", + "operSt": "online", + "partNumber": "", + "pwrSt": "on", + "rdSt": "active", + "rev": "A0", + "rn": "sup", + "ser": "FDOxxxxxxxx", + "status": "", + "swCId": "262", + "swVer": "", + "type": "supervisor", + "upTs": "2024-04-09T00:10:41.660-07:00", + "vId": "V01", + "vdrId": "", + "vendor": "Cisco Systems, Inc." + } + } + }, + { + "eqptSupC": { + "attributes": { + "childAction": "", + "descr": "30x40G/100G", + "dn": "topology/pod-2/node-213/sys/ch/supslot-1/sup", + "fwVer": "", + "hwVer": "1.0", + "id": "1", + "macB": "a0-e0-00-00-00-00", + "macE": "", + "macL": "148", + "mfgTm": "2018-07-08T17:00:00.000-07:00", + "modTs": "2024-04-09T00:11:13.440-07:00", + "model": "N9K-C9336C-FX2", + "monPolDn": "uni/fabric/monfab-default", + "numP": "30", + "operSt": "online", + "partNumber": "", + "pwrSt": "on", + "rdSt": "active", + "rev": "A0", + "rn": "sup", + "ser": "FDOxxxxxxxx", + "status": "", + "swCId": "353", + "swVer": "", + "type": "supervisor", + "upTs": "2024-04-09T00:11:13.440-07:00", + "vId": "V01", + "vdrId": "", + "vendor": "Cisco Systems, Inc." + } + } + }, + { + "eqptSupC": { + "attributes": { + "childAction": "", + "descr": "30x40G/100G", + "dn": "topology/pod-2/node-214/sys/ch/supslot-1/sup", + "fwVer": "", + "hwVer": "1.0", + "id": "1", + "macB": "a0-e0-00-00-00-00", + "macE": "", + "macL": "148", + "mfgTm": "2018-07-01T17:00:00.000-07:00", + "modTs": "2024-04-09T00:11:22.800-07:00", + "model": "N9K-C9336C-FX2", + "monPolDn": "uni/fabric/monfab-default", + "numP": "30", + "operSt": "online", + "partNumber": "", + "pwrSt": "on", + "rdSt": "active", + "rev": "A0", + "rn": "sup", + "ser": "FDOxxxxxxxx", + "status": "", + "swCId": "353", + "swVer": "", + "type": "supervisor", + "upTs": "2024-04-09T00:11:22.800-07:00", + "vId": "V01", + "vdrId": "", + "vendor": "Cisco Systems, Inc." + } + } + }, + { + "eqptSupC": { + "attributes": { + "childAction": "", + "descr": "48x10/25G", + "dn": "topology/pod-3/node-301/sys/ch/supslot-1/sup", + "fwVer": "", + "hwVer": "3.0", + "id": "1", + "macB": "a0-e0-00-00-00-00", + "macE": "", + "macL": "72", + "mfgTm": "2017-08-06T17:00:00.000-07:00", + "modTs": "2024-02-21T13:21:45.814-07:00", + "model": "N9K-C93180YC-EX", + "monPolDn": "uni/fabric/monfab-default", + "numP": "48", + "operSt": "online", + "partNumber": "", + "pwrSt": "on", + "rdSt": "active", + "rev": "A0", + "rn": "sup", + "ser": "FDOxxxxxxxx", + "status": "", + "swCId": "262", + "swVer": "", + "type": "supervisor", + "upTs": "2024-02-21T13:21:45.814-07:00", + "vId": "V02", + "vdrId": "", + "vendor": "Cisco Systems, Inc." + } + } + }, + { + "eqptSupC": { + "attributes": { + "childAction": "", + "descr": "48x10/25G", + "dn": "topology/pod-3/node-302/sys/ch/supslot-1/sup", + "fwVer": "", + "hwVer": "3.0", + "id": "1", + "macB": "a0-e0-00-00-00-00", + "macE": "", + "macL": "72", + "mfgTm": "2017-08-06T17:00:00.000-07:00", + "modTs": "2024-02-21T13:25:41.376-07:00", + "model": "N9K-C93180YC-EX", + "monPolDn": "uni/fabric/monfab-default", + "numP": "48", + "operSt": "online", + "partNumber": "", + "pwrSt": "on", + "rdSt": "active", + "rev": "A0", + "rn": "sup", + "ser": "FDOxxxxxxxx", + "status": "", + "swCId": "262", + "swVer": "", + "type": "supervisor", + "upTs": "2024-02-21T13:25:41.376-07:00", + "vId": "V02", + "vdrId": "", + "vendor": "Cisco Systems, Inc." + } + } + }, + { + "eqptSupC": { + "attributes": { + "childAction": "", + "descr": "64x100G+2x10G Ethernet Switch", + "dn": "topology/pod-1/node-1001/sys/ch/supslot-1/sup", + "fwVer": "", + "hwVer": "1.0", + "id": "1", + "macB": "a0-e0-00-00-00-00", + "macE": "", + "macL": "70", + "mfgTm": "2017-12-24T17:00:00.000-07:00", + "modTs": "2024-03-27T16:10:51.786-07:00", + "model": "N9K-C9364C", + "monPolDn": "uni/fabric/monfab-default", + "numP": "0", + "operSt": "online", + "partNumber": "", + "pwrSt": "on", + "rdSt": "active", + "rev": "A0", + "rn": "sup", + "ser": "FDOxxxxxxxx", + "status": "", + "swCId": "346", + "swVer": "", + "type": "supervisor", + "upTs": "2024-03-27T16:10:51.786-07:00", + "vId": "V01", + "vdrId": "", + "vendor": "Cisco Systems, Inc." + } + } + }, + { + "eqptSupC": { + "attributes": { + "childAction": "", + "descr": "64x100G+2x10G Ethernet Switch", + "dn": "topology/pod-1/node-1002/sys/ch/supslot-1/sup", + "fwVer": "", + "hwVer": "1.0", + "id": "1", + "macB": "a0-e0-00-00-00-00", + "macE": "", + "macL": "70", + "mfgTm": "2017-12-24T17:00:00.000-07:00", + "modTs": "2024-03-27T15:50:40.468-07:00", + "model": "N9K-C9364C", + "monPolDn": "uni/fabric/monfab-default", + "numP": "0", + "operSt": "online", + "partNumber": "", + "pwrSt": "on", + "rdSt": "active", + "rev": "A0", + "rn": "sup", + "ser": "FDOxxxxxxxx", + "status": "", + "swCId": "346", + "swVer": "", + "type": "supervisor", + "upTs": "2024-03-27T15:50:40.468-07:00", + "vId": "V01", + "vdrId": "", + "vendor": "Cisco Systems, Inc." + } + } + }, + { + "eqptSupC": { + "attributes": { + "childAction": "", + "descr": "64x100G+2x10G Ethernet Switch", + "dn": "topology/pod-3/node-3001/sys/ch/supslot-1/sup", + "fwVer": "", + "hwVer": "1.0", + "id": "1", + "macB": "a0-e0-00-00-00-00", + "macE": "", + "macL": "70", + "mfgTm": "2017-12-24T17:00:00.000-07:00", + "modTs": "2024-02-21T14:54:58.930-07:00", + "model": "N9K-C9364C", + "monPolDn": "uni/fabric/monfab-default", + "numP": "0", + "operSt": "online", + "partNumber": "", + "pwrSt": "on", + "rdSt": "active", + "rev": "A0", + "rn": "sup", + "ser": "FDOxxxxxxxx", + "status": "", + "swCId": "346", + "swVer": "", + "type": "supervisor", + "upTs": "2024-02-21T14:54:58.930-07:00", + "vId": "V01", + "vdrId": "", + "vendor": "Cisco Systems, Inc." + } + } + }, + { + "eqptSupC": { + "attributes": { + "childAction": "", + "descr": "Supervisor Module", + "dn": "topology/pod-2/node-2002/sys/ch/supslot-1/sup", + "fwVer": "", + "hwVer": "2.1", + "id": "1", + "macB": "a0-e0-00-00-00-00", + "macE": "", + "macL": "18", + "mfgTm": "2017-01-01T17:00:00.000-07:00", + "modTs": "2024-03-18T11:15:47.174-07:00", + "model": "N9K-SUP-B+", + "monPolDn": "uni/fabric/monfab-default", + "numP": "0", + "operSt": "online", + "partNumber": "", + "pwrSt": "on", + "rdSt": "active", + "rev": "A0", + "rn": "sup", + "ser": "FDOxxxxxxxx", + "status": "", + "swCId": "234", + "swVer": "", + "type": "supervisor", + "upTs": "2024-03-18T11:15:47.174-07:00", + "vId": "V04", + "vdrId": "", + "vendor": "Cisco Systems, Inc." + } + } + }, + { + "eqptSupC": { + "attributes": { + "childAction": "", + "descr": "Supervisor Module", + "dn": "topology/pod-2/node-2001/sys/ch/supslot-1/sup", + "fwVer": "", + "hwVer": "2.1", + "id": "1", + "macB": "a0-e0-00-00-00-00", + "macE": "", + "macL": "18", + "mfgTm": "2017-01-01T17:00:00.000-07:00", + "modTs": "2024-03-08T15:47:14.364-07:00", + "model": "N9K-SUP-B", + "monPolDn": "uni/fabric/monfab-default", + "numP": "0", + "operSt": "online", + "partNumber": "", + "pwrSt": "on", + "rdSt": "active", + "rev": "A0", + "rn": "sup", + "ser": "FDOxxxxxxxx", + "status": "", + "swCId": "234", + "swVer": "", + "type": "supervisor", + "upTs": "2024-03-08T15:47:14.364-07:00", + "vId": "V04", + "vdrId": "", + "vendor": "Cisco Systems, Inc." + } + } + }, + { + "eqptSupC": { + "attributes": { + "childAction": "", + "descr": "Supervisor Module", + "dn": "topology/pod-2/node-2001/sys/ch/supslot-2/sup", + "fwVer": "", + "hwVer": "2.1", + "id": "2", + "macB": "a0-e0-00-00-00-00", + "macE": "", + "macL": "18", + "mfgTm": "2017-01-01T17:00:00.000-07:00", + "modTs": "2024-03-08T15:47:14.364-07:00", + "model": "N9K-SUP-B", + "monPolDn": "uni/fabric/monfab-default", + "numP": "0", + "operSt": "online", + "partNumber": "", + "pwrSt": "on", + "rdSt": "standby", + "rev": "A0", + "rn": "sup", + "ser": "FDOxxxxxxxx", + "status": "", + "swCId": "234", + "swVer": "", + "type": "supervisor", + "upTs": "2024-03-08T15:47:14.364-07:00", + "vId": "V04", + "vdrId": "", + "vendor": "Cisco Systems, Inc." + } + } + } +] diff --git a/tests/sup_a_high_memory_check/test_sup_a_high_memory_check.py b/tests/sup_a_high_memory_check/test_sup_a_high_memory_check.py new file mode 100644 index 0000000..8098235 --- /dev/null +++ b/tests/sup_a_high_memory_check/test_sup_a_high_memory_check.py @@ -0,0 +1,60 @@ +import os +import pytest +import logging +import importlib +from helpers.utils import read_data + +script = importlib.import_module("aci-preupgrade-validation-script") + +log = logging.getLogger(__name__) +dir = os.path.dirname(os.path.abspath(__file__)) + + +# icurl queries +eqptSupCs = "eqptSupC.json" + + +@pytest.mark.parametrize( + "icurl_outputs, tversion, expected_result", + [ + # Version not affected + ( + {eqptSupCs: read_data(dir, "eqptSupC_SUP_A_Aplus.json")}, + "5.3(2d)", + script.PASS, + ), + # Version not affected + ( + {eqptSupCs: read_data(dir, "eqptSupC_SUP_A_Aplus.json")}, + "6.0(6e)", + script.PASS, + ), + # Affected version, no SUP-A nor SUP-A+ + ( + {eqptSupCs: read_data(dir, "eqptSupC_no_SUP_A_Aplus.json")}, + "6.0(3e)", + script.PASS, + ), + # Affected version, both SUP-A and SUP-A+ + ( + {eqptSupCs: read_data(dir, "eqptSupC_SUP_A_Aplus.json")}, + "6.0(3e)", + script.FAIL_O, + ), + # Affected version, SUP-A only + ( + {eqptSupCs: read_data(dir, "eqptSupC_SUP_A.json")}, + "6.0(3e)", + script.FAIL_O, + ), + # Affected version, SUP-A+ only + ( + {eqptSupCs: read_data(dir, "eqptSupC_SUP_Aplus.json")}, + "6.0(3e)", + script.FAIL_O, + ), + ], +) +def test_logic(mock_icurl, tversion, expected_result): + result = script.sup_a_high_memory_check(1, 1, script.AciVersion(tversion)) + assert result == expected_result