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/singleSubstitution/computeWithSamePortTypeNodeConnectedOut/out/Nested_pd_serverServiceTemplate.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/singleSubstitution/computeWithSamePortTypeNodeConnectedOut/out/Nested_pd_serverServiceTemplate.yaml')
1 files changed, 154 insertions, 154 deletions
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/singleSubstitution/computeWithSamePortTypeNodeConnectedOut/out/Nested_pd_serverServiceTemplate.yaml b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/singleSubstitution/computeWithSamePortTypeNodeConnectedOut/out/Nested_pd_serverServiceTemplate.yaml index c2e283a51c..6dae9d7082 100644 --- a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/singleSubstitution/computeWithSamePortTypeNodeConnectedOut/out/Nested_pd_serverServiceTemplate.yaml +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/singleSubstitution/computeWithSamePortTypeNodeConnectedOut/out/Nested_pd_serverServiceTemplate.yaml @@ -11,21 +11,8 @@ node_types: derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server topology_template: inputs: - port_pd01_port_0_mac_requirements: - type: org.openecomp.datatypes.network.MacRequirements - required: true - port_pd01_port_0_network: - type: list - required: true - entry_schema: - type: string - port_pd01_port_0_ip_requirements: - type: list - required: true - entry_schema: - type: org.openecomp.datatypes.network.IpRequirements - port_pd01_port_0_network_role: - type: string + port_pd_server_0_oam_port_0_exCP_naming: + type: org.openecomp.datatypes.Naming required: true compute_pd_server_availability_zone: type: list @@ -37,7 +24,7 @@ topology_template: required: true entry_schema: type: string - port_pd01_port_0_replacement_policy: + port_pd_server_0_oam_port_0_replacement_policy: type: list required: true entry_schema: @@ -45,47 +32,53 @@ topology_template: vm_flavor_name: type: string required: true - port_pd01_port_1_network_role: - type: string - required: true - port_pd01_port_0_order: - type: integer + port_pd_server_1_oam_port_0_mac_requirements: + type: org.openecomp.datatypes.network.MacRequirements required: true - port_pd01_port_1_subnetpoolid: + vm_image_name: type: string required: true - vm_image_name: + port_pd_server_0_oam_port_0_network_role_tag: type: string required: true - port_pd01_port_1_network_role_tag: + port_pd_server_0_oam_port_0_related_networks: + type: list + required: true + entry_schema: + type: org.openecomp.datatypes.network.RelatedNetworksAssignments + port_pd_server_1_oam_port_0_order: + type: integer + required: true + port_pd_server_0_oam_port_0_subnetpoolid: type: string required: true - port_pd01_port_0_subnetpoolid: + port_pd_server_1_oam_port_0_subnetpoolid: type: string required: true - port_pd01_port_1_network: + compute_pd_server_user_data_format: type: list required: true entry_schema: type: string - compute_pd_server_user_data_format: + port_pd_server_0_oam_port_0_vlan_requirements: type: list required: true entry_schema: - type: string - port_pd01_port_0_network_role_tag: + type: org.openecomp.datatypes.network.VlanRequirements + port_pd_server_0_oam_port_0_network_role: type: string required: true - port_pd01_port_0_related_networks: - type: list + port_pd_server_1_oam_port_0_exCP_naming: + type: org.openecomp.datatypes.Naming required: true - entry_schema: - type: org.openecomp.datatypes.network.RelatedNetworksAssignments - port_pd01_port_1_ip_requirements: + port_pd_server_0_oam_port_0_order: + type: integer + required: true + port_pd_server_1_oam_port_0_replacement_policy: type: list required: true entry_schema: - type: org.openecomp.datatypes.network.IpRequirements + type: string index_value: type: integer description: Index value of this substitution service template runtime instance @@ -93,38 +86,45 @@ topology_template: default: 0 constraints: - greater_or_equal: 0 - port_pd01_port_1_order: - type: integer + port_pd_server_1_oam_port_0_network_role_tag: + type: string required: true - port_pd01_port_1_related_networks: + port_pd_server_1_oam_port_0_related_networks: type: list required: true entry_schema: type: org.openecomp.datatypes.network.RelatedNetworksAssignments - port_pd01_port_0_exCP_naming: - type: org.openecomp.datatypes.Naming - required: true - port_pd01_port_1_vlan_requirements: + port_pd_server_1_oam_port_0_vlan_requirements: type: list required: true entry_schema: type: org.openecomp.datatypes.network.VlanRequirements - port_pd01_port_1_mac_requirements: - type: org.openecomp.datatypes.network.MacRequirements + port_pd_server_0_oam_port_0_ip_requirements: + type: list + required: true + entry_schema: + type: org.openecomp.datatypes.network.IpRequirements + port_pd_server_1_oam_port_0_network_role: + type: string required: true - port_pd01_port_1_replacement_policy: + port_pd_server_1_oam_port_0_network: type: list required: true entry_schema: type: string - port_pd01_port_1_exCP_naming: - type: org.openecomp.datatypes.Naming + port_pd_server_0_oam_port_0_network: + type: list required: true - port_pd01_port_0_vlan_requirements: + entry_schema: + type: string + port_pd_server_1_oam_port_0_ip_requirements: type: list required: true entry_schema: - type: org.openecomp.datatypes.network.VlanRequirements + type: org.openecomp.datatypes.network.IpRequirements + port_pd_server_0_oam_port_0_mac_requirements: + type: org.openecomp.datatypes.network.MacRequirements + required: true node_templates: pd_server: type: org.openecomp.resource.vfc.compute.nodes.heat.pd_server @@ -145,70 +145,70 @@ topology_template: get_input: - compute_pd_server_user_data_format - index_value - pd_server_pd01_port_1: + pd_server_pd_server_1_oam_port_0: type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port properties: replacement_policy: get_input: - - port_pd01_port_1_replacement_policy + - port_pd_server_1_oam_port_0_replacement_policy - index_value mac_requirements: - get_input: port_pd01_port_1_mac_requirements + get_input: port_pd_server_1_oam_port_0_mac_requirements order: - get_input: port_pd01_port_1_order + get_input: port_pd_server_1_oam_port_0_order exCP_naming: - get_input: port_pd01_port_1_exCP_naming + get_input: port_pd_server_1_oam_port_0_exCP_naming vlan_requirements: - get_input: port_pd01_port_1_vlan_requirements + get_input: port_pd_server_1_oam_port_0_vlan_requirements subinterface_indicator: false ip_requirements: - get_input: port_pd01_port_1_ip_requirements + get_input: port_pd_server_1_oam_port_0_ip_requirements related_networks: - get_input: port_pd01_port_1_related_networks + get_input: port_pd_server_1_oam_port_0_related_networks network_role_tag: - get_input: port_pd01_port_1_network_role_tag + get_input: port_pd_server_1_oam_port_0_network_role_tag network_role: - get_input: port_pd01_port_1_network_role + get_input: port_pd_server_1_oam_port_0_network_role subnetpoolid: - get_input: port_pd01_port_1_subnetpoolid + get_input: port_pd_server_1_oam_port_0_subnetpoolid network: get_input: - - port_pd01_port_1_network + - port_pd_server_1_oam_port_0_network - index_value requirements: - binding: capability: tosca.capabilities.network.Bindable node: pd_server relationship: tosca.relationships.network.BindsTo - pd_server_pd01_port_0: + pd_server_pd_server_0_oam_port_0: type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port properties: replacement_policy: get_input: - - port_pd01_port_0_replacement_policy + - port_pd_server_0_oam_port_0_replacement_policy - index_value mac_requirements: - get_input: port_pd01_port_0_mac_requirements + get_input: port_pd_server_0_oam_port_0_mac_requirements order: - get_input: port_pd01_port_0_order + get_input: port_pd_server_0_oam_port_0_order exCP_naming: - get_input: port_pd01_port_0_exCP_naming + get_input: port_pd_server_0_oam_port_0_exCP_naming vlan_requirements: - get_input: port_pd01_port_0_vlan_requirements + get_input: port_pd_server_0_oam_port_0_vlan_requirements subinterface_indicator: false ip_requirements: - get_input: port_pd01_port_0_ip_requirements + get_input: port_pd_server_0_oam_port_0_ip_requirements related_networks: - get_input: port_pd01_port_0_related_networks + get_input: port_pd_server_0_oam_port_0_related_networks network_role_tag: - get_input: port_pd01_port_0_network_role_tag + get_input: port_pd_server_0_oam_port_0_network_role_tag network_role: - get_input: port_pd01_port_0_network_role + get_input: port_pd_server_0_oam_port_0_network_role subnetpoolid: - get_input: port_pd01_port_0_subnetpoolid + get_input: port_pd_server_0_oam_port_0_subnetpoolid network: get_input: - - port_pd01_port_0_network + - port_pd_server_0_oam_port_0_network - index_value requirements: - binding: @@ -218,18 +218,15 @@ topology_template: substitution_mappings: node_type: org.openecomp.resource.abstract.nodes.pd_server capabilities: - binding_pd_server_pd01_port_0: - - pd_server_pd01_port_0 - - binding scalable_pd_server: - pd_server - scalable disk.read.bytes.rate_pd_server: - pd_server - disk.read.bytes.rate - binding_pd_server_pd01_port_1: - - pd_server_pd01_port_1 - - binding + network.outgoing.bytes_pd_server_pd_server_1_oam_port_0: + - pd_server_pd_server_1_oam_port_0 + - network.outgoing.bytes memory.usage_pd_server: - pd_server - memory.usage @@ -239,12 +236,21 @@ topology_template: disk.device.usage_pd_server: - pd_server - disk.device.usage + forwarder_pd_server_pd_server_0_oam_port_0: + - pd_server_pd_server_0_oam_port_0 + - forwarder os_pd_server: - pd_server - os disk.write.bytes.rate_pd_server: - pd_server - disk.write.bytes.rate + feature_pd_server_pd_server_0_oam_port_0: + - pd_server_pd_server_0_oam_port_0 + - feature + network.incoming.bytes_pd_server_pd_server_1_oam_port_0: + - pd_server_pd_server_1_oam_port_0 + - network.incoming.bytes cpu_pd_server: - pd_server - cpu @@ -257,69 +263,48 @@ topology_template: disk.read.bytes_pd_server: - pd_server - disk.read.bytes + binding_pd_server_pd_server_1_oam_port_0: + - pd_server_pd_server_1_oam_port_0 + - binding disk.device.read.bytes.rate_pd_server: - pd_server - disk.device.read.bytes.rate - network.incoming.packets_pd_server_pd01_port_0: - - pd_server_pd01_port_0 - - network.incoming.packets + network.outgoing.packets.rate_pd_server_pd_server_0_oam_port_0: + - pd_server_pd_server_0_oam_port_0 + - network.outgoing.packets.rate disk.iops_pd_server: - pd_server - disk.iops - network.incoming.packets.rate_pd_server_pd01_port_1: - - pd_server_pd01_port_1 - - network.incoming.packets.rate - network.incoming.bytes.rate_pd_server_pd01_port_1: - - pd_server_pd01_port_1 - - network.incoming.bytes.rate memory.resident_pd_server: - pd_server - memory.resident cpu.delta_pd_server: - pd_server - cpu.delta - network.incoming.packets.rate_pd_server_pd01_port_0: - - pd_server_pd01_port_0 - - network.incoming.packets.rate - network.incoming.bytes.rate_pd_server_pd01_port_0: - - pd_server_pd01_port_0 - - network.incoming.bytes.rate - attachment_pd_server_pd01_port_1: - - pd_server_pd01_port_1 - - attachment - network.outgoing.packets.rate_pd_server_pd01_port_1: - - pd_server_pd01_port_1 - - network.outgoing.packets.rate - network.outgoing.packets.rate_pd_server_pd01_port_0: - - pd_server_pd01_port_0 - - network.outgoing.packets.rate vcpus_pd_server: - pd_server - vcpus disk.device.write.bytes.rate_pd_server: - pd_server - disk.device.write.bytes.rate - attachment_pd_server_pd01_port_0: - - pd_server_pd01_port_0 - - attachment disk.device.write.requests_pd_server: - pd_server - disk.device.write.requests endpoint_pd_server: - pd_server - endpoint + forwarder_pd_server_pd_server_1_oam_port_0: + - pd_server_pd_server_1_oam_port_0 + - forwarder disk.capacity_pd_server: - pd_server - disk.capacity - forwarder_pd_server_pd01_port_0: - - pd_server_pd01_port_0 - - forwarder - forwarder_pd_server_pd01_port_1: - - pd_server_pd01_port_1 - - forwarder - network.incoming.packets_pd_server_pd01_port_1: - - pd_server_pd01_port_1 - - network.incoming.packets + network.incoming.bytes_pd_server_pd_server_0_oam_port_0: + - pd_server_pd_server_0_oam_port_0 + - network.incoming.bytes + network.outgoing.bytes.rate_pd_server_pd_server_0_oam_port_0: + - pd_server_pd_server_0_oam_port_0 + - network.outgoing.bytes.rate disk.device.allocation_pd_server: - pd_server - disk.device.allocation @@ -332,33 +317,30 @@ topology_template: disk.read.requests_pd_server: - pd_server - disk.read.requests - network.outgoing.bytes.rate_pd_server_pd01_port_1: - - pd_server_pd01_port_1 - - network.outgoing.bytes.rate - network.outgoing.bytes.rate_pd_server_pd01_port_0: - - pd_server_pd01_port_0 - - network.outgoing.bytes.rate + binding_pd_server_pd_server_0_oam_port_0: + - pd_server_pd_server_0_oam_port_0 + - binding feature_pd_server: - pd_server - feature disk.usage_pd_server: - pd_server - disk.usage - network.incoming.bytes_pd_server_pd01_port_1: - - pd_server_pd01_port_1 - - network.incoming.bytes + network.outgoing.bytes.rate_pd_server_pd_server_1_oam_port_0: + - pd_server_pd_server_1_oam_port_0 + - network.outgoing.bytes.rate disk.write.bytes_pd_server: - pd_server - disk.write.bytes - network.outgoing.bytes_pd_server_pd01_port_0: - - pd_server_pd01_port_0 - - network.outgoing.bytes - network.outgoing.bytes_pd_server_pd01_port_1: - - pd_server_pd01_port_1 + network.incoming.packets_pd_server_pd_server_0_oam_port_0: + - pd_server_pd_server_0_oam_port_0 + - network.incoming.packets + network.outgoing.bytes_pd_server_pd_server_0_oam_port_0: + - pd_server_pd_server_0_oam_port_0 - network.outgoing.bytes - network.incoming.bytes_pd_server_pd01_port_0: - - pd_server_pd01_port_0 - - network.incoming.bytes + attachment_pd_server_pd_server_0_oam_port_0: + - pd_server_pd_server_0_oam_port_0 + - attachment disk.device.read.requests.rate_pd_server: - pd_server - disk.device.read.requests.rate @@ -368,15 +350,18 @@ topology_template: disk.device.read.bytes_pd_server: - pd_server - disk.device.read.bytes + feature_pd_server_pd_server_1_oam_port_0: + - pd_server_pd_server_1_oam_port_0 + - feature + network.incoming.bytes.rate_pd_server_pd_server_1_oam_port_0: + - pd_server_pd_server_1_oam_port_0 + - network.incoming.bytes.rate disk.device.write.bytes_pd_server: - pd_server - disk.device.write.bytes - network.outpoing.packets_pd_server_pd01_port_0: - - pd_server_pd01_port_0 - - network.outpoing.packets - network.outpoing.packets_pd_server_pd01_port_1: - - pd_server_pd01_port_1 - - network.outpoing.packets + network.incoming.packets_pd_server_pd_server_1_oam_port_0: + - pd_server_pd_server_1_oam_port_0 + - network.incoming.packets disk.device.read.requests_pd_server: - pd_server - disk.device.read.requests @@ -386,21 +371,33 @@ topology_template: host_pd_server: - pd_server - host - feature_pd_server_pd01_port_1: - - pd_server_pd01_port_1 - - feature - feature_pd_server_pd01_port_0: - - pd_server_pd01_port_0 - - feature + attachment_pd_server_pd_server_1_oam_port_0: + - pd_server_pd_server_1_oam_port_0 + - attachment + network.incoming.packets.rate_pd_server_pd_server_1_oam_port_0: + - pd_server_pd_server_1_oam_port_0 + - network.incoming.packets.rate + network.outpoing.packets_pd_server_pd_server_1_oam_port_0: + - pd_server_pd_server_1_oam_port_0 + - network.outpoing.packets disk.write.requests.rate_pd_server: - pd_server - disk.write.requests.rate disk.ephemeral.size_pd_server: - pd_server - disk.ephemeral.size + network.outgoing.packets.rate_pd_server_pd_server_1_oam_port_0: + - pd_server_pd_server_1_oam_port_0 + - network.outgoing.packets.rate + network.incoming.bytes.rate_pd_server_pd_server_0_oam_port_0: + - pd_server_pd_server_0_oam_port_0 + - network.incoming.bytes.rate disk.write.requests_pd_server: - pd_server - disk.write.requests + network.incoming.packets.rate_pd_server_pd_server_0_oam_port_0: + - pd_server_pd_server_0_oam_port_0 + - network.incoming.packets.rate disk.device.latency_pd_server: - pd_server - disk.device.latency @@ -413,22 +410,25 @@ topology_template: disk.device.iops_pd_server: - pd_server - disk.device.iops + network.outpoing.packets_pd_server_pd_server_0_oam_port_0: + - pd_server_pd_server_0_oam_port_0 + - network.outpoing.packets requirements: local_storage_pd_server: - pd_server - local_storage - dependency_pd_server_pd01_port_1: - - pd_server_pd01_port_1 + link_pd_server_pd_server_0_oam_port_0: + - pd_server_pd_server_0_oam_port_0 + - link + dependency_pd_server_pd_server_1_oam_port_0: + - pd_server_pd_server_1_oam_port_0 - dependency dependency_pd_server: - pd_server - dependency - dependency_pd_server_pd01_port_0: - - pd_server_pd01_port_0 - - dependency - link_pd_server_pd01_port_0: - - pd_server_pd01_port_0 + link_pd_server_pd_server_1_oam_port_0: + - pd_server_pd_server_1_oam_port_0 - link - link_pd_server_pd01_port_1: - - pd_server_pd01_port_1 - - link
\ No newline at end of file + dependency_pd_server_pd_server_0_oam_port_0: + - pd_server_pd_server_0_oam_port_0 + - dependency |