aboutsummaryrefslogtreecommitdiffstats
path: root/ice_validator/tests/utils
diff options
context:
space:
mode:
authorLovett, Trevor <trevor.lovett@att.com>2020-01-22 10:18:45 -0600
committerLovett, Trevor (tl2972) <tl2972@att.com>2020-01-22 10:22:16 -0600
commit8bf942550ff616c0c98fbe8ed7abfa3c7559c79a (patch)
tree83ce16b6ade1593898575f68f76bf385e602456b /ice_validator/tests/utils
parentef3e0da3f42e17280a3b702ca332bdf2f632f793 (diff)
VVP - Removed unused function and class
Signed-off-by: Lovett, Trevor <trevor.lovett@att.com> Issue-ID: VVP-366 Change-Id: I02c952662bb8ed931f46c58cbf4ab100435d00fb
Diffstat (limited to 'ice_validator/tests/utils')
-rw-r--r--ice_validator/tests/utils/ports.py16
1 files changed, 0 insertions, 16 deletions
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