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/threeDiffComputesWithAllConnectivities/out/Nested_ps_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/threeDiffComputesWithAllConnectivities/out/Nested_ps_serverServiceTemplate.yaml')
1 files changed, 105 insertions, 105 deletions
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/singleSubstitution/threeDiffComputesWithAllConnectivities/out/Nested_ps_serverServiceTemplate.yaml b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/singleSubstitution/threeDiffComputesWithAllConnectivities/out/Nested_ps_serverServiceTemplate.yaml index 72a76e4df7..33bbcb22e2 100644 --- a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/singleSubstitution/threeDiffComputesWithAllConnectivities/out/Nested_ps_serverServiceTemplate.yaml +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/singleSubstitution/threeDiffComputesWithAllConnectivities/out/Nested_ps_serverServiceTemplate.yaml @@ -38,91 +38,56 @@ topology_template: default: 0 constraints: - greater_or_equal: 0 - port_pd01_port_exCP_naming: - type: org.openecomp.datatypes.Naming - required: true - port_pd01_port_related_networks: - type: list + port_ps_server_oam_port_0_subnetpoolid: + type: string required: true - entry_schema: - type: org.openecomp.datatypes.network.RelatedNetworksAssignments vm_flavor_name: type: string required: true - port_pd01_port_security_groups: + port_ps_server_oam_port_0_ip_requirements: type: list required: true entry_schema: - type: json - port_pd01_port_mac_requirements: - type: org.openecomp.datatypes.network.MacRequirements + type: org.openecomp.datatypes.network.IpRequirements + port_ps_server_oam_port_0_network: + type: list required: true - vm_image_name: + entry_schema: + type: string + port_ps_server_oam_port_0_exCP_naming: + type: org.openecomp.datatypes.Naming + required: true + port_ps_server_oam_port_0_network_role: type: string required: true - port_pd01_port_ip_requirements: + port_ps_server_oam_port_0_vlan_requirements: type: list required: true entry_schema: - type: org.openecomp.datatypes.network.IpRequirements - port_pd01_port_network: + type: org.openecomp.datatypes.network.VlanRequirements + port_ps_server_oam_port_0_security_groups: type: list required: true entry_schema: - type: string - port_pd01_port_order: - type: integer - required: true - port_pd01_port_subnetpoolid: - type: string - required: true - port_pd01_port_network_role: + type: json + vm_image_name: type: string required: true - port_pd01_port_network_role_tag: + port_ps_server_oam_port_0_network_role_tag: type: string required: true - port_pd01_port_vlan_requirements: + port_ps_server_oam_port_0_related_networks: type: list required: true entry_schema: - type: org.openecomp.datatypes.network.VlanRequirements + type: org.openecomp.datatypes.network.RelatedNetworksAssignments + port_ps_server_oam_port_0_mac_requirements: + type: org.openecomp.datatypes.network.MacRequirements + required: true + port_ps_server_oam_port_0_order: + type: integer + required: true node_templates: - ps_server_pd01_port: - type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - properties: - mac_requirements: - get_input: port_pd01_port_mac_requirements - order: - get_input: port_pd01_port_order - security_groups: - get_input: - - port_pd01_port_security_groups - - index_value - exCP_naming: - get_input: port_pd01_port_exCP_naming - vlan_requirements: - get_input: port_pd01_port_vlan_requirements - subinterface_indicator: false - ip_requirements: - get_input: port_pd01_port_ip_requirements - related_networks: - get_input: port_pd01_port_related_networks - network_role_tag: - get_input: port_pd01_port_network_role_tag - network_role: - get_input: port_pd01_port_network_role - subnetpoolid: - get_input: port_pd01_port_subnetpoolid - network: - get_input: - - port_pd01_port_network - - index_value - requirements: - - binding: - capability: tosca.capabilities.network.Bindable - node: ps_server - relationship: tosca.relationships.network.BindsTo ps_server: type: org.openecomp.resource.vfc.compute.nodes.heat.ps_server properties: @@ -146,6 +111,41 @@ topology_template: get_input: - compute_ps_server_user_data_format - index_value + ps_server_ps_server_oam_port_0: + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + mac_requirements: + get_input: port_ps_server_oam_port_0_mac_requirements + order: + get_input: port_ps_server_oam_port_0_order + security_groups: + get_input: + - port_ps_server_oam_port_0_security_groups + - index_value + exCP_naming: + get_input: port_ps_server_oam_port_0_exCP_naming + vlan_requirements: + get_input: port_ps_server_oam_port_0_vlan_requirements + subinterface_indicator: false + ip_requirements: + get_input: port_ps_server_oam_port_0_ip_requirements + related_networks: + get_input: port_ps_server_oam_port_0_related_networks + network_role_tag: + get_input: port_ps_server_oam_port_0_network_role_tag + network_role: + get_input: port_ps_server_oam_port_0_network_role + subnetpoolid: + get_input: port_ps_server_oam_port_0_subnetpoolid + network: + get_input: + - port_ps_server_oam_port_0_network + - index_value + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: ps_server + relationship: tosca.relationships.network.BindsTo outputs: ps_server_accessIPv4: type: string @@ -153,11 +153,11 @@ topology_template: get_attribute: - ps_server - accessIPv4 - ps_server_pd01_port_device_id: + ps_server_ps_server_oam_port_0_device_id: type: string value: get_attribute: - - ps_server_pd01_port + - ps_server_ps_server_oam_port_0 - device_id substitution_mappings: node_type: org.openecomp.resource.abstract.nodes.ps_server @@ -165,9 +165,9 @@ topology_template: instance_ps_server: - ps_server - instance - binding_ps_server_pd01_port: - - ps_server_pd01_port - - binding + network.incoming.packets.rate_ps_server_ps_server_oam_port_0: + - ps_server_ps_server_oam_port_0 + - network.incoming.packets.rate host_ps_server: - ps_server - host @@ -198,12 +198,15 @@ topology_template: disk.read.bytes_ps_server: - ps_server - disk.read.bytes + network.outgoing.packets.rate_ps_server_ps_server_oam_port_0: + - ps_server_ps_server_oam_port_0 + - network.outgoing.packets.rate + network.incoming.packets_ps_server_ps_server_oam_port_0: + - ps_server_ps_server_oam_port_0 + - network.incoming.packets disk.device.iops_ps_server: - ps_server - disk.device.iops - network.outpoing.packets_ps_server_pd01_port: - - ps_server_pd01_port - - network.outpoing.packets disk.device.latency_ps_server: - ps_server - disk.device.latency @@ -219,39 +222,36 @@ topology_template: disk.write.requests.rate_ps_server: - ps_server - disk.write.requests.rate - network.outgoing.bytes_ps_server_pd01_port: - - ps_server_pd01_port - - network.outgoing.bytes - forwarder_ps_server_pd01_port: - - ps_server_pd01_port - - forwarder disk.write.requests_ps_server: - ps_server - disk.write.requests - network.incoming.bytes.rate_ps_server_pd01_port: - - ps_server_pd01_port - - network.incoming.bytes.rate - network.incoming.packets_ps_server_pd01_port: - - ps_server_pd01_port - - network.incoming.packets + network.outgoing.bytes_ps_server_ps_server_oam_port_0: + - ps_server_ps_server_oam_port_0 + - network.outgoing.bytes disk.latency_ps_server: - ps_server - disk.latency + feature_ps_server_ps_server_oam_port_0: + - ps_server_ps_server_oam_port_0 + - feature disk.ephemeral.size_ps_server: - ps_server - disk.ephemeral.size disk.device.capacity_ps_server: - ps_server - disk.device.capacity + forwarder_ps_server_ps_server_oam_port_0: + - ps_server_ps_server_oam_port_0 + - forwarder disk.iops_ps_server: - ps_server - disk.iops disk.device.read.bytes.rate_ps_server: - ps_server - disk.device.read.bytes.rate - network.outgoing.packets.rate_ps_server_pd01_port: - - ps_server_pd01_port - - network.outgoing.packets.rate + network.incoming.bytes_ps_server_ps_server_oam_port_0: + - ps_server_ps_server_oam_port_0 + - network.incoming.bytes cpu_util_ps_server: - ps_server - cpu_util @@ -264,21 +264,18 @@ topology_template: disk.write.bytes_ps_server: - ps_server - disk.write.bytes - feature_ps_server_pd01_port: - - ps_server_pd01_port - - feature - network.outgoing.bytes.rate_ps_server_pd01_port: - - ps_server_pd01_port - - network.outgoing.bytes.rate - attachment_ps_server_pd01_port: - - ps_server_pd01_port - - attachment + network.outpoing.packets_ps_server_ps_server_oam_port_0: + - ps_server_ps_server_oam_port_0 + - network.outpoing.packets + network.incoming.bytes.rate_ps_server_ps_server_oam_port_0: + - ps_server_ps_server_oam_port_0 + - network.incoming.bytes.rate + binding_ps_server_ps_server_oam_port_0: + - ps_server_ps_server_oam_port_0 + - binding disk.device.write.requests.rate_ps_server: - ps_server - disk.device.write.requests.rate - network.incoming.packets.rate_ps_server_pd01_port: - - ps_server_pd01_port - - network.incoming.packets.rate disk.read.requests_ps_server: - ps_server - disk.read.requests @@ -291,6 +288,9 @@ topology_template: binding_ps_server: - ps_server - binding + attachment_ps_server_ps_server_oam_port_0: + - ps_server_ps_server_oam_port_0 + - attachment os_ps_server: - ps_server - os @@ -303,9 +303,6 @@ topology_template: vcpus_ps_server: - ps_server - vcpus - network.incoming.bytes_ps_server_pd01_port: - - ps_server_pd01_port - - network.incoming.bytes disk.usage_ps_server: - ps_server - disk.usage @@ -321,16 +318,19 @@ topology_template: disk.device.allocation_ps_server: - ps_server - disk.device.allocation + network.outgoing.bytes.rate_ps_server_ps_server_oam_port_0: + - ps_server_ps_server_oam_port_0 + - network.outgoing.bytes.rate requirements: + dependency_ps_server_ps_server_oam_port_0: + - ps_server_ps_server_oam_port_0 + - dependency dependency_ps_server: - ps_server - dependency - dependency_ps_server_pd01_port: - - ps_server_pd01_port - - dependency - link_ps_server_pd01_port: - - ps_server_pd01_port + link_ps_server_ps_server_oam_port_0: + - ps_server_ps_server_oam_port_0 - link local_storage_ps_server: - ps_server - - local_storage
\ No newline at end of file + - local_storage |