Skip to content

Commit 8a8bbc6

Browse files
committed
fix: #277 Fabric Link Redundancy with RL
1 parent 4b3d653 commit 8a8bbc6

3 files changed

Lines changed: 26 additions & 1 deletion

File tree

aci-preupgrade-validation-script.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4543,6 +4543,9 @@ def fabric_link_redundancy_check(**kwargs):
45434543
leafs = {}
45444544
t2leafs = {}
45454545
for node in fabricNodes:
4546+
if node["fabricNode"]["attributes"]["nodeType"] == "remote-leaf-wan":
4547+
# Not applicable to remote leafs, skip
4548+
continue
45464549
dn = node["fabricNode"]["attributes"]["dn"]
45474550
name = node["fabricNode"]["attributes"]["name"]
45484551
if node["fabricNode"]["attributes"]["role"] == "spine":

tests/fabric_link_redundancy_check/fabricNode.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,28 @@
5454
}
5555
}
5656
},
57+
{
58+
"fabricNode": {
59+
"attributes": {
60+
"dn": "topology/pod-1/node-121",
61+
"id": "121",
62+
"name": "RL_LF121",
63+
"role": "leaf",
64+
"nodeType": "remote-leaf-wan"
65+
}
66+
}
67+
},
68+
{
69+
"fabricNode": {
70+
"attributes": {
71+
"dn": "topology/pod-1/node-122",
72+
"id": "122",
73+
"name": "RL_LF122",
74+
"role": "leaf",
75+
"nodeType": "remote-leaf-wan"
76+
}
77+
}
78+
},
5779
{
5880
"fabricNode": {
5981
"attributes": {

tests/fabric_link_redundancy_check/test_fabric_link_redundancy_check.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
},
4747
script.FAIL_O,
4848
),
49-
# PASSING = ALL LEAF SWITCHES ARE MULTI-HOMED
49+
# PASSING = ALL LEAF SWITCHES ARE MULTI-HOMED except for RL
5050
(
5151
{
5252
fabric_nodes_api: read_data(dir, "fabricNode.json"),

0 commit comments

Comments
 (0)