diff options
Diffstat (limited to 'openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/singleSubstitution/computewithtwosameporttypes4/out')
3 files changed, 115 insertions, 79 deletions
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/singleSubstitution/computewithtwosameporttypes4/out/GlobalSubstitutionTypesServiceTemplate.yaml b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/singleSubstitution/computewithtwosameporttypes4/out/GlobalSubstitutionTypesServiceTemplate.yaml index 17285f8444..7624e45914 100644 --- a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/singleSubstitution/computewithtwosameporttypes4/out/GlobalSubstitutionTypesServiceTemplate.yaml +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/singleSubstitution/computewithtwosameporttypes4/out/GlobalSubstitutionTypesServiceTemplate.yaml @@ -28,24 +28,12 @@ node_types: status: SUPPORTED entry_schema: type: string - port_pd01_port1_mac_requirements: - type: org.openecomp.datatypes.network.MacRequirements - required: true - status: SUPPORTED port_pd01_port2_ip_requirements: type: list required: true status: SUPPORTED entry_schema: type: org.openecomp.datatypes.network.IpRequirements - index_value: - type: integer - description: Index value of this substitution service template runtime instance - required: false - default: 0 - status: SUPPORTED - constraints: - - greater_or_equal: 0 compute_pd_server_availability_zone: type: list required: true @@ -58,74 +46,98 @@ node_types: status: SUPPORTED entry_schema: type: string - port_pd01_port1_subnetpoolid: + vm_flavor_name: type: string required: true status: SUPPORTED - port_pd01_port2_subnetpoolid: + port_pd01_port2_network_role_tag: type: string required: true status: SUPPORTED - port_pd01_port2_network_role: - type: string + port_pd01_port1_order: + type: integer required: true status: SUPPORTED - vm_flavor_name: + port_pd01_port2_order: + type: integer + required: true + status: SUPPORTED + vm_image_name: type: string required: true status: SUPPORTED - port_pd01_port1_ip_requirements: + port_pd01_port2_subinterface_indicator: type: list required: true status: SUPPORTED entry_schema: - type: org.openecomp.datatypes.network.IpRequirements - port_pd01_port2_network_role_tag: - type: string + type: boolean + port_pd01_port2_vlan_requirements: + type: list required: true status: SUPPORTED - port_pd01_port1_order: - type: integer + entry_schema: + type: org.openecomp.datatypes.network.VlanRequirements + port_pd01_port2_exCP_naming: + type: org.openecomp.datatypes.Naming required: true status: SUPPORTED - port_pd01_port1_network_role: - type: string + compute_pd_server_user_data_format: + type: list required: true status: SUPPORTED - port_pd01_port2_mac_requirements: + entry_schema: + type: string + port_pd01_port1_mac_requirements: type: org.openecomp.datatypes.network.MacRequirements required: true status: SUPPORTED - port_pd01_port2_order: + index_value: type: integer + description: Index value of this substitution service template runtime instance + required: false + default: 0 + status: SUPPORTED + constraints: + - greater_or_equal: 0 + port_pd01_port1_subnetpoolid: + type: string required: true status: SUPPORTED - port_pd01_port1_vlan_requirements: + port_pd01_port2_subnetpoolid: + type: string + required: true + status: SUPPORTED + port_pd01_port2_network_role: + type: string + required: true + status: SUPPORTED + port_pd01_port1_ip_requirements: type: list required: true status: SUPPORTED entry_schema: - type: org.openecomp.datatypes.network.VlanRequirements - vm_image_name: + type: org.openecomp.datatypes.network.IpRequirements + port_pd01_port1_network_role: type: string required: true status: SUPPORTED - port_pd01_port2_vlan_requirements: + port_pd01_port2_mac_requirements: + type: org.openecomp.datatypes.network.MacRequirements + required: true + status: SUPPORTED + port_pd01_port1_vlan_requirements: type: list required: true status: SUPPORTED entry_schema: type: org.openecomp.datatypes.network.VlanRequirements - port_pd01_port2_exCP_naming: - type: org.openecomp.datatypes.Naming - required: true - status: SUPPORTED - compute_pd_server_user_data_format: + port_pd01_port1_subinterface_indicator: type: list required: true status: SUPPORTED entry_schema: - type: string + type: boolean requirements: - dependency_pd_server_pd01_port1: capability: tosca.capabilities.Node @@ -421,6 +433,7 @@ node_types: type: tosca.capabilities.network.Bindable valid_source_types: - org.openecomp.resource.cp.nodes.heat.network.contrailV2.VLANSubInterface + - org.openecomp.resource.cp.nodes.heat.network.v2.contrailV2.VLANSubInterface occurrences: - 0 - UNBOUNDED @@ -428,6 +441,7 @@ node_types: type: tosca.capabilities.network.Bindable valid_source_types: - org.openecomp.resource.cp.nodes.heat.network.contrailV2.VLANSubInterface + - org.openecomp.resource.cp.nodes.heat.network.v2.contrailV2.VLANSubInterface occurrences: - 0 - UNBOUNDED diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/singleSubstitution/computewithtwosameporttypes4/out/MainServiceTemplate.yaml b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/singleSubstitution/computewithtwosameporttypes4/out/MainServiceTemplate.yaml index 993c99c66f..4dbcf3a644 100644 --- a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/singleSubstitution/computewithtwosameporttypes4/out/MainServiceTemplate.yaml +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/singleSubstitution/computewithtwosameporttypes4/out/MainServiceTemplate.yaml @@ -837,9 +837,6 @@ topology_template: port_pd01_port1_network_role_tag: oam port_pd01_port2_network: - get_input: oam_net_name - port_pd01_port1_mac_requirements: - mac_count_required: - is_required: false port_pd01_port2_ip_requirements: - ip_version: 4 ip_count_required: @@ -859,6 +856,16 @@ topology_template: - 0 vm_flavor_name: get_input: pd_flavor_name + port_pd01_port2_network_role_tag: oam + vm_image_name: + get_input: pd_image_name + port_pd01_port2_subinterface_indicator: + - true + compute_pd_server_user_data_format: + - RAW + port_pd01_port1_mac_requirements: + mac_count_required: + is_required: false port_pd01_port1_ip_requirements: - ip_version: 4 ip_count_required: @@ -870,14 +877,11 @@ topology_template: is_required: false floating_ip_count_required: is_required: false - port_pd01_port2_network_role_tag: oam port_pd01_port2_mac_requirements: mac_count_required: is_required: false - vm_image_name: - get_input: pd_image_name - compute_pd_server_user_data_format: - - RAW + port_pd01_port1_subinterface_indicator: + - true service_template_filter: substitute_service_template: Nested_pd_serverServiceTemplate.yaml count: 1 diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/singleSubstitution/computewithtwosameporttypes4/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/computewithtwosameporttypes4/out/Nested_pd_serverServiceTemplate.yaml index 20ce78d7f1..1293f8f76d 100644 --- a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/singleSubstitution/computewithtwosameporttypes4/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/computewithtwosameporttypes4/out/Nested_pd_serverServiceTemplate.yaml @@ -27,21 +27,11 @@ topology_template: required: true entry_schema: type: string - port_pd01_port1_mac_requirements: - type: org.openecomp.datatypes.network.MacRequirements - required: true port_pd01_port2_ip_requirements: type: list required: true entry_schema: type: org.openecomp.datatypes.network.IpRequirements - index_value: - type: integer - description: Index value of this substitution service template runtime instance - required: false - default: 0 - constraints: - - greater_or_equal: 0 compute_pd_server_availability_zone: type: list required: true @@ -52,59 +42,79 @@ topology_template: required: true entry_schema: type: string - port_pd01_port1_subnetpoolid: + vm_flavor_name: type: string required: true - port_pd01_port2_subnetpoolid: + port_pd01_port2_network_role_tag: type: string required: true - port_pd01_port2_network_role: - type: string + port_pd01_port1_order: + type: integer required: true - vm_flavor_name: + port_pd01_port2_order: + type: integer + required: true + vm_image_name: type: string required: true - port_pd01_port1_ip_requirements: + port_pd01_port2_subinterface_indicator: type: list required: true entry_schema: - type: org.openecomp.datatypes.network.IpRequirements - port_pd01_port2_network_role_tag: - type: string + type: boolean + port_pd01_port2_vlan_requirements: + type: list required: true - port_pd01_port1_order: - type: integer + entry_schema: + type: org.openecomp.datatypes.network.VlanRequirements + port_pd01_port2_exCP_naming: + type: org.openecomp.datatypes.Naming required: true - port_pd01_port1_network_role: - type: string + compute_pd_server_user_data_format: + type: list required: true - port_pd01_port2_mac_requirements: + entry_schema: + type: string + port_pd01_port1_mac_requirements: type: org.openecomp.datatypes.network.MacRequirements required: true - port_pd01_port2_order: + index_value: type: integer + description: Index value of this substitution service template runtime instance + required: false + default: 0 + constraints: + - greater_or_equal: 0 + port_pd01_port1_subnetpoolid: + type: string required: true - port_pd01_port1_vlan_requirements: + port_pd01_port2_subnetpoolid: + type: string + required: true + port_pd01_port2_network_role: + type: string + required: true + port_pd01_port1_ip_requirements: type: list required: true entry_schema: - type: org.openecomp.datatypes.network.VlanRequirements - vm_image_name: + type: org.openecomp.datatypes.network.IpRequirements + port_pd01_port1_network_role: type: string required: true - port_pd01_port2_vlan_requirements: + port_pd01_port2_mac_requirements: + type: org.openecomp.datatypes.network.MacRequirements + required: true + port_pd01_port1_vlan_requirements: type: list required: true entry_schema: type: org.openecomp.datatypes.network.VlanRequirements - port_pd01_port2_exCP_naming: - type: org.openecomp.datatypes.Naming - required: true - compute_pd_server_user_data_format: + port_pd01_port1_subinterface_indicator: type: list required: true entry_schema: - type: string + type: boolean node_templates: pd_server_pd01_port1: type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port @@ -113,6 +123,10 @@ topology_template: get_input: port_pd01_port1_exCP_naming vlan_requirements: get_input: port_pd01_port1_vlan_requirements + subinterface_indicator: + get_input: + - port_pd01_port1_subinterface_indicator + - index_value ip_requirements: get_input: port_pd01_port1_ip_requirements network_role_tag: @@ -160,6 +174,10 @@ topology_template: get_input: port_pd01_port2_exCP_naming vlan_requirements: get_input: port_pd01_port2_vlan_requirements + subinterface_indicator: + get_input: + - port_pd01_port2_subinterface_indicator + - index_value ip_requirements: get_input: port_pd01_port2_ip_requirements network_role_tag: |