From 8bf942550ff616c0c98fbe8ed7abfa3c7559c79a Mon Sep 17 00:00:00 2001 From: "Lovett, Trevor" Date: Wed, 22 Jan 2020 10:18:45 -0600 Subject: VVP - Removed unused function and class Signed-off-by: Lovett, Trevor Issue-ID: VVP-366 Change-Id: I02c952662bb8ed931f46c58cbf4ab100435d00fb --- ice_validator/tests/utils/ports.py | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'ice_validator/tests/utils') diff --git a/ice_validator/tests/utils/ports.py b/ice_validator/tests/utils/ports.py index d6c3be9..4dbbb4f 100644 --- a/ice_validator/tests/utils/ports.py +++ b/ice_validator/tests/utils/ports.py @@ -243,19 +243,3 @@ def mismatch_resource_and_parameter_attribute(check, resource_re_match, paramete return ("{0} {1} does not match parameter {2} {1}").format( rid, check, parameter ) - - -def get_list_of_ports_attached_to_nova_server(nova_server): - networks_list = nova_server.get("properties", {}).get("networks") - - port_ids = [] - if networks_list: - for network in networks_list: - network_prop = network.get("port") - if network_prop: - pid = network_prop.get("get_param") - if not pid: - pid = network_prop.get("get_resource") - port_ids.append(pid) - - return port_ids -- cgit 1.2.3-korg