Skip to content

Commit cbda0df

Browse files
juburnetGitHub Enterprise
authored andcommitted
updates for MCFG (netascode#428)
1 parent 9ff24ca commit cbda0df

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

templates/nd/tests/config/overlay/networks.robot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ Verify Network {{ network.name }} Attachments
133133
${d_normalized}= Evaluate [str(__import__('ipaddress').ip_address(ip)) for ip in ${d_value}]
134134
Lists Should Be Equal ${r_normalized} ${d_normalized} ignore_order=True
135135

136-
{% elif vxlan.fabric.type == "MSD" %}
136+
{% elif vxlan.fabric.type == "MSD" or vxlan.fabric.type == "MCFG" %}
137137
${r_value}= Get Value From Json ${r_networks_attachments.json()} $[*].lanAttachList[?(@.networkName=="{{ network.name }}" & @.lanAttachState=="DEPLOYED")].switchName
138138
{% set switches = (vxlan.multisite.overlay | default() | json_query(query))[0] %}
139139

templates/nd/tests/config/overlay/vrfs.robot

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ Verify VRF {{ vrf.name }} Attachments
109109
${d_normalized}= Evaluate [str(__import__('ipaddress').ip_address(ip)) for ip in ${d_value}]
110110
Lists Should Be Equal ${r_normalized} ${d_normalized} ignore_order=True
111111

112-
{% elif vxlan.fabric.type == "MSD" %}
113-
# In MSD we don't know IP address instead use switchName to compare
112+
{% elif vxlan.fabric.type == "MSD" or vxlan.fabric.type == "MCFG" %}
113+
# In MSD/MCFG we don't know IP address instead use switchName to compare
114114
${r_value}= Get Value From Json ${r_vrfs_attachments.json()} $[*][?(@.vrfName=="{{ vrf.name }}" & @.lanAttachState=="DEPLOYED")].switchName
115115
{% set switches = (vxlan.multisite.overlay | default() | json_query(query))[0] %}
116116

0 commit comments

Comments
 (0)