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/nestedSingleCompute/duplicateReqs/out/Nested_oamServiceTemplate.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/nestedSingleCompute/duplicateReqs/out/Nested_oamServiceTemplate.yaml')
1 files changed, 201 insertions, 201 deletions
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedSingleCompute/duplicateReqs/out/Nested_oamServiceTemplate.yaml b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedSingleCompute/duplicateReqs/out/Nested_oamServiceTemplate.yaml index ea3d737e38..3babb784c2 100644 --- a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedSingleCompute/duplicateReqs/out/Nested_oamServiceTemplate.yaml +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedSingleCompute/duplicateReqs/out/Nested_oamServiceTemplate.yaml @@ -11,51 +11,56 @@ node_types: derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server topology_template: inputs: - port_oam_oam_0_port_name: + port_oam_oam_0_port_1_network_role: + type: string + required: true + port_oam_oam_0_port_1_ip_requirements: type: list required: true entry_schema: - type: string - port_oam_internal_0_port_order: - type: integer + type: org.openecomp.datatypes.network.IpRequirements + port_oam_internal_0_port_0_fixed_ips: + type: list required: true - port_oam_internal_0_port_subnetpoolid: + entry_schema: + type: org.openecomp.datatypes.heat.neutron.port.FixedIps + vm_flavor_name: type: string required: true - port_oam_oam_0_port_fixed_ips: + port_oam_internal_0_port_0_vlan_requirements: type: list required: true entry_schema: - type: org.openecomp.datatypes.heat.neutron.port.FixedIps - vm_flavor_name: + type: org.openecomp.datatypes.network.VlanRequirements + port_oam_internal_0_port_0_subnetpoolid: type: string required: true - port_oam_oam_0_port_vlan_requirements: + port_oam_oam_0_port_1_vlan_requirements: type: list required: true entry_schema: type: org.openecomp.datatypes.network.VlanRequirements - port_oam_oam_0_port_mac_requirements: + port_oam_internal_0_port_0_mac_requirements: type: org.openecomp.datatypes.network.MacRequirements required: true - port_oam_internal_0_port_ip_requirements: + port_oam_oam_0_port_1_fixed_ips: type: list required: true entry_schema: - type: org.openecomp.datatypes.network.IpRequirements - port_oam_internal_0_port_network: + type: org.openecomp.datatypes.heat.neutron.port.FixedIps + port_oam_oam_0_port_1_related_networks: type: list required: true entry_schema: - type: string - port_oam_oam_0_port_order: - type: integer - required: true - port_oam_internal_0_port_related_networks: + type: org.openecomp.datatypes.network.RelatedNetworksAssignments + port_oam_internal_0_port_0_network: type: list required: true entry_schema: - type: org.openecomp.datatypes.network.RelatedNetworksAssignments + type: string + port_oam_oam_0_port_1_order: + type: integer + required: true vm_image_name: type: string required: true @@ -64,38 +69,40 @@ topology_template: required: true entry_schema: type: boolean - port_oam_oam_0_port_network_role: + port_oam_oam_0_port_1_allowed_address_pairs: + type: list + required: true + entry_schema: + type: org.openecomp.datatypes.heat.network.AddressPair + port_oam_internal_0_port_0_network_role_tag: type: string required: true - port_oam_internal_0_port_exCP_naming: - type: org.openecomp.datatypes.Naming + port_oam_oam_0_port_1_mac_requirements: + type: org.openecomp.datatypes.network.MacRequirements required: true - port_oam_internal_0_port_name: + port_oam_internal_0_port_0_name: type: list required: true entry_schema: type: string - port_oam_oam_0_port_allowed_address_pairs: + port_oam_oam_0_port_1_network: type: list required: true entry_schema: - type: org.openecomp.datatypes.heat.network.AddressPair - port_oam_internal_0_port_security_groups: + type: string + port_oam_oam_0_port_1_exCP_naming: + type: org.openecomp.datatypes.Naming + required: true + port_oam_internal_0_port_0_security_groups: type: list required: true entry_schema: type: json - port_oam_internal_0_port_fixed_ips: + port_oam_oam_0_port_1_security_groups: type: list required: true entry_schema: - type: org.openecomp.datatypes.heat.neutron.port.FixedIps - port_oam_oam_0_port_network_role_tag: - type: string - required: true - port_oam_oam_0_port_subnetpoolid: - type: string - required: true + type: json index_value: type: integer description: Index value of this substitution service template runtime instance @@ -103,7 +110,10 @@ topology_template: default: 0 constraints: - greater_or_equal: 0 - port_oam_oam_0_port_related_networks: + port_oam_internal_0_port_0_network_role: + type: string + required: true + port_oam_internal_0_port_0_related_networks: type: list required: true entry_schema: @@ -113,43 +123,30 @@ topology_template: required: true entry_schema: type: string - port_oam_oam_0_port_network: + port_oam_internal_0_port_0_exCP_naming: + type: org.openecomp.datatypes.Naming + required: true + port_oam_oam_0_port_1_name: type: list required: true entry_schema: type: string - port_oam_internal_0_port_network_role_tag: - type: string - required: true - port_oam_internal_0_port_network_role: - type: string - required: true - port_oam_oam_0_port_ip_requirements: + port_oam_internal_0_port_0_ip_requirements: type: list required: true entry_schema: type: org.openecomp.datatypes.network.IpRequirements - port_oam_internal_0_port_mac_requirements: - type: org.openecomp.datatypes.network.MacRequirements - required: true - port_oam_oam_0_port_exCP_naming: - type: org.openecomp.datatypes.Naming + port_oam_oam_0_port_1_subnetpoolid: + type: string required: true compute_oam_scheduler_hints: type: list required: true entry_schema: type: json - port_oam_internal_0_port_allowed_address_pairs: - type: list - required: true - entry_schema: - type: org.openecomp.datatypes.heat.network.AddressPair - port_oam_internal_0_port_vlan_requirements: - type: list + port_oam_internal_0_port_0_order: + type: integer required: true - entry_schema: - type: org.openecomp.datatypes.network.VlanRequirements compute_oam_availability_zone: type: list required: true @@ -165,96 +162,54 @@ topology_template: required: true entry_schema: type: string - port_oam_oam_0_port_security_groups: + port_oam_internal_0_port_0_allowed_address_pairs: type: list required: true entry_schema: - type: json + type: org.openecomp.datatypes.heat.network.AddressPair + port_oam_oam_0_port_1_network_role_tag: + type: string + required: true node_templates: - oam_oam_oam_0_port: + oam_oam_internal_0_port_0: type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port properties: mac_requirements: - get_input: port_oam_oam_0_port_mac_requirements + get_input: port_oam_internal_0_port_0_mac_requirements allowed_address_pairs: - get_input: port_oam_oam_0_port_allowed_address_pairs + get_input: port_oam_internal_0_port_0_allowed_address_pairs order: - get_input: port_oam_oam_0_port_order + get_input: port_oam_internal_0_port_0_order security_groups: get_input: - - port_oam_oam_0_port_security_groups + - port_oam_internal_0_port_0_security_groups - index_value exCP_naming: - get_input: port_oam_oam_0_port_exCP_naming + get_input: port_oam_internal_0_port_0_exCP_naming vlan_requirements: - get_input: port_oam_oam_0_port_vlan_requirements + get_input: port_oam_internal_0_port_0_vlan_requirements subinterface_indicator: false related_networks: - get_input: port_oam_oam_0_port_related_networks + get_input: port_oam_internal_0_port_0_related_networks ip_requirements: - get_input: port_oam_oam_0_port_ip_requirements + get_input: port_oam_internal_0_port_0_ip_requirements network_role_tag: - get_input: port_oam_oam_0_port_network_role_tag + get_input: port_oam_internal_0_port_0_network_role_tag network_role: - get_input: port_oam_oam_0_port_network_role + get_input: port_oam_internal_0_port_0_network_role subnetpoolid: - get_input: port_oam_oam_0_port_subnetpoolid + get_input: port_oam_internal_0_port_0_subnetpoolid fixed_ips: get_input: - - port_oam_oam_0_port_fixed_ips + - port_oam_internal_0_port_0_fixed_ips - index_value name: get_input: - - port_oam_oam_0_port_name + - port_oam_internal_0_port_0_name - index_value network: get_input: - - port_oam_oam_0_port_network - - index_value - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: oam - relationship: tosca.relationships.network.BindsTo - oam_oam_internal_0_port: - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - mac_requirements: - get_input: port_oam_internal_0_port_mac_requirements - allowed_address_pairs: - get_input: port_oam_internal_0_port_allowed_address_pairs - order: - get_input: port_oam_internal_0_port_order - security_groups: - get_input: - - port_oam_internal_0_port_security_groups - - index_value - exCP_naming: - get_input: port_oam_internal_0_port_exCP_naming - vlan_requirements: - get_input: port_oam_internal_0_port_vlan_requirements - subinterface_indicator: false - related_networks: - get_input: port_oam_internal_0_port_related_networks - ip_requirements: - get_input: port_oam_internal_0_port_ip_requirements - network_role_tag: - get_input: port_oam_internal_0_port_network_role_tag - network_role: - get_input: port_oam_internal_0_port_network_role - subnetpoolid: - get_input: port_oam_internal_0_port_subnetpoolid - fixed_ips: - get_input: - - port_oam_internal_0_port_fixed_ips - - index_value - name: - get_input: - - port_oam_internal_0_port_name - - index_value - network: - get_input: - - port_oam_internal_0_port_network + - port_oam_internal_0_port_0_network - index_value requirements: - binding: @@ -292,21 +247,60 @@ topology_template: get_input: - compute_oam_user_data_format - index_value + oam_oam_oam_0_port_1: + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + mac_requirements: + get_input: port_oam_oam_0_port_1_mac_requirements + allowed_address_pairs: + get_input: port_oam_oam_0_port_1_allowed_address_pairs + order: + get_input: port_oam_oam_0_port_1_order + security_groups: + get_input: + - port_oam_oam_0_port_1_security_groups + - index_value + exCP_naming: + get_input: port_oam_oam_0_port_1_exCP_naming + vlan_requirements: + get_input: port_oam_oam_0_port_1_vlan_requirements + subinterface_indicator: false + related_networks: + get_input: port_oam_oam_0_port_1_related_networks + ip_requirements: + get_input: port_oam_oam_0_port_1_ip_requirements + network_role_tag: + get_input: port_oam_oam_0_port_1_network_role_tag + network_role: + get_input: port_oam_oam_0_port_1_network_role + subnetpoolid: + get_input: port_oam_oam_0_port_1_subnetpoolid + fixed_ips: + get_input: + - port_oam_oam_0_port_1_fixed_ips + - index_value + name: + get_input: + - port_oam_oam_0_port_1_name + - index_value + network: + get_input: + - port_oam_oam_0_port_1_network + - index_value + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: oam + relationship: tosca.relationships.network.BindsTo substitution_mappings: node_type: org.openecomp.resource.abstract.nodes.oam capabilities: cpu_oam: - oam - cpu - attachment_oam_oam_oam_0_port: - - oam_oam_oam_0_port - - attachment - network.incoming.packets_oam_oam_oam_0_port: - - oam_oam_oam_0_port - - network.incoming.packets - binding_oam_oam_oam_0_port: - - oam_oam_oam_0_port - - binding + feature_oam_oam_internal_0_port_0: + - oam_oam_internal_0_port_0 + - feature disk.usage_oam: - oam - disk.usage @@ -316,24 +310,21 @@ topology_template: disk.device.write.bytes_oam: - oam - disk.device.write.bytes - binding_oam_oam_internal_0_port: - - oam_oam_internal_0_port - - binding disk.read.bytes_oam: - oam - disk.read.bytes - forwarder_oam_oam_oam_0_port: - - oam_oam_oam_0_port - - forwarder - network.incoming.packets_oam_oam_internal_0_port: - - oam_oam_internal_0_port - - network.incoming.packets - network.incoming.packets.rate_oam_oam_internal_0_port: - - oam_oam_internal_0_port - - network.incoming.packets.rate + network.incoming.bytes_oam_oam_oam_0_port_1: + - oam_oam_oam_0_port_1 + - network.incoming.bytes scalable_oam: - oam - scalable + network.outgoing.bytes_oam_oam_internal_0_port_0: + - oam_oam_internal_0_port_0 + - network.outgoing.bytes + network.incoming.bytes_oam_oam_internal_0_port_0: + - oam_oam_internal_0_port_0 + - network.incoming.bytes feature_oam: - oam - feature @@ -343,57 +334,66 @@ topology_template: disk.device.usage_oam: - oam - disk.device.usage + feature_oam_oam_oam_0_port_1: + - oam_oam_oam_0_port_1 + - feature binding_oam: - oam - binding disk.device.read.bytes.rate_oam: - oam - disk.device.read.bytes.rate - network.outgoing.bytes_oam_oam_internal_0_port: - - oam_oam_internal_0_port - - network.outgoing.bytes + network.outgoing.bytes.rate_oam_oam_internal_0_port_0: + - oam_oam_internal_0_port_0 + - network.outgoing.bytes.rate disk.write.bytes.rate_oam: - oam - disk.write.bytes.rate disk.device.write.bytes.rate_oam: - oam - disk.device.write.bytes.rate + network.incoming.packets_oam_oam_oam_0_port_1: + - oam_oam_oam_0_port_1 + - network.incoming.packets disk.device.allocation_oam: - oam - disk.device.allocation - network.outpoing.packets_oam_oam_internal_0_port: - - oam_oam_internal_0_port - - network.outpoing.packets - feature_oam_oam_oam_0_port: - - oam_oam_oam_0_port - - feature - network.incoming.packets.rate_oam_oam_oam_0_port: - - oam_oam_oam_0_port - - network.incoming.packets.rate + forwarder_oam_oam_oam_0_port_1: + - oam_oam_oam_0_port_1 + - forwarder disk.ephemeral.size_oam: - oam - disk.ephemeral.size - attachment_oam_oam_internal_0_port: - - oam_oam_internal_0_port - - attachment disk.write.requests_oam: - oam - disk.write.requests + attachment_oam_oam_oam_0_port_1: + - oam_oam_oam_0_port_1 + - attachment disk.capacity_oam: - oam - disk.capacity + network.incoming.bytes.rate_oam_oam_oam_0_port_1: + - oam_oam_oam_0_port_1 + - network.incoming.bytes.rate instance_oam: - oam - instance + binding_oam_oam_internal_0_port_0: + - oam_oam_internal_0_port_0 + - binding disk.root.size_oam: - oam - disk.root.size - network.incoming.bytes_oam_oam_internal_0_port: - - oam_oam_internal_0_port - - network.incoming.bytes - feature_oam_oam_internal_0_port: - - oam_oam_internal_0_port - - feature + binding_oam_oam_oam_0_port_1: + - oam_oam_oam_0_port_1 + - binding + network.outgoing.packets.rate_oam_oam_internal_0_port_0: + - oam_oam_internal_0_port_0 + - network.outgoing.packets.rate + attachment_oam_oam_internal_0_port_0: + - oam_oam_internal_0_port_0 + - attachment memory_oam: - oam - memory @@ -403,24 +403,18 @@ topology_template: disk.device.write.requests_oam: - oam - disk.device.write.requests - network.incoming.bytes.rate_oam_oam_internal_0_port: - - oam_oam_internal_0_port - - network.incoming.bytes.rate - network.outgoing.bytes_oam_oam_oam_0_port: - - oam_oam_oam_0_port - - network.outgoing.bytes disk.device.read.requests.rate_oam: - oam - disk.device.read.requests.rate + forwarder_oam_oam_internal_0_port_0: + - oam_oam_internal_0_port_0 + - forwarder disk.write.requests.rate_oam: - oam - disk.write.requests.rate disk.device.latency_oam: - oam - disk.device.latency - network.outgoing.bytes.rate_oam_oam_internal_0_port: - - oam_oam_internal_0_port - - network.outgoing.bytes.rate disk.device.iops_oam: - oam - disk.device.iops @@ -430,39 +424,39 @@ topology_template: disk.device.write.requests.rate_oam: - oam - disk.device.write.requests.rate + network.incoming.packets.rate_oam_oam_internal_0_port_0: + - oam_oam_internal_0_port_0 + - network.incoming.packets.rate + network.incoming.packets.rate_oam_oam_oam_0_port_1: + - oam_oam_oam_0_port_1 + - network.incoming.packets.rate disk.device.read.bytes_oam: - oam - disk.device.read.bytes host_oam: - oam - host + network.outpoing.packets_oam_oam_internal_0_port_0: + - oam_oam_internal_0_port_0 + - network.outpoing.packets endpoint_oam: - oam - endpoint disk.device.read.requests_oam: - oam - disk.device.read.requests - network.outgoing.packets.rate_oam_oam_oam_0_port: - - oam_oam_oam_0_port - - network.outgoing.packets.rate disk.iops_oam: - oam - disk.iops disk.read.bytes.rate_oam: - oam - disk.read.bytes.rate - network.outgoing.packets.rate_oam_oam_internal_0_port: - - oam_oam_internal_0_port - - network.outgoing.packets.rate - network.incoming.bytes.rate_oam_oam_oam_0_port: - - oam_oam_oam_0_port - - network.incoming.bytes.rate - forwarder_oam_oam_internal_0_port: - - oam_oam_internal_0_port - - forwarder - network.incoming.bytes_oam_oam_oam_0_port: - - oam_oam_oam_0_port - - network.incoming.bytes + network.outgoing.bytes.rate_oam_oam_oam_0_port_1: + - oam_oam_oam_0_port_1 + - network.outgoing.bytes.rate + network.outpoing.packets_oam_oam_oam_0_port_1: + - oam_oam_oam_0_port_1 + - network.outpoing.packets cpu_util_oam: - oam - cpu_util @@ -475,37 +469,43 @@ topology_template: disk.latency_oam: - oam - disk.latency - network.outpoing.packets_oam_oam_oam_0_port: - - oam_oam_oam_0_port - - network.outpoing.packets + network.outgoing.packets.rate_oam_oam_oam_0_port_1: + - oam_oam_oam_0_port_1 + - network.outgoing.packets.rate + network.incoming.packets_oam_oam_internal_0_port_0: + - oam_oam_internal_0_port_0 + - network.incoming.packets disk.write.bytes_oam: - oam - disk.write.bytes + network.outgoing.bytes_oam_oam_oam_0_port_1: + - oam_oam_oam_0_port_1 + - network.outgoing.bytes + network.incoming.bytes.rate_oam_oam_internal_0_port_0: + - oam_oam_internal_0_port_0 + - network.incoming.bytes.rate disk.read.requests_oam: - oam - disk.read.requests disk.device.capacity_oam: - oam - disk.device.capacity - network.outgoing.bytes.rate_oam_oam_oam_0_port: - - oam_oam_oam_0_port - - network.outgoing.bytes.rate requirements: - dependency_oam_oam_internal_0_port: - - oam_oam_internal_0_port - - dependency + link_oam_oam_internal_0_port_0: + - oam_oam_internal_0_port_0 + - link local_storage_oam: - oam - local_storage - link_oam_oam_oam_0_port: - - oam_oam_oam_0_port + link_oam_oam_oam_0_port_1: + - oam_oam_oam_0_port_1 - link - dependency_oam_oam_oam_0_port: - - oam_oam_oam_0_port + dependency_oam_oam_internal_0_port_0: + - oam_oam_internal_0_port_0 + - dependency + dependency_oam_oam_oam_0_port_1: + - oam_oam_oam_0_port_1 - dependency dependency_oam: - oam - dependency - link_oam_oam_internal_0_port: - - oam_oam_internal_0_port - - link
\ No newline at end of file |