diff options
author | 2020-01-22 10:18:45 -0600 | |
---|---|---|
committer | 2020-01-22 10:22:16 -0600 | |
commit | 8bf942550ff616c0c98fbe8ed7abfa3c7559c79a (patch) | |
tree | 83ce16b6ade1593898575f68f76bf385e602456b /ice_validator | |
parent | ef3e0da3f42e17280a3b702ca332bdf2f632f793 (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')
-rw-r--r-- | ice_validator/tests/structures.py | 23 | ||||
-rw-r--r-- | ice_validator/tests/utils/ports.py | 16 |
2 files changed, 0 insertions, 39 deletions
diff --git a/ice_validator/tests/structures.py b/ice_validator/tests/structures.py index aaed8d1..535eeac 100644 --- a/ice_validator/tests/structures.py +++ b/ice_validator/tests/structures.py @@ -427,29 +427,6 @@ class ContrailV2VirtualNetworkProcessor(HeatProcessor): ) -class HeatResourceGroupProcessor(HeatProcessor): - """ Heat ResourceGroup - """ - - resource_type = "OS::Heat::ResourceGroup" - re_rids = collections.OrderedDict( - [ - ( - "subint", - _get_regex( - r"(?P<vm_type>.+)" - r"_(?P<vm_type_index>\d+)" - r"_subint" - r"_(?P<network_role>.+)" - r"_port_(?P<port_index>\d+)" - r"_subinterfaces" - r"$" - ), - ) - ] - ) - - class NeutronNetProcessor(HeatProcessor): """ Neutron Net resource """ 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 |