diff options
author | 2018-11-29 20:46:49 +0530 | |
---|---|---|
committer | 2018-12-02 09:47:45 +0000 | |
commit | 6ce1094d509195fe484761467a67a6b3757593b0 (patch) | |
tree | 4c3b0df6711f80c0f20c20ccf013727ff90428d5 /openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/multiLevel/allPatternsDependsOnConnectivity/out/Nested_cmaui_1c1_main_1ServiceTemplate.yaml | |
parent | c2a1b7c2eea934f309838f0082b2b851012be9a1 (diff) |
Fix - Port type and vmtype underscore issue
1. Fix for consolidation of VMs for cases when:
a. VM type contains an underscore
b. Multiple ports per network role
2. Updated the unit test cases and test data
Change-Id: I875f3c8384f8ef2c2aa6add9e30a5f8899ae1a71
Issue-ID: SDC-1966
Signed-off-by: ojasdubey <ojas.dubey@amdocs.com>
Diffstat (limited to 'openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/multiLevel/allPatternsDependsOnConnectivity/out/Nested_cmaui_1c1_main_1ServiceTemplate.yaml')
1 files changed, 98 insertions, 98 deletions
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/multiLevel/allPatternsDependsOnConnectivity/out/Nested_cmaui_1c1_main_1ServiceTemplate.yaml b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/multiLevel/allPatternsDependsOnConnectivity/out/Nested_cmaui_1c1_main_1ServiceTemplate.yaml index c68dba003a..c4dca48e61 100644 --- a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/multiLevel/allPatternsDependsOnConnectivity/out/Nested_cmaui_1c1_main_1ServiceTemplate.yaml +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/multiLevel/allPatternsDependsOnConnectivity/out/Nested_cmaui_1c1_main_1ServiceTemplate.yaml @@ -11,25 +11,18 @@ node_types: derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server topology_template: inputs: - port_cmaui_port_vlan_requirements: + port_cmaui_1c1_main_mgmt_port_0_ip_requirements: type: list required: true entry_schema: - type: org.openecomp.datatypes.network.VlanRequirements - port_cmaui_port_fixed_ips: - type: list - required: true - entry_schema: - type: org.openecomp.datatypes.heat.neutron.port.FixedIps - port_cmaui_port_exCP_naming: - type: org.openecomp.datatypes.Naming + type: org.openecomp.datatypes.network.IpRequirements + port_cmaui_1c1_main_mgmt_port_0_network_role_tag: + type: string required: true - port_cmaui_port_network: - type: list + port_cmaui_1c1_main_mgmt_port_0_mac_requirements: + type: org.openecomp.datatypes.network.MacRequirements required: true - entry_schema: - type: string - port_cmaui_port_related_networks: + port_cmaui_1c1_main_mgmt_port_0_related_networks: type: list required: true entry_schema: @@ -41,108 +34,118 @@ topology_template: default: 0 constraints: - greater_or_equal: 0 - port_cmaui_port_network_role_tag: - type: string - required: true - port_cmaui_port_order: - type: integer + port_cmaui_1c1_main_mgmt_port_0_fixed_ips: + type: list required: true + entry_schema: + type: org.openecomp.datatypes.heat.neutron.port.FixedIps vm_flavor_name: type: string required: true - port_cmaui_port_mac_requirements: - type: org.openecomp.datatypes.network.MacRequirements - required: true - port_cmaui_port_replacement_policy: + port_cmaui_1c1_main_mgmt_port_0_network: type: list required: true entry_schema: type: string - port_cmaui_port_network_role: - type: string + port_cmaui_1c1_main_mgmt_port_0_order: + type: integer required: true + port_cmaui_1c1_main_mgmt_port_0_exCP_naming: + type: org.openecomp.datatypes.Naming + required: true + port_cmaui_1c1_main_mgmt_port_0_vlan_requirements: + type: list + required: true + entry_schema: + type: org.openecomp.datatypes.network.VlanRequirements vm_image_name: type: string required: true - port_cmaui_port_ip_requirements: + port_cmaui_1c1_main_mgmt_port_0_replacement_policy: type: list required: true entry_schema: - type: org.openecomp.datatypes.network.IpRequirements + type: string compute_cmaui_1c1_main_availability_zone: type: list required: true entry_schema: type: string + port_cmaui_1c1_main_mgmt_port_0_network_role: + type: string + required: true compute_cmaui_1c1_main_name: type: list required: true entry_schema: type: string - port_cmaui_port_subnetpoolid: + port_cmaui_1c1_main_mgmt_port_0_subnetpoolid: type: string required: true node_templates: - cmaui_1c1_main_cmaui_port: + cmaui_1c1_main: + type: org.openecomp.resource.vfc.compute.nodes.heat.cmaui_1c1_main + properties: + availability_zone: + get_input: + - compute_cmaui_1c1_main_availability_zone + - index_value + flavor: + get_input: vm_flavor_name + image: + get_input: vm_image_name + name: + get_input: + - compute_cmaui_1c1_main_name + - index_value + cmaui_1c1_main_cmaui_1c1_main_mgmt_port_0: type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port properties: replacement_policy: get_input: - - port_cmaui_port_replacement_policy + - port_cmaui_1c1_main_mgmt_port_0_replacement_policy - index_value mac_requirements: - get_input: port_cmaui_port_mac_requirements + get_input: port_cmaui_1c1_main_mgmt_port_0_mac_requirements order: - get_input: port_cmaui_port_order + get_input: port_cmaui_1c1_main_mgmt_port_0_order exCP_naming: - get_input: port_cmaui_port_exCP_naming + get_input: port_cmaui_1c1_main_mgmt_port_0_exCP_naming vlan_requirements: - get_input: port_cmaui_port_vlan_requirements + get_input: port_cmaui_1c1_main_mgmt_port_0_vlan_requirements subinterface_indicator: false ip_requirements: - get_input: port_cmaui_port_ip_requirements + get_input: port_cmaui_1c1_main_mgmt_port_0_ip_requirements related_networks: - get_input: port_cmaui_port_related_networks + get_input: port_cmaui_1c1_main_mgmt_port_0_related_networks network_role_tag: - get_input: port_cmaui_port_network_role_tag + get_input: port_cmaui_1c1_main_mgmt_port_0_network_role_tag network_role: - get_input: port_cmaui_port_network_role + get_input: port_cmaui_1c1_main_mgmt_port_0_network_role fixed_ips: get_input: - - port_cmaui_port_fixed_ips + - port_cmaui_1c1_main_mgmt_port_0_fixed_ips - index_value subnetpoolid: - get_input: port_cmaui_port_subnetpoolid + get_input: port_cmaui_1c1_main_mgmt_port_0_subnetpoolid network: get_input: - - port_cmaui_port_network + - port_cmaui_1c1_main_mgmt_port_0_network - index_value requirements: - binding: capability: tosca.capabilities.network.Bindable node: cmaui_1c1_main relationship: tosca.relationships.network.BindsTo - cmaui_1c1_main: - type: org.openecomp.resource.vfc.compute.nodes.heat.cmaui_1c1_main - properties: - availability_zone: - get_input: - - compute_cmaui_1c1_main_availability_zone - - index_value - flavor: - get_input: vm_flavor_name - image: - get_input: vm_image_name - name: - get_input: - - compute_cmaui_1c1_main_name - - index_value substitution_mappings: node_type: org.openecomp.resource.abstract.nodes.cmaui_1c1_main_1 capabilities: disk.device.iops_cmaui_1c1_main: - cmaui_1c1_main - disk.device.iops + network.incoming.bytes.rate_cmaui_1c1_main_cmaui_1c1_main_mgmt_port_0: + - cmaui_1c1_main_cmaui_1c1_main_mgmt_port_0 + - network.incoming.bytes.rate disk.device.write.bytes.rate_cmaui_1c1_main: - cmaui_1c1_main - disk.device.write.bytes.rate @@ -158,9 +161,6 @@ topology_template: disk.latency_cmaui_1c1_main: - cmaui_1c1_main - disk.latency - network.incoming.bytes.rate_cmaui_1c1_main_cmaui_port: - - cmaui_1c1_main_cmaui_port - - network.incoming.bytes.rate disk.read.requests_cmaui_1c1_main: - cmaui_1c1_main - disk.read.requests @@ -182,9 +182,9 @@ topology_template: disk.device.read.requests_cmaui_1c1_main: - cmaui_1c1_main - disk.device.read.requests - attachment_cmaui_1c1_main_cmaui_port: - - cmaui_1c1_main_cmaui_port - - attachment + forwarder_cmaui_1c1_main_cmaui_1c1_main_mgmt_port_0: + - cmaui_1c1_main_cmaui_1c1_main_mgmt_port_0 + - forwarder instance_cmaui_1c1_main: - cmaui_1c1_main - instance @@ -194,15 +194,21 @@ topology_template: disk.device.write.bytes_cmaui_1c1_main: - cmaui_1c1_main - disk.device.write.bytes - forwarder_cmaui_1c1_main_cmaui_port: - - cmaui_1c1_main_cmaui_port - - forwarder + network.outpoing.packets_cmaui_1c1_main_cmaui_1c1_main_mgmt_port_0: + - cmaui_1c1_main_cmaui_1c1_main_mgmt_port_0 + - network.outpoing.packets + network.incoming.packets.rate_cmaui_1c1_main_cmaui_1c1_main_mgmt_port_0: + - cmaui_1c1_main_cmaui_1c1_main_mgmt_port_0 + - network.incoming.packets.rate vcpus_cmaui_1c1_main: - cmaui_1c1_main - vcpus disk.read.bytes.rate_cmaui_1c1_main: - cmaui_1c1_main - disk.read.bytes.rate + feature_cmaui_1c1_main_cmaui_1c1_main_mgmt_port_0: + - cmaui_1c1_main_cmaui_1c1_main_mgmt_port_0 + - feature disk.device.capacity_cmaui_1c1_main: - cmaui_1c1_main - disk.device.capacity @@ -212,21 +218,18 @@ topology_template: disk.usage_cmaui_1c1_main: - cmaui_1c1_main - disk.usage - network.incoming.bytes_cmaui_1c1_main_cmaui_port: - - cmaui_1c1_main_cmaui_port - - network.incoming.bytes disk.device.read.bytes_cmaui_1c1_main: - cmaui_1c1_main - disk.device.read.bytes - network.outgoing.bytes.rate_cmaui_1c1_main_cmaui_port: - - cmaui_1c1_main_cmaui_port - - network.outgoing.bytes.rate memory.usage_cmaui_1c1_main: - cmaui_1c1_main - memory.usage - network.outpoing.packets_cmaui_1c1_main_cmaui_port: - - cmaui_1c1_main_cmaui_port - - network.outpoing.packets + network.outgoing.bytes.rate_cmaui_1c1_main_cmaui_1c1_main_mgmt_port_0: + - cmaui_1c1_main_cmaui_1c1_main_mgmt_port_0 + - network.outgoing.bytes.rate + network.incoming.packets_cmaui_1c1_main_cmaui_1c1_main_mgmt_port_0: + - cmaui_1c1_main_cmaui_1c1_main_mgmt_port_0 + - network.incoming.packets memory.resident_cmaui_1c1_main: - cmaui_1c1_main - memory.resident @@ -239,33 +242,27 @@ topology_template: disk.ephemeral.size_cmaui_1c1_main: - cmaui_1c1_main - disk.ephemeral.size - network.incoming.packets_cmaui_1c1_main_cmaui_port: - - cmaui_1c1_main_cmaui_port - - network.incoming.packets + network.outgoing.bytes_cmaui_1c1_main_cmaui_1c1_main_mgmt_port_0: + - cmaui_1c1_main_cmaui_1c1_main_mgmt_port_0 + - network.outgoing.bytes disk.write.requests.rate_cmaui_1c1_main: - cmaui_1c1_main - disk.write.requests.rate - feature_cmaui_1c1_main_cmaui_port: - - cmaui_1c1_main_cmaui_port - - feature - network.outgoing.packets.rate_cmaui_1c1_main_cmaui_port: - - cmaui_1c1_main_cmaui_port - - network.outgoing.packets.rate + network.incoming.bytes_cmaui_1c1_main_cmaui_1c1_main_mgmt_port_0: + - cmaui_1c1_main_cmaui_1c1_main_mgmt_port_0 + - network.incoming.bytes disk.root.size_cmaui_1c1_main: - cmaui_1c1_main - disk.root.size host_cmaui_1c1_main: - cmaui_1c1_main - host - network.incoming.packets.rate_cmaui_1c1_main_cmaui_port: - - cmaui_1c1_main_cmaui_port - - network.incoming.packets.rate disk.write.bytes.rate_cmaui_1c1_main: - cmaui_1c1_main - disk.write.bytes.rate - network.outgoing.bytes_cmaui_1c1_main_cmaui_port: - - cmaui_1c1_main_cmaui_port - - network.outgoing.bytes + binding_cmaui_1c1_main_cmaui_1c1_main_mgmt_port_0: + - cmaui_1c1_main_cmaui_1c1_main_mgmt_port_0 + - binding memory_cmaui_1c1_main: - cmaui_1c1_main - memory @@ -275,15 +272,18 @@ topology_template: cpu_cmaui_1c1_main: - cmaui_1c1_main - cpu + attachment_cmaui_1c1_main_cmaui_1c1_main_mgmt_port_0: + - cmaui_1c1_main_cmaui_1c1_main_mgmt_port_0 + - attachment disk.device.allocation_cmaui_1c1_main: - cmaui_1c1_main - disk.device.allocation - binding_cmaui_1c1_main_cmaui_port: - - cmaui_1c1_main_cmaui_port - - binding disk.device.usage_cmaui_1c1_main: - cmaui_1c1_main - disk.device.usage + network.outgoing.packets.rate_cmaui_1c1_main_cmaui_1c1_main_mgmt_port_0: + - cmaui_1c1_main_cmaui_1c1_main_mgmt_port_0 + - network.outgoing.packets.rate os_cmaui_1c1_main: - cmaui_1c1_main - os @@ -300,15 +300,15 @@ topology_template: - cmaui_1c1_main - disk.allocation requirements: - dependency_cmaui_1c1_main_cmaui_port: - - cmaui_1c1_main_cmaui_port - - dependency - link_cmaui_1c1_main_cmaui_port: - - cmaui_1c1_main_cmaui_port + link_cmaui_1c1_main_cmaui_1c1_main_mgmt_port_0: + - cmaui_1c1_main_cmaui_1c1_main_mgmt_port_0 - link local_storage_cmaui_1c1_main: - cmaui_1c1_main - local_storage + dependency_cmaui_1c1_main_cmaui_1c1_main_mgmt_port_0: + - cmaui_1c1_main_cmaui_1c1_main_mgmt_port_0 + - dependency dependency_cmaui_1c1_main: - cmaui_1c1_main - - dependency
\ No newline at end of file + - dependency |