Skip to content

Commit 6f82308

Browse files
Updated the if condition for maintenance release,6.1(5e) and variable name for impacted nodes.Also, updated pytest test cases
1 parent 7bc42c4 commit 6f82308

3 files changed

Lines changed: 24 additions & 20 deletions

File tree

aci-preupgrade-validation-script.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6059,7 +6059,7 @@ def n9k_c9408_model_lem_count_check(tversion, fabric_nodes, **kwargs):
60596059
headers = ["Node ID", "Switch Model", "LEM Model", "LEM Count"]
60606060
data = []
60616061
recommended_action = (
6062-
"Upgrade from pre-16.1(2f) to 16.1(2f) or later on N9K-C9408 with 6 or more N9K-X9400-16W LEMs can result in boot loop. Choose a different version."
6062+
"Upgrade from pre-16.1(2f) to 16.1(2f) or later on N9K-C9408 with 6 or more N9K-X9400-16W LEMs can result in boot loop. Choose a different version."
60636063
)
60646064
doc_url = 'https://datacenter.github.io/ACI-Pre-Upgrade-Validation-Script/validations/#n9k-c9408-with-6-n9k-x9400-16w-lems'
60656065

@@ -6437,4 +6437,4 @@ def main(_args=None):
64376437
msg = "Abort due to unexpected error - {}".format(e)
64386438
prints(msg)
64396439
log.error(msg, exc_info=True)
6440-
sys.exit(1)
6440+
sys.exit(1)

docs/docs/validations.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,14 +187,18 @@ Items | Defect | This Script
187187
[Nexus 950X FM or LC Might Fail to boot after reload][d20] | CSCvg26013 | :white_check_mark: | :no_entry_sign:
188188
[Stale Decommissioned Spine][d21] | CSCwf58763 | :white_check_mark: | :no_entry_sign:
189189
[N9K-C9408 Platform Model][d22] | CSCwk77800 | :white_check_mark: | :no_entry_sign:
190-
[N9K-C9408 with 6+ N9K-X9400-16W LEMs][d29] | CSCws82819 | :white_check_mark: | :no_entry_sign:
191190
[PBR High Scale][d23] | CSCwi66348 | :white_check_mark: | :no_entry_sign:
192191
[Standby Sup Image Sync][d24] | CSCwi66348 | :white_check_mark: | :no_entry_sign:
193192
[Observer Database Size][d25] | CSCvw45531 | :white_check_mark: | :no_entry_sign:
194193
[Stale pconsRA Object][d26] | CSCwp22212 | :warning:{title="Deprecated"} | :no_entry_sign:
195194
[ISIS DTEPs Byte Size][d27] | CSCwp15375 | :white_check_mark: | :no_entry_sign:
195+
<<<<<<< HEAD
196196
[Policydist configpushShardCont Crash][d28] | CSCwp95515 | :white_check_mark: | :no_entry_sign:
197197
[Auto Firmware Update on Switch Discovery][d29] | CSCwe83941 | :white_check_mark: | :no_entry_sign:
198+
=======
199+
[Policydist configpushShardCont Crash][d28] | CSCwp95515 | :white_check_mark: |
200+
[N9K-C9408 with 6+ N9K-X9400-16W LEMs][d29] | CSCws82819 | :white_check_mark: | :no_entry_sign:
201+
>>>>>>> Updated the if condition for maintenance release,6.1(5e) and variable name for impacted nodes.Also, updated pytest test cases
198202
199203
[d1]: #ep-announce-compatibility
200204
[d2]: #eventmgr-db-size-defect-susceptibility

tests/checks/n9k_c9408_model_lem_count_check/test_n9k_c9408_model_lem_count_check.py

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
[],
3737
script.VER_NOT_AFFECTED,
3838
),
39-
# Version not affected (higher than 6.2(1g))
39+
# Applicable version but no N9K-C9408 nodes found
4040
(
4141
{eqptLC_api: read_data(dir, "eqptLC_6_node.json")},
4242
"6.1(2f)",
@@ -54,7 +54,7 @@
5454
[],
5555
"",
5656
),
57-
# Applicable version, exactly 5 LEMs -> PASS
57+
# Applicable version, C9408 exists, with <=5 LEMs -> PASS
5858
(
5959
{eqptLC_api: read_data(dir, "eqptLC_5_node.json")},
6060
"6.2(1g)",
@@ -63,6 +63,15 @@
6363
[],
6464
"",
6565
),
66+
# Applicable version with 6 LEMs -> FAIL_O
67+
(
68+
{eqptLC_api: read_data(dir, "eqptLC_6_node.json")},
69+
"6.2(1g)",
70+
read_data(dir, "fabricNode_n9k_c9408.json"),
71+
script.FAIL_O,
72+
[["101", "N9K-C9408", "N9K-X9400-16W", 6]],
73+
"",
74+
),
6675
# Applicable mid-train version 6.1(5e), less than 6 LEMs on C9408 -> PASS
6776
(
6877
{eqptLC_api: read_data(dir, "eqptLC_5_node.json")},
@@ -81,14 +90,14 @@
8190
[["101", "N9K-C9408", "N9K-X9400-16W", 6]],
8291
"",
8392
),
84-
# Applicable mid-train version 6.1(5e), more than 6 LEMs on C9408 -> FAIL_O
93+
# Version not affected (fixed after 6.1(5e))
8594
(
86-
{eqptLC_api: read_data(dir, "eqptLC_7_node.json")},
87-
"6.1(5e)",
95+
{eqptLC_api: read_data(dir, "eqptLC_6_node.json")},
96+
"6.1(5f)",
8897
read_data(dir, "fabricNode_n9k_c9408.json"),
89-
script.FAIL_O,
90-
[["101", "N9K-C9408", "N9K-X9400-16W", 7]],
91-
"",
98+
script.NA,
99+
[],
100+
script.VER_NOT_AFFECTED,
92101
),
93102
# Applicable version, 6 LEMs on C9408 -> FAIL_O
94103
(
@@ -99,15 +108,6 @@
99108
[["101", "N9K-C9408", "N9K-X9400-16W", 6]],
100109
"",
101110
),
102-
# Applicable version, more than 6 LEMs on C9408 -> FAIL_O
103-
(
104-
{eqptLC_api: read_data(dir, "eqptLC_7_node.json")},
105-
"6.1(2f)",
106-
read_data(dir, "fabricNode_n9k_c9408.json"),
107-
script.FAIL_O,
108-
[["101", "N9K-C9408", "N9K-X9400-16W", 7]],
109-
"",
110-
),
111111
# Count only C9408 nodes and only matching LEM model
112112
(
113113
{eqptLC_api: read_data(dir, "eqptLC_mixed.json")},

0 commit comments

Comments
 (0)