Skip to content

Commit 8084ae3

Browse files
shrsrlhercot
authored andcommitted
[ignore] Modified get_interfaces_payload() in ndo_service_device_cluster
1 parent c4da322 commit 8084ae3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

plugins/modules/ndo_service_device_cluster.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -688,10 +688,12 @@ def get_interfaces_payload(mso, mso_template, interfaces, reference_dict):
688688
},
689689
},
690690
}
691-
interface_payload["deviceInterfaceType"] = "bd" if (interface.get("bd_uuid") or interface.get("bd")) else "l3out"
691+
interface_payload["deviceInterfaceType"] = "l3out"
692+
interface_type = "external_epg"
693+
if interface.get("bd_uuid") or interface.get("bd"):
694+
interface_payload["deviceInterfaceType"] = interface_type = "bd"
692695
interface_uuid = interface.get("bd_uuid") or interface.get("external_epg_uuid")
693696
if interface_uuid is None:
694-
interface_type = "bd" if interface.get("bd") else "external_epg"
695697
existing_schema = schema.get_template_from_schema(
696698
interface[interface_type].get("schema"),
697699
interface[interface_type].get("schema_id"),

0 commit comments

Comments
 (0)