summaryrefslogtreecommitdiffstats
path: root/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment
diff options
context:
space:
mode:
Diffstat (limited to 'openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment')
-rw-r--r--openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/complexNovaAndGroup/expectedoutputfiles/MainServiceTemplate.yaml304
-rw-r--r--openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/complexNovaAndGroup/inputfiles/MANIFEST.json12
-rw-r--r--openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/complexNovaAndGroup/inputfiles/main.yml144
-rw-r--r--openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/complexOnlyGroup/expectedoutputfiles/MainServiceTemplate.yaml292
-rw-r--r--openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/complexOnlyGroup/inputfiles/MANIFEST.json12
-rw-r--r--openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/complexOnlyGroup/inputfiles/main.yml124
-rw-r--r--openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/complexTwoGroups/expectedoutputfiles/MainServiceTemplate.yaml303
-rw-r--r--openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/complexTwoGroups/inputfiles/MANIFEST.json12
-rw-r--r--openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/complexTwoGroups/inputfiles/main.yml132
-rw-r--r--openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/dynamicGroup/expectedoutputfiles/MainServiceTemplate.yaml202
-rw-r--r--openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/dynamicGroup/inputfiles/MANIFEST.json12
-rw-r--r--openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/dynamicGroup/inputfiles/main.yml111
-rw-r--r--openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/groupNameParameter/expectedoutputfiles/MainServiceTemplate.yaml610
-rw-r--r--openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/groupNameParameter/inputfiles/MANIFEST.json28
-rw-r--r--openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/groupNameParameter/inputfiles/vIPR-ATM-Base.env14
-rw-r--r--openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/groupNameParameter/inputfiles/vIPR-ATM-Base.yaml318
-rw-r--r--openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/groupNameParameter/inputfiles/vIPR-ATM-Instance.env28
-rw-r--r--openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/groupNameParameter/inputfiles/vIPR-ATM-Instance.yaml299
-rw-r--r--openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/invalidGroupAssignment/expectedoutputfiles/MainServiceTemplate.yaml292
-rw-r--r--openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/invalidGroupAssignment/inputfiles/MANIFEST.json12
-rw-r--r--openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/invalidGroupAssignment/inputfiles/main.yml132
-rw-r--r--openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/notconnected/expectedoutputfiles/MainServiceTemplate.yaml209
-rw-r--r--openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/notconnected/inputfiles/MANIFEST.json12
-rw-r--r--openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/notconnected/inputfiles/main.yml88
-rw-r--r--openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/simpleNovaAndNotSupportedResource/expectedoutputfiles/MainServiceTemplate.yaml209
-rw-r--r--openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/simpleNovaAndNotSupportedResource/inputfiles/MANIFEST.json12
-rw-r--r--openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/simpleNovaAndNotSupportedResource/inputfiles/main.yml96
-rw-r--r--openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/simpleOnlyNotSupportedResources/expectedoutputfiles/MainServiceTemplate.yaml209
-rw-r--r--openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/simpleOnlyNotSupportedResources/inputfiles/MANIFEST.json12
-rw-r--r--openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/simpleOnlyNotSupportedResources/inputfiles/main.yml103
-rw-r--r--openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/simpleOnlyNova/expectedoutputfiles/MainServiceTemplate.yaml210
-rw-r--r--openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/simpleOnlyNova/inputfiles/MANIFEST.json12
-rw-r--r--openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/simpleOnlyNova/inputfiles/main.yml91
-rw-r--r--openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/simpleOnlySingleNova/expectedoutputfiles/MainServiceTemplate.yaml209
-rw-r--r--openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/simpleOnlySingleNova/inputfiles/MANIFEST.json12
-rw-r--r--openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/simpleOnlySingleNova/inputfiles/main.yml90
36 files changed, 4967 insertions, 0 deletions
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/complexNovaAndGroup/expectedoutputfiles/MainServiceTemplate.yaml b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/complexNovaAndGroup/expectedoutputfiles/MainServiceTemplate.yaml
new file mode 100644
index 0000000000..8bc4c3d028
--- /dev/null
+++ b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/complexNovaAndGroup/expectedoutputfiles/MainServiceTemplate.yaml
@@ -0,0 +1,304 @@
+tosca_definitions_version: tosca_simple_yaml_1_0_0
+metadata:
+ template_name: Main
+imports:
+- openecomp_heat_index:
+ file: openecomp-heat/_index.yml
+node_types:
+ org.openecomp.resource.vfc.nodes.heat.myNovaServer2:
+ derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
+ org.openecomp.resource.vfc.nodes.heat.myNovaServer1:
+ derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
+ org.openecomp.resource.vfc.nodes.heat.myNovaServer3:
+ derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
+topology_template:
+ inputs:
+ flavor:
+ hidden: false
+ immutable: false
+ type: string
+ p1:
+ hidden: false
+ immutable: false
+ type: string
+ description: p1
+ image:
+ hidden: false
+ immutable: false
+ type: string
+ p2:
+ hidden: false
+ immutable: false
+ type: string
+ description: p2
+ names:
+ hidden: false
+ immutable: false
+ type: string
+ myIPs:
+ hidden: false
+ immutable: false
+ type: string
+ description: ip1
+ availability_zone_1:
+ hidden: false
+ immutable: false
+ type: string
+ description: myAvailability_zone_1
+ net:
+ hidden: false
+ immutable: false
+ type: string
+ description: UID of network
+ node_templates:
+ myPort6:
+ type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
+ properties:
+ replacement_policy: AUTO
+ ip_requirements:
+ - ip_version: 4
+ ip_count_required:
+ is_required: true
+ floating_ip_count_required:
+ is_required: false
+ security_groups:
+ - get_input: p2
+ fixed_ips:
+ - ip_address:
+ get_input:
+ - myIPs
+ - 0
+ mac_requirements:
+ mac_count_required:
+ is_required: false
+ network:
+ get_input: net
+ requirements:
+ - binding:
+ capability: tosca.capabilities.network.Bindable
+ node: myNovaServer3
+ relationship: tosca.relationships.network.BindsTo
+ myPort5:
+ type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
+ properties:
+ replacement_policy: AUTO
+ ip_requirements:
+ - ip_version: 4
+ ip_count_required:
+ is_required: true
+ floating_ip_count_required:
+ is_required: false
+ security_groups:
+ - get_input: p1
+ fixed_ips:
+ - ip_address:
+ get_input:
+ - myIPs
+ - 0
+ mac_requirements:
+ mac_count_required:
+ is_required: false
+ network:
+ get_input: net
+ requirements:
+ - binding:
+ capability: tosca.capabilities.network.Bindable
+ node: myNovaServer3
+ relationship: tosca.relationships.network.BindsTo
+ myNovaServer1:
+ type: org.openecomp.resource.vfc.nodes.heat.myNovaServer1
+ properties:
+ flavor:
+ get_input: flavor
+ availability_zone:
+ get_input: availability_zone_1
+ image:
+ get_input: image
+ name:
+ get_input:
+ - names
+ - 0
+ myNovaServer2:
+ type: org.openecomp.resource.vfc.nodes.heat.myNovaServer2
+ properties:
+ flavor:
+ get_input: flavor
+ availability_zone:
+ get_input: availability_zone_1
+ image:
+ get_input: image
+ name:
+ get_input:
+ - names
+ - 0
+ myPort2:
+ type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
+ properties:
+ replacement_policy: AUTO
+ ip_requirements:
+ - ip_version: 4
+ ip_count_required:
+ is_required: true
+ floating_ip_count_required:
+ is_required: false
+ security_groups:
+ - get_input: p2
+ fixed_ips:
+ - ip_address:
+ get_input:
+ - myIPs
+ - 0
+ mac_requirements:
+ mac_count_required:
+ is_required: false
+ network:
+ get_input: net
+ requirements:
+ - binding:
+ capability: tosca.capabilities.network.Bindable
+ node: myNovaServer1
+ relationship: tosca.relationships.network.BindsTo
+ myNovaServer3:
+ type: org.openecomp.resource.vfc.nodes.heat.myNovaServer3
+ properties:
+ flavor:
+ get_input: flavor
+ availability_zone:
+ get_input: availability_zone_1
+ image:
+ get_input: image
+ name:
+ get_input:
+ - names
+ - 0
+ myPort1:
+ type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
+ properties:
+ replacement_policy: AUTO
+ ip_requirements:
+ - ip_version: 4
+ ip_count_required:
+ is_required: true
+ floating_ip_count_required:
+ is_required: false
+ security_groups:
+ - get_input: p1
+ fixed_ips:
+ - ip_address:
+ get_input:
+ - myIPs
+ - 0
+ mac_requirements:
+ mac_count_required:
+ is_required: false
+ network:
+ get_input: net
+ requirements:
+ - binding:
+ capability: tosca.capabilities.network.Bindable
+ node: myNovaServer1
+ relationship: tosca.relationships.network.BindsTo
+ myPort4:
+ type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
+ properties:
+ replacement_policy: AUTO
+ ip_requirements:
+ - ip_version: 4
+ ip_count_required:
+ is_required: true
+ floating_ip_count_required:
+ is_required: false
+ security_groups:
+ - get_input: p2
+ fixed_ips:
+ - ip_address:
+ get_input:
+ - myIPs
+ - 0
+ mac_requirements:
+ mac_count_required:
+ is_required: false
+ network:
+ get_input: net
+ requirements:
+ - binding:
+ capability: tosca.capabilities.network.Bindable
+ node: myNovaServer2
+ relationship: tosca.relationships.network.BindsTo
+ myPort3:
+ type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
+ properties:
+ replacement_policy: AUTO
+ ip_requirements:
+ - ip_version: 4
+ ip_count_required:
+ is_required: true
+ floating_ip_count_required:
+ is_required: false
+ security_groups:
+ - get_input: p1
+ fixed_ips:
+ - ip_address:
+ get_input:
+ - myIPs
+ - 0
+ mac_requirements:
+ mac_count_required:
+ is_required: false
+ network:
+ get_input: net
+ requirements:
+ - binding:
+ capability: tosca.capabilities.network.Bindable
+ node: myNovaServer2
+ relationship: tosca.relationships.network.BindsTo
+ groups:
+ SVCgroup2_mixGroup_group:
+ type: tosca.groups.Root
+ members:
+ - SVCgroup1_simpleGroup_group
+ - myNovaServer3
+ main_group:
+ type: org.openecomp.groups.heat.HeatStack
+ properties:
+ heat_file: ../Artifacts/main.yml
+ description: cmaui server template for vMMSC
+ members:
+ - myPort6
+ - myPort5
+ - myNovaServer1
+ - myNovaServer2
+ - myPort2
+ - myNovaServer3
+ - myPort1
+ - myPort4
+ - myPort3
+ SVCgroup3_groupsMembers_group:
+ type: tosca.groups.Root
+ members:
+ - SVCgroup1_simpleGroup_group
+ - SVCgroup2_mixGroup_group
+ SVCgroup1_simpleGroup_group:
+ type: tosca.groups.Root
+ members:
+ - myNovaServer1
+ - myNovaServer2
+ policies:
+ SVCgroup2_policy:
+ type: org.openecomp.policies.placement.valet.Diversity
+ properties:
+ level: host
+ targets:
+ - SVCgroup2_mixGroup_group
+ SVCgroup1_policy:
+ type: org.openecomp.policies.placement.valet.Affinity
+ properties:
+ level: host
+ targets:
+ - SVCgroup1_simpleGroup_group
+ SVCgroup3_policy:
+ type: org.openecomp.policies.placement.valet.Exclusivity
+ properties:
+ level: rack
+ targets:
+ - SVCgroup3_groupsMembers_group \ No newline at end of file
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/complexNovaAndGroup/inputfiles/MANIFEST.json b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/complexNovaAndGroup/inputfiles/MANIFEST.json
new file mode 100644
index 0000000000..539e26b7ab
--- /dev/null
+++ b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/complexNovaAndGroup/inputfiles/MANIFEST.json
@@ -0,0 +1,12 @@
+{
+ "name": "vMME_Small",
+ "description": "HOT template to create 2 cinder volume attachment",
+ "version": "2013-05-23",
+ "data": [
+ {
+ "file": "main.yml",
+ "type": "HEAT",
+ "isBase": "true"
+ }
+ ]
+}
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/complexNovaAndGroup/inputfiles/main.yml b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/complexNovaAndGroup/inputfiles/main.yml
new file mode 100644
index 0000000000..57e9f04c36
--- /dev/null
+++ b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/complexNovaAndGroup/inputfiles/main.yml
@@ -0,0 +1,144 @@
+heat_template_version: 2013-05-23
+
+description: cmaui server template for vMMSC
+
+parameters:
+ net:
+ type: string
+ description: UID of network
+ p1:
+ type: string
+ description: p1
+ p2:
+ type: string
+ description: p2
+ myIPs:
+ type: string
+ description: ip1
+ availability_zone_1:
+ type: string
+ description: myAvailability_zone_1
+ names:
+ type: string
+ image:
+ type: string
+ flavor:
+ type: string
+resources:
+
+ myNovaServer1:
+ type: OS::Nova::Server
+ properties:
+ name: { get_param: [names, 0]}
+ image: { get_param: image }
+ availability_zone: { get_param: availability_zone_1 }
+ flavor: { get_param: flavor }
+ networks:
+ - port: { get_resource: myPort1 }
+ - port: { get_resource: myPort2 }
+
+
+ myNovaServer2:
+ type: OS::Nova::Server
+ properties:
+ name: { get_param: [names, 0]}
+ image: { get_param: image }
+ availability_zone: { get_param: availability_zone_1 }
+ flavor: { get_param: flavor }
+ networks:
+ - port: { get_resource: myPort3 }
+ - port: { get_resource: myPort4 }
+
+ myNovaServer3:
+ type: OS::Nova::Server
+ properties:
+ name: { get_param: [names, 0]}
+ image: { get_param: image }
+ availability_zone: { get_param: availability_zone_1 }
+ flavor: { get_param: flavor }
+ networks:
+ - port: { get_resource: myPort5 }
+ - port: { get_resource: myPort6 }
+ myPort1:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: net }
+ fixed_ips: [{"ip_address": {get_param: [myIPs, 0]}}]
+ security_groups: [{get_param: p1}]
+ replacement_policy: AUTO
+
+ myPort2:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: net }
+ fixed_ips: [{"ip_address": {get_param: [myIPs, 0]}}]
+ security_groups: [{get_param: p2}]
+ replacement_policy: AUTO
+
+ myPort3:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: net }
+ fixed_ips: [{"ip_address": {get_param: [myIPs, 0]}}]
+ security_groups: [{get_param: p1}]
+ replacement_policy: AUTO
+
+ myPort4:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: net }
+ fixed_ips: [{"ip_address": {get_param: [myIPs, 0]}}]
+ security_groups: [{get_param: p2}]
+ replacement_policy: AUTO
+ myPort5:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: net }
+ fixed_ips: [{"ip_address": {get_param: [myIPs, 0]}}]
+ security_groups: [{get_param: p1}]
+ replacement_policy: AUTO
+
+ myPort6:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: net }
+ fixed_ips: [{"ip_address": {get_param: [myIPs, 0]}}]
+ security_groups: [{get_param: p2}]
+ replacement_policy: AUTO
+ SVCgroup1:
+ type: ATT::Valet::GroupAssignment
+ properties:
+ group_type: affinity
+ group_name: simpleGroup
+ level: host
+ resources:
+ - { get_resource: myNovaServer1}
+ - { get_resource: myNovaServer2}
+ SVCgroup2:
+ type: ATT::Valet::GroupAssignment
+ properties:
+ group_type: diversity
+ group_name: mixGroup
+ level: host
+ resources:
+ - { get_resource: SVCgroup1}
+ - { get_resource: myNovaServer3}
+ SVCgroup3:
+ type: ATT::Valet::GroupAssignment
+ properties:
+ group_type: exclusivity
+ group_name: groupsMembers
+ level: rack
+ resources:
+ - { get_resource: SVCgroup1}
+ - { get_resource: SVCgroup2}
+ - { get_resource: SVCgroup4}
+ SVCgroup4:
+ type: ATT::Valet::GroupAssignment
+ properties:
+ group_type: koko
+ group_name: invalid
+ level: host
+ resources:
+ - { get_resource: SVCgroup1}
+ - { get_resource: SVCgroup2}
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/complexOnlyGroup/expectedoutputfiles/MainServiceTemplate.yaml b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/complexOnlyGroup/expectedoutputfiles/MainServiceTemplate.yaml
new file mode 100644
index 0000000000..71b6038eb3
--- /dev/null
+++ b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/complexOnlyGroup/expectedoutputfiles/MainServiceTemplate.yaml
@@ -0,0 +1,292 @@
+tosca_definitions_version: tosca_simple_yaml_1_0_0
+metadata:
+ template_name: Main
+imports:
+- openecomp_heat_index:
+ file: openecomp-heat/_index.yml
+node_types:
+ org.openecomp.resource.vfc.nodes.heat.myNovaServer2:
+ derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
+ org.openecomp.resource.vfc.nodes.heat.myNovaServer1:
+ derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
+ org.openecomp.resource.vfc.nodes.heat.myNovaServer3:
+ derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
+topology_template:
+ inputs:
+ flavor:
+ hidden: false
+ immutable: false
+ type: string
+ p1:
+ hidden: false
+ immutable: false
+ type: string
+ description: p1
+ image:
+ hidden: false
+ immutable: false
+ type: string
+ p2:
+ hidden: false
+ immutable: false
+ type: string
+ description: p2
+ names:
+ hidden: false
+ immutable: false
+ type: string
+ myIPs:
+ hidden: false
+ immutable: false
+ type: string
+ description: ip1
+ availability_zone_1:
+ hidden: false
+ immutable: false
+ type: string
+ description: myAvailability_zone_1
+ net:
+ hidden: false
+ immutable: false
+ type: string
+ description: UID of network
+ node_templates:
+ myPort6:
+ type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
+ properties:
+ replacement_policy: AUTO
+ ip_requirements:
+ - ip_version: 4
+ ip_count_required:
+ is_required: true
+ floating_ip_count_required:
+ is_required: false
+ security_groups:
+ - get_input: p2
+ fixed_ips:
+ - ip_address:
+ get_input:
+ - myIPs
+ - 0
+ mac_requirements:
+ mac_count_required:
+ is_required: false
+ network:
+ get_input: net
+ requirements:
+ - binding:
+ capability: tosca.capabilities.network.Bindable
+ node: myNovaServer3
+ relationship: tosca.relationships.network.BindsTo
+ myPort5:
+ type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
+ properties:
+ replacement_policy: AUTO
+ ip_requirements:
+ - ip_version: 4
+ ip_count_required:
+ is_required: true
+ floating_ip_count_required:
+ is_required: false
+ security_groups:
+ - get_input: p1
+ fixed_ips:
+ - ip_address:
+ get_input:
+ - myIPs
+ - 0
+ mac_requirements:
+ mac_count_required:
+ is_required: false
+ network:
+ get_input: net
+ requirements:
+ - binding:
+ capability: tosca.capabilities.network.Bindable
+ node: myNovaServer3
+ relationship: tosca.relationships.network.BindsTo
+ myNovaServer1:
+ type: org.openecomp.resource.vfc.nodes.heat.myNovaServer1
+ properties:
+ flavor:
+ get_input: flavor
+ availability_zone:
+ get_input: availability_zone_1
+ image:
+ get_input: image
+ name:
+ get_input:
+ - names
+ - 0
+ myNovaServer2:
+ type: org.openecomp.resource.vfc.nodes.heat.myNovaServer2
+ properties:
+ flavor:
+ get_input: flavor
+ availability_zone:
+ get_input: availability_zone_1
+ image:
+ get_input: image
+ name:
+ get_input:
+ - names
+ - 0
+ myPort2:
+ type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
+ properties:
+ replacement_policy: AUTO
+ ip_requirements:
+ - ip_version: 4
+ ip_count_required:
+ is_required: true
+ floating_ip_count_required:
+ is_required: false
+ security_groups:
+ - get_input: p2
+ fixed_ips:
+ - ip_address:
+ get_input:
+ - myIPs
+ - 0
+ mac_requirements:
+ mac_count_required:
+ is_required: false
+ network:
+ get_input: net
+ requirements:
+ - binding:
+ capability: tosca.capabilities.network.Bindable
+ node: myNovaServer1
+ relationship: tosca.relationships.network.BindsTo
+ myNovaServer3:
+ type: org.openecomp.resource.vfc.nodes.heat.myNovaServer3
+ properties:
+ flavor:
+ get_input: flavor
+ availability_zone:
+ get_input: availability_zone_1
+ image:
+ get_input: image
+ name:
+ get_input:
+ - names
+ - 0
+ myPort1:
+ type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
+ properties:
+ replacement_policy: AUTO
+ ip_requirements:
+ - ip_version: 4
+ ip_count_required:
+ is_required: true
+ floating_ip_count_required:
+ is_required: false
+ security_groups:
+ - get_input: p1
+ fixed_ips:
+ - ip_address:
+ get_input:
+ - myIPs
+ - 0
+ mac_requirements:
+ mac_count_required:
+ is_required: false
+ network:
+ get_input: net
+ requirements:
+ - binding:
+ capability: tosca.capabilities.network.Bindable
+ node: myNovaServer1
+ relationship: tosca.relationships.network.BindsTo
+ myPort4:
+ type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
+ properties:
+ replacement_policy: AUTO
+ ip_requirements:
+ - ip_version: 4
+ ip_count_required:
+ is_required: true
+ floating_ip_count_required:
+ is_required: false
+ security_groups:
+ - get_input: p2
+ fixed_ips:
+ - ip_address:
+ get_input:
+ - myIPs
+ - 0
+ mac_requirements:
+ mac_count_required:
+ is_required: false
+ network:
+ get_input: net
+ requirements:
+ - binding:
+ capability: tosca.capabilities.network.Bindable
+ node: myNovaServer2
+ relationship: tosca.relationships.network.BindsTo
+ myPort3:
+ type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
+ properties:
+ replacement_policy: AUTO
+ ip_requirements:
+ - ip_version: 4
+ ip_count_required:
+ is_required: true
+ floating_ip_count_required:
+ is_required: false
+ security_groups:
+ - get_input: p1
+ fixed_ips:
+ - ip_address:
+ get_input:
+ - myIPs
+ - 0
+ mac_requirements:
+ mac_count_required:
+ is_required: false
+ network:
+ get_input: net
+ requirements:
+ - binding:
+ capability: tosca.capabilities.network.Bindable
+ node: myNovaServer2
+ relationship: tosca.relationships.network.BindsTo
+ groups:
+ main_group:
+ type: org.openecomp.groups.heat.HeatStack
+ properties:
+ heat_file: ../Artifacts/main.yml
+ description: cmaui server template for vMMSC
+ members:
+ - myPort6
+ - myPort5
+ - myNovaServer1
+ - myNovaServer2
+ - myPort2
+ - myNovaServer3
+ - myPort1
+ - myPort4
+ - myPort3
+ SVCgroup1_simpleGroup_group:
+ type: tosca.groups.Root
+ members:
+ - myNovaServer1
+ - myNovaServer2
+ SVCgroup2_complexGroup_group:
+ type: tosca.groups.Root
+ members:
+ - SVCgroup1_simpleGroup_group
+ policies:
+ SVCgroup2_policy:
+ type: org.openecomp.policies.placement.valet.Affinity
+ properties:
+ level: host
+ targets:
+ - SVCgroup2_complexGroup_group
+ SVCgroup1_policy:
+ type: org.openecomp.policies.placement.valet.Affinity
+ properties:
+ level: host
+ targets:
+ - SVCgroup1_simpleGroup_group \ No newline at end of file
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/complexOnlyGroup/inputfiles/MANIFEST.json b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/complexOnlyGroup/inputfiles/MANIFEST.json
new file mode 100644
index 0000000000..7f1ddfbc90
--- /dev/null
+++ b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/complexOnlyGroup/inputfiles/MANIFEST.json
@@ -0,0 +1,12 @@
+{
+ "name": "vMME_Small",
+ "description": "HOT template to create 2 cinder volume attachment",
+ "version": "2013-05-23",
+ "data": [
+ {
+ "file": "main.yml",
+ "type": "HEAT",
+ "isBase": "true"
+ }
+ ]
+} \ No newline at end of file
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/complexOnlyGroup/inputfiles/main.yml b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/complexOnlyGroup/inputfiles/main.yml
new file mode 100644
index 0000000000..2317813e66
--- /dev/null
+++ b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/complexOnlyGroup/inputfiles/main.yml
@@ -0,0 +1,124 @@
+heat_template_version: 2013-05-23
+
+description: cmaui server template for vMMSC
+
+parameters:
+ net:
+ type: string
+ description: UID of network
+ p1:
+ type: string
+ description: p1
+ p2:
+ type: string
+ description: p2
+ myIPs:
+ type: string
+ description: ip1
+ availability_zone_1:
+ type: string
+ description: myAvailability_zone_1
+ names:
+ type: string
+ image:
+ type: string
+ flavor:
+ type: string
+resources:
+
+ myNovaServer1:
+ type: OS::Nova::Server
+ properties:
+ name: { get_param: [names, 0]}
+ image: { get_param: image }
+ availability_zone: { get_param: availability_zone_1 }
+ flavor: { get_param: flavor }
+ networks:
+ - port: { get_resource: myPort1 }
+ - port: { get_resource: myPort2 }
+
+
+ myNovaServer2:
+ type: OS::Nova::Server
+ properties:
+ name: { get_param: [names, 0]}
+ image: { get_param: image }
+ availability_zone: { get_param: availability_zone_1 }
+ flavor: { get_param: flavor }
+ networks:
+ - port: { get_resource: myPort3 }
+ - port: { get_resource: myPort4 }
+
+ myNovaServer3:
+ type: OS::Nova::Server
+ properties:
+ name: { get_param: [names, 0]}
+ image: { get_param: image }
+ availability_zone: { get_param: availability_zone_1 }
+ flavor: { get_param: flavor }
+ networks:
+ - port: { get_resource: myPort5 }
+ - port: { get_resource: myPort6 }
+ myPort1:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: net }
+ fixed_ips: [{"ip_address": {get_param: [myIPs, 0]}}]
+ security_groups: [{get_param: p1}]
+ replacement_policy: AUTO
+
+ myPort2:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: net }
+ fixed_ips: [{"ip_address": {get_param: [myIPs, 0]}}]
+ security_groups: [{get_param: p2}]
+ replacement_policy: AUTO
+
+ myPort3:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: net }
+ fixed_ips: [{"ip_address": {get_param: [myIPs, 0]}}]
+ security_groups: [{get_param: p1}]
+ replacement_policy: AUTO
+
+ myPort4:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: net }
+ fixed_ips: [{"ip_address": {get_param: [myIPs, 0]}}]
+ security_groups: [{get_param: p2}]
+ replacement_policy: AUTO
+ myPort5:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: net }
+ fixed_ips: [{"ip_address": {get_param: [myIPs, 0]}}]
+ security_groups: [{get_param: p1}]
+ replacement_policy: AUTO
+
+ myPort6:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: net }
+ fixed_ips: [{"ip_address": {get_param: [myIPs, 0]}}]
+ security_groups: [{get_param: p2}]
+ replacement_policy: AUTO
+ SVCgroup1:
+ type: ATT::Valet::GroupAssignment
+ properties:
+ group_type: affinity
+ group_name: simpleGroup
+ level: host
+ resources:
+ - { get_resource: myNovaServer1}
+ - { get_resource: myNovaServer2}
+ SVCgroup2:
+ type: ATT::Valet::GroupAssignment
+ properties:
+ group_type: affinity
+ group_name: complexGroup
+ level: host
+ resources:
+ - { get_resource: SVCgroup1} \ No newline at end of file
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/complexTwoGroups/expectedoutputfiles/MainServiceTemplate.yaml b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/complexTwoGroups/expectedoutputfiles/MainServiceTemplate.yaml
new file mode 100644
index 0000000000..072f382fbb
--- /dev/null
+++ b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/complexTwoGroups/expectedoutputfiles/MainServiceTemplate.yaml
@@ -0,0 +1,303 @@
+tosca_definitions_version: tosca_simple_yaml_1_0_0
+metadata:
+ template_name: Main
+imports:
+- openecomp_heat_index:
+ file: openecomp-heat/_index.yml
+node_types:
+ org.openecomp.resource.vfc.nodes.heat.myNovaServer2:
+ derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
+ org.openecomp.resource.vfc.nodes.heat.myNovaServer1:
+ derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
+ org.openecomp.resource.vfc.nodes.heat.myNovaServer3:
+ derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
+topology_template:
+ inputs:
+ flavor:
+ hidden: false
+ immutable: false
+ type: string
+ p1:
+ hidden: false
+ immutable: false
+ type: string
+ description: p1
+ image:
+ hidden: false
+ immutable: false
+ type: string
+ p2:
+ hidden: false
+ immutable: false
+ type: string
+ description: p2
+ names:
+ hidden: false
+ immutable: false
+ type: string
+ myIPs:
+ hidden: false
+ immutable: false
+ type: string
+ description: ip1
+ availability_zone_1:
+ hidden: false
+ immutable: false
+ type: string
+ description: myAvailability_zone_1
+ net:
+ hidden: false
+ immutable: false
+ type: string
+ description: UID of network
+ node_templates:
+ myPort6:
+ type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
+ properties:
+ replacement_policy: AUTO
+ ip_requirements:
+ - ip_version: 4
+ ip_count_required:
+ is_required: true
+ floating_ip_count_required:
+ is_required: false
+ security_groups:
+ - get_input: p2
+ fixed_ips:
+ - ip_address:
+ get_input:
+ - myIPs
+ - 0
+ mac_requirements:
+ mac_count_required:
+ is_required: false
+ network:
+ get_input: net
+ requirements:
+ - binding:
+ capability: tosca.capabilities.network.Bindable
+ node: myNovaServer3
+ relationship: tosca.relationships.network.BindsTo
+ myPort5:
+ type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
+ properties:
+ replacement_policy: AUTO
+ ip_requirements:
+ - ip_version: 4
+ ip_count_required:
+ is_required: true
+ floating_ip_count_required:
+ is_required: false
+ security_groups:
+ - get_input: p1
+ fixed_ips:
+ - ip_address:
+ get_input:
+ - myIPs
+ - 0
+ mac_requirements:
+ mac_count_required:
+ is_required: false
+ network:
+ get_input: net
+ requirements:
+ - binding:
+ capability: tosca.capabilities.network.Bindable
+ node: myNovaServer3
+ relationship: tosca.relationships.network.BindsTo
+ myNovaServer1:
+ type: org.openecomp.resource.vfc.nodes.heat.myNovaServer1
+ properties:
+ flavor:
+ get_input: flavor
+ availability_zone:
+ get_input: availability_zone_1
+ image:
+ get_input: image
+ name:
+ get_input:
+ - names
+ - 0
+ myNovaServer2:
+ type: org.openecomp.resource.vfc.nodes.heat.myNovaServer2
+ properties:
+ flavor:
+ get_input: flavor
+ availability_zone:
+ get_input: availability_zone_1
+ image:
+ get_input: image
+ name:
+ get_input:
+ - names
+ - 0
+ myPort2:
+ type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
+ properties:
+ replacement_policy: AUTO
+ ip_requirements:
+ - ip_version: 4
+ ip_count_required:
+ is_required: true
+ floating_ip_count_required:
+ is_required: false
+ security_groups:
+ - get_input: p2
+ fixed_ips:
+ - ip_address:
+ get_input:
+ - myIPs
+ - 0
+ mac_requirements:
+ mac_count_required:
+ is_required: false
+ network:
+ get_input: net
+ requirements:
+ - binding:
+ capability: tosca.capabilities.network.Bindable
+ node: myNovaServer1
+ relationship: tosca.relationships.network.BindsTo
+ myNovaServer3:
+ type: org.openecomp.resource.vfc.nodes.heat.myNovaServer3
+ properties:
+ flavor:
+ get_input: flavor
+ availability_zone:
+ get_input: availability_zone_1
+ image:
+ get_input: image
+ name:
+ get_input:
+ - names
+ - 0
+ myPort1:
+ type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
+ properties:
+ replacement_policy: AUTO
+ ip_requirements:
+ - ip_version: 4
+ ip_count_required:
+ is_required: true
+ floating_ip_count_required:
+ is_required: false
+ security_groups:
+ - get_input: p1
+ fixed_ips:
+ - ip_address:
+ get_input:
+ - myIPs
+ - 0
+ mac_requirements:
+ mac_count_required:
+ is_required: false
+ network:
+ get_input: net
+ requirements:
+ - binding:
+ capability: tosca.capabilities.network.Bindable
+ node: myNovaServer1
+ relationship: tosca.relationships.network.BindsTo
+ myPort4:
+ type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
+ properties:
+ replacement_policy: AUTO
+ ip_requirements:
+ - ip_version: 4
+ ip_count_required:
+ is_required: true
+ floating_ip_count_required:
+ is_required: false
+ security_groups:
+ - get_input: p2
+ fixed_ips:
+ - ip_address:
+ get_input:
+ - myIPs
+ - 0
+ mac_requirements:
+ mac_count_required:
+ is_required: false
+ network:
+ get_input: net
+ requirements:
+ - binding:
+ capability: tosca.capabilities.network.Bindable
+ node: myNovaServer2
+ relationship: tosca.relationships.network.BindsTo
+ myPort3:
+ type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
+ properties:
+ replacement_policy: AUTO
+ ip_requirements:
+ - ip_version: 4
+ ip_count_required:
+ is_required: true
+ floating_ip_count_required:
+ is_required: false
+ security_groups:
+ - get_input: p1
+ fixed_ips:
+ - ip_address:
+ get_input:
+ - myIPs
+ - 0
+ mac_requirements:
+ mac_count_required:
+ is_required: false
+ network:
+ get_input: net
+ requirements:
+ - binding:
+ capability: tosca.capabilities.network.Bindable
+ node: myNovaServer2
+ relationship: tosca.relationships.network.BindsTo
+ groups:
+ main_group:
+ type: org.openecomp.groups.heat.HeatStack
+ properties:
+ heat_file: ../Artifacts/main.yml
+ description: cmaui server template for vMMSC
+ members:
+ - myPort6
+ - myPort5
+ - myNovaServer1
+ - myNovaServer2
+ - myPort2
+ - myNovaServer3
+ - myPort1
+ - myPort4
+ - myPort3
+ SVCgroup1_simpleGroup1_group:
+ type: tosca.groups.Root
+ members:
+ - myNovaServer1
+ - myNovaServer2
+ SVCgroup3_complexTwoGroups_group:
+ type: tosca.groups.Root
+ members:
+ - SVCgroup1_simpleGroup1_group
+ - SVCgroup2_group
+ SVCgroup2_group:
+ type: tosca.groups.Root
+ members:
+ - myNovaServer3
+ policies:
+ SVCgroup2_policy:
+ type: org.openecomp.policies.placement.valet.Affinity
+ properties:
+ level: host
+ targets:
+ - SVCgroup2_group
+ SVCgroup1_policy:
+ type: org.openecomp.policies.placement.valet.Affinity
+ properties:
+ level: host
+ targets:
+ - SVCgroup1_simpleGroup1_group
+ SVCgroup3_policy:
+ type: org.openecomp.policies.placement.valet.Affinity
+ properties:
+ level: host
+ targets:
+ - SVCgroup3_complexTwoGroups_group \ No newline at end of file
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/complexTwoGroups/inputfiles/MANIFEST.json b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/complexTwoGroups/inputfiles/MANIFEST.json
new file mode 100644
index 0000000000..539e26b7ab
--- /dev/null
+++ b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/complexTwoGroups/inputfiles/MANIFEST.json
@@ -0,0 +1,12 @@
+{
+ "name": "vMME_Small",
+ "description": "HOT template to create 2 cinder volume attachment",
+ "version": "2013-05-23",
+ "data": [
+ {
+ "file": "main.yml",
+ "type": "HEAT",
+ "isBase": "true"
+ }
+ ]
+}
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/complexTwoGroups/inputfiles/main.yml b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/complexTwoGroups/inputfiles/main.yml
new file mode 100644
index 0000000000..14f2659d40
--- /dev/null
+++ b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/complexTwoGroups/inputfiles/main.yml
@@ -0,0 +1,132 @@
+heat_template_version: 2013-05-23
+
+description: cmaui server template for vMMSC
+
+parameters:
+ net:
+ type: string
+ description: UID of network
+ p1:
+ type: string
+ description: p1
+ p2:
+ type: string
+ description: p2
+ myIPs:
+ type: string
+ description: ip1
+ availability_zone_1:
+ type: string
+ description: myAvailability_zone_1
+ names:
+ type: string
+ image:
+ type: string
+ flavor:
+ type: string
+resources:
+
+ myNovaServer1:
+ type: OS::Nova::Server
+ properties:
+ name: { get_param: [names, 0]}
+ image: { get_param: image }
+ availability_zone: { get_param: availability_zone_1 }
+ flavor: { get_param: flavor }
+ networks:
+ - port: { get_resource: myPort1 }
+ - port: { get_resource: myPort2 }
+
+
+ myNovaServer2:
+ type: OS::Nova::Server
+ properties:
+ name: { get_param: [names, 0]}
+ image: { get_param: image }
+ availability_zone: { get_param: availability_zone_1 }
+ flavor: { get_param: flavor }
+ networks:
+ - port: { get_resource: myPort3 }
+ - port: { get_resource: myPort4 }
+
+ myNovaServer3:
+ type: OS::Nova::Server
+ properties:
+ name: { get_param: [names, 0]}
+ image: { get_param: image }
+ availability_zone: { get_param: availability_zone_1 }
+ flavor: { get_param: flavor }
+ networks:
+ - port: { get_resource: myPort5 }
+ - port: { get_resource: myPort6 }
+ myPort1:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: net }
+ fixed_ips: [{"ip_address": {get_param: [myIPs, 0]}}]
+ security_groups: [{get_param: p1}]
+ replacement_policy: AUTO
+
+ myPort2:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: net }
+ fixed_ips: [{"ip_address": {get_param: [myIPs, 0]}}]
+ security_groups: [{get_param: p2}]
+ replacement_policy: AUTO
+
+ myPort3:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: net }
+ fixed_ips: [{"ip_address": {get_param: [myIPs, 0]}}]
+ security_groups: [{get_param: p1}]
+ replacement_policy: AUTO
+
+ myPort4:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: net }
+ fixed_ips: [{"ip_address": {get_param: [myIPs, 0]}}]
+ security_groups: [{get_param: p2}]
+ replacement_policy: AUTO
+ myPort5:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: net }
+ fixed_ips: [{"ip_address": {get_param: [myIPs, 0]}}]
+ security_groups: [{get_param: p1}]
+ replacement_policy: AUTO
+
+ myPort6:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: net }
+ fixed_ips: [{"ip_address": {get_param: [myIPs, 0]}}]
+ security_groups: [{get_param: p2}]
+ replacement_policy: AUTO
+ SVCgroup1:
+ type: ATT::Valet::GroupAssignment
+ properties:
+ group_type: affinity
+ group_name: simpleGroup1
+ level: host
+ resources:
+ - { get_resource: myNovaServer1}
+ - { get_resource: myNovaServer2}
+ SVCgroup2:
+ type: ATT::Valet::GroupAssignment
+ properties:
+ group_type: affinity
+ level: host
+ resources:
+ - { get_resource: myNovaServer3}
+ SVCgroup3:
+ type: ATT::Valet::GroupAssignment
+ properties:
+ group_type: affinity
+ group_name: complexTwoGroups
+ level: host
+ resources:
+ - { get_resource: SVCgroup1}
+ - { get_resource: SVCgroup2} \ No newline at end of file
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/dynamicGroup/expectedoutputfiles/MainServiceTemplate.yaml b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/dynamicGroup/expectedoutputfiles/MainServiceTemplate.yaml
new file mode 100644
index 0000000000..9ceb3f0ab7
--- /dev/null
+++ b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/dynamicGroup/expectedoutputfiles/MainServiceTemplate.yaml
@@ -0,0 +1,202 @@
+tosca_definitions_version: tosca_simple_yaml_1_0_0
+metadata:
+ template_name: Main
+imports:
+- openecomp_heat_index:
+ file: openecomp-heat/_index.yml
+node_types:
+ org.openecomp.resource.vfc.nodes.heat.myNovaServer2:
+ derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
+ org.openecomp.resource.vfc.nodes.heat.myNovaServer1:
+ derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
+topology_template:
+ inputs:
+ flavor:
+ hidden: false
+ immutable: false
+ type: string
+ p1:
+ hidden: false
+ immutable: false
+ type: string
+ description: p1
+ image:
+ hidden: false
+ immutable: false
+ type: string
+ p2:
+ hidden: false
+ immutable: false
+ type: string
+ description: p2
+ names:
+ hidden: false
+ immutable: false
+ type: string
+ group_name:
+ hidden: false
+ immutable: false
+ type: string
+ myIPs:
+ hidden: false
+ immutable: false
+ type: string
+ description: ip1
+ availability_zone_1:
+ hidden: false
+ immutable: false
+ type: string
+ description: myAvailability_zone_1
+ net:
+ hidden: false
+ immutable: false
+ type: string
+ description: UID of network
+ node_templates:
+ myNovaServer1:
+ type: org.openecomp.resource.vfc.nodes.heat.myNovaServer1
+ properties:
+ flavor:
+ get_input: flavor
+ availability_zone:
+ get_input: availability_zone_1
+ image:
+ get_input: image
+ name:
+ get_input:
+ - names
+ - 0
+ myNovaServer2:
+ type: org.openecomp.resource.vfc.nodes.heat.myNovaServer2
+ properties:
+ flavor:
+ get_input: flavor
+ availability_zone:
+ get_input: availability_zone_1
+ image:
+ get_input: image
+ name:
+ get_input:
+ - names
+ - 0
+ myPort2:
+ type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
+ properties:
+ replacement_policy: AUTO
+ ip_requirements:
+ - ip_version: 4
+ ip_count_required:
+ is_required: true
+ floating_ip_count_required:
+ is_required: false
+ security_groups:
+ - get_input: p2
+ fixed_ips:
+ - ip_address:
+ get_input:
+ - myIPs
+ - 0
+ mac_requirements:
+ mac_count_required:
+ is_required: false
+ network:
+ get_input: net
+ requirements:
+ - binding:
+ capability: tosca.capabilities.network.Bindable
+ node: myNovaServer1
+ relationship: tosca.relationships.network.BindsTo
+ myPort1:
+ type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
+ properties:
+ replacement_policy: AUTO
+ ip_requirements:
+ - ip_version: 4
+ ip_count_required:
+ is_required: true
+ floating_ip_count_required:
+ is_required: false
+ security_groups:
+ - get_input: p1
+ fixed_ips:
+ - ip_address:
+ get_input:
+ - myIPs
+ - 0
+ mac_requirements:
+ mac_count_required:
+ is_required: false
+ network:
+ get_input: net
+ requirements:
+ - binding:
+ capability: tosca.capabilities.network.Bindable
+ node: myNovaServer1
+ relationship: tosca.relationships.network.BindsTo
+ myPort4:
+ type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
+ properties:
+ replacement_policy: AUTO
+ ip_requirements:
+ - ip_version: 4
+ ip_count_required:
+ is_required: true
+ floating_ip_count_required:
+ is_required: false
+ security_groups:
+ - get_input: p2
+ fixed_ips:
+ - ip_address:
+ get_input:
+ - myIPs
+ - 0
+ mac_requirements:
+ mac_count_required:
+ is_required: false
+ network:
+ get_input: net
+ requirements:
+ - binding:
+ capability: tosca.capabilities.network.Bindable
+ node: myNovaServer2
+ relationship: tosca.relationships.network.BindsTo
+ myPort3:
+ type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
+ properties:
+ replacement_policy: AUTO
+ ip_requirements:
+ - ip_version: 4
+ ip_count_required:
+ is_required: true
+ floating_ip_count_required:
+ is_required: false
+ security_groups:
+ - get_input: p1
+ fixed_ips:
+ - ip_address:
+ get_input:
+ - myIPs
+ - 0
+ mac_requirements:
+ mac_count_required:
+ is_required: false
+ network:
+ get_input: net
+ requirements:
+ - binding:
+ capability: tosca.capabilities.network.Bindable
+ node: myNovaServer2
+ relationship: tosca.relationships.network.BindsTo
+ groups:
+ main_group:
+ type: org.openecomp.groups.heat.HeatStack
+ properties:
+ heat_file: ../Artifacts/main.yml
+ description: cmaui server template for vMMSC
+ members:
+ - myNovaServer1
+ - myNovaServer2
+ - myPort2
+ - myPort1
+ - myPort4
+ - myPort3 \ No newline at end of file
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/dynamicGroup/inputfiles/MANIFEST.json b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/dynamicGroup/inputfiles/MANIFEST.json
new file mode 100644
index 0000000000..539e26b7ab
--- /dev/null
+++ b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/dynamicGroup/inputfiles/MANIFEST.json
@@ -0,0 +1,12 @@
+{
+ "name": "vMME_Small",
+ "description": "HOT template to create 2 cinder volume attachment",
+ "version": "2013-05-23",
+ "data": [
+ {
+ "file": "main.yml",
+ "type": "HEAT",
+ "isBase": "true"
+ }
+ ]
+}
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/dynamicGroup/inputfiles/main.yml b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/dynamicGroup/inputfiles/main.yml
new file mode 100644
index 0000000000..0117d4b87c
--- /dev/null
+++ b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/dynamicGroup/inputfiles/main.yml
@@ -0,0 +1,111 @@
+heat_template_version: 2013-05-23
+
+description: cmaui server template for vMMSC
+
+parameters:
+ net:
+ type: string
+ description: UID of network
+ p1:
+ type: string
+ description: p1
+ p2:
+ type: string
+ description: p2
+ myIPs:
+ type: string
+ description: ip1
+ availability_zone_1:
+ type: string
+ description: myAvailability_zone_1
+ names:
+ type: string
+ image:
+ type: string
+ flavor:
+ type: string
+ group_name:
+ type: string
+resources:
+
+ myNovaServer1:
+ type: OS::Nova::Server
+ properties:
+ name: { get_param: [names, 0]}
+ image: { get_param: image }
+ availability_zone: { get_param: availability_zone_1 }
+ flavor: { get_param: flavor }
+ networks:
+ - port: { get_resource: myPort1 }
+ - port: { get_resource: myPort2 }
+
+
+ myNovaServer2:
+ type: OS::Nova::Server
+ properties:
+ name: { get_param: [names, 0]}
+ image: { get_param: image }
+ availability_zone: { get_param: availability_zone_1 }
+ flavor: { get_param: flavor }
+ networks:
+ - port: { get_resource: myPort3 }
+ - port: { get_resource: myPort4 }
+
+ myPort1:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: net }
+ fixed_ips: [{"ip_address": {get_param: [myIPs, 0]}}]
+ security_groups: [{get_param: p1}]
+ replacement_policy: AUTO
+
+ myPort2:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: net }
+ fixed_ips: [{"ip_address": {get_param: [myIPs, 0]}}]
+ security_groups: [{get_param: p2}]
+ replacement_policy: AUTO
+
+ myPort3:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: net }
+ fixed_ips: [{"ip_address": {get_param: [myIPs, 0]}}]
+ security_groups: [{get_param: p1}]
+ replacement_policy: AUTO
+
+ myPort4:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: net }
+ fixed_ips: [{"ip_address": {get_param: [myIPs, 0]}}]
+ security_groups: [{get_param: p2}]
+ replacement_policy: AUTO
+ SVCgroup1:
+ type: ATT::Valet::GroupAssignment
+ properties:
+ group_type: { get_param: group_name}
+ group_name: simpleGroup
+ level: host
+ resources:
+ - { get_resource: myNovaServer1}
+ - { get_resource: myNovaServer2}
+ SVCgroup2:
+ type: ATT::Valet::GroupAssignment
+ properties:
+ group_type: 2
+ group_name: simpleGroup
+ level: host
+ resources:
+ - { get_resource: myNovaServer1}
+ - { get_resource: myNovaServer2}
+ SVCgroup3:
+ type: ATT::Valet::GroupAssignment
+ properties:
+ group_type: { get_attr: [myPort4, show ]}
+ group_name: simpleGroup
+ level: host
+ resources:
+ - { get_resource: myNovaServer1}
+ - { get_resource: myNovaServer2}
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/groupNameParameter/expectedoutputfiles/MainServiceTemplate.yaml b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/groupNameParameter/expectedoutputfiles/MainServiceTemplate.yaml
new file mode 100644
index 0000000000..ced6638077
--- /dev/null
+++ b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/groupNameParameter/expectedoutputfiles/MainServiceTemplate.yaml
@@ -0,0 +1,610 @@
+tosca_definitions_version: tosca_simple_yaml_1_0_0
+metadata:
+ template_name: Main
+imports:
+- openecomp_heat_index:
+ file: openecomp-heat/_index.yml
+node_types:
+ org.openecomp.resource.vfc.nodes.heat.vipr_atm:
+ derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
+topology_template:
+ inputs:
+ vf_module_id:
+ hidden: false
+ immutable: false
+ type: string
+ description: Unique ID for the VF Module instance
+ default: '5678'
+ constraints:
+ - max_length: 255
+ - min_length: 1
+ vipr_atm_ha_two_id:
+ hidden: false
+ immutable: false
+ type: string
+ description: Neutron UUID of the second high availability network for the vIPR-ATM firewal
+ default: b75e27cf-452f-48ef-b107-8777e645c22d
+ constraints: [
+ ]
+ vipr_atm_oam_net_security_groups:
+ hidden: false
+ immutable: false
+ type: list
+ description: List of the security group to apply to the vIPR-ATM firewall management port
+ default:
+ - c2369210-d154-4e4a-984d-047674beb5da
+ entry_schema:
+ type: string
+ vipr_atm_valet_eg_0:
+ hidden: false
+ immutable: false
+ type: string
+ description: The Valet 1.0 Exclusivity Group for the vIPR-ATM firewall virtual machine
+ default: CORE_INFRASTRUCTURE_VNFs
+ constraints:
+ - max_length: 255
+ - min_length: 1
+ vipr_atm_name_0:
+ hidden: false
+ immutable: false
+ type: string
+ description: Name of the vIPR-ATM firewall virtual machine
+ default: zrcs1cctvpr001
+ constraints:
+ - max_length: 255
+ - min_length: 1
+ vipr_atm_image_name:
+ hidden: false
+ immutable: false
+ type: string
+ description: Image name of the vIPR-ATM firewall virtual machine
+ default: vipr-atm-pan7.1
+ constraints: [
+ ]
+ vnf_name:
+ hidden: false
+ immutable: false
+ type: string
+ description: Unique Name for this VF instance
+ default: RD3TX100vfw
+ constraints:
+ - max_length: 255
+ - min_length: 1
+ vipr_atm_service_left_fqdn:
+ hidden: false
+ immutable: false
+ type: string
+ description: FQDN of the Left service network for the vIPR-ATM firewall
+ default: default-domain:vIPR-ATM:vIPR-ATM-service-left
+ constraints:
+ - pattern: ^(?:[^:]{1,64}:){2}(?:[^:]{1,255})$
+ vipr_atm_ha_one_ip_0:
+ hidden: false
+ immutable: false
+ type: string
+ description: Fixed IP to apply to the vIPR-ATM firewall ha0 port
+ default: 192.168.35.1
+ constraints:
+ - pattern: ^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$
+ vipr_atm_ha_one_id:
+ hidden: false
+ immutable: false
+ type: string
+ description: Neutron UUID of the first high availability network for the vIPR-ATM firewall
+ default: 4abaafc8-b8af-40b9-b0d0-32bd91f958ee
+ constraints: [
+ ]
+ vnf_id:
+ hidden: false
+ immutable: false
+ type: string
+ description: Unique ID for this VF instance
+ default: '1234'
+ constraints:
+ - max_length: 255
+ - min_length: 1
+ vipr_atm_flavor_name:
+ hidden: false
+ immutable: false
+ type: string
+ description: Flavor for the vIPR-ATM firewall virtual machine
+ default: m1.vipr-atm-pan
+ constraints: [
+ ]
+ availability_zone_0:
+ hidden: false
+ immutable: false
+ type: string
+ description: Availability Zone for the vIPR-ATM firewall virtual machine
+ default: nova
+ constraints:
+ - max_length: 255
+ - min_length: 1
+ vipr_atm_server_group:
+ hidden: false
+ immutable: false
+ type: string
+ description: Server Group with anti-affinity policy for the vIPR-ATM firewall virtual machine
+ default: 885dbf7f-fcb2-42d2-a694-a5930ce35b71
+ constraints:
+ - max_length: 255
+ - min_length: 1
+ vipr_atm_service_left_ip_prefix:
+ hidden: false
+ immutable: false
+ type: string
+ description: Left vIPR-ATM service network IP address prefix
+ default: 10.254.3.0
+ constraints:
+ - pattern: ^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$
+ vipr_atm_ha_one_cidr:
+ hidden: false
+ immutable: false
+ type: string
+ description: vIPR-ATM private High Availability Network One IP address CIDR
+ default: 192.168.35.0/29
+ constraints:
+ - pattern: ^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\/(?:3[0-2]|[12]?[0-9])$
+ vipr_atm_service_right_fqdn:
+ hidden: false
+ immutable: false
+ type: string
+ description: FQDN of the Right service network for the vIPR-ATM firewall
+ default: default-domain:vIPR-ATM:vIPR-ATM-service-right
+ constraints:
+ - pattern: ^(?:[^:]{1,64}:){2}(?:[^:]{1,255})$
+ vipr_atm_service_right_ip_prefix_len:
+ hidden: false
+ immutable: false
+ type: float
+ description: Right vIPR-ATM service network IP address prefix length
+ default: 24
+ constraints:
+ - in_range:
+ - 0
+ - 32
+ vipr_atm_ha_two_ip_0:
+ hidden: false
+ immutable: false
+ type: string
+ description: Fixed IP to apply to the vIPR-ATM firewall ha1 port
+ default: 192.168.35.9
+ constraints:
+ - pattern: ^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$
+ vipr_atm_ha_two_cidr:
+ hidden: false
+ immutable: false
+ type: string
+ description: vIPR-ATM private High Availability Network Two IP address CIDR
+ default: 192.168.35.8/29
+ constraints:
+ - pattern: ^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\/(?:3[0-2]|[12]?[0-9])$
+ oam_net_id:
+ hidden: false
+ immutable: false
+ type: string
+ description: Neutron UUID for the managemnet network name of the vIPR-ATM firewall
+ default: 1ac9d738-f545-413a-a9a2-b44309edc511
+ constraints: [
+ ]
+ vipr_atm_service_right_ip_prefix:
+ hidden: false
+ immutable: false
+ type: string
+ description: Right vIPR-ATM service network IP address prefix
+ default: 10.254.4.0
+ constraints:
+ - pattern: ^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$
+ vipr_atm_service_left_ip_prefix_len:
+ hidden: false
+ immutable: false
+ type: float
+ description: Left vIPR-ATM service network IP address prefix length
+ default: 24
+ constraints:
+ - in_range:
+ - 0
+ - 32
+ vipr_atm_contrail_service_instance_fqdn:
+ hidden: false
+ immutable: false
+ type: string
+ description: FQDN of the vIPR-ATM firewall Contrail service instance for the port tuple
+ default: default-domain:vIPR-ATM:vIPR-ATM-service-instance
+ constraints:
+ - pattern: ^(?:[^:]{1,64}:){2}(?:[^:]{1,255})$
+ vipr_atm_ha_two_security_groups:
+ hidden: false
+ immutable: false
+ type: list
+ description: List of the security group to apply to the vIPR-ATM firewall ha1 port
+ default:
+ - 29e29a4a-b45d-42c2-ac14-b12a70036ae6
+ entry_schema:
+ type: string
+ vipr_atm_ha_one_security_groups:
+ hidden: false
+ immutable: false
+ type: list
+ description: List of the security group to apply to the vIPR-ATM firewall ha0 port
+ default:
+ - cbf8049e-69e8-48c3-a06f-255634391403
+ entry_schema:
+ type: string
+ node_templates:
+ vIPR_ATM_OAM_SG:
+ type: org.openecomp.resource.vfc.rules.nodes.heat.network.neutron.SecurityRules
+ properties:
+ name:
+ str_replace:
+ template: VNF_NAME_VIPR_ATM_OAM_SG
+ params:
+ VNF_NAME:
+ get_input: vnf_name
+ rules:
+ - protocol: tcp
+ remote_ip_prefix: 0.0.0.0/0
+ port_range_max: 22
+ port_range_min: 22
+ - protocol: tcp
+ remote_ip_prefix: 0.0.0.0/0
+ port_range_max: 443
+ port_range_min: 443
+ - protocol: tcp
+ remote_ip_prefix: 0.0.0.0/0
+ port_range_max: 3978
+ port_range_min: 3978
+ - protocol: icmp
+ remote_ip_prefix: 0.0.0.0/0
+ vIPR_ATM_Left_RVMI:
+ type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
+ properties:
+ name:
+ str_replace:
+ template: VM_NAME_PORT_3
+ params:
+ VM_NAME:
+ get_input: vipr_atm_name_0
+ virtual_network_refs:
+ - get_input: vipr_atm_service_left_fqdn
+ virtual_machine_interface_properties:
+ service_interface_type: left
+ port_tuple_refs:
+ - UNSUPPORTED_RESOURCE_vIPR_ATM_RPT
+ requirements:
+ - link:
+ capability: tosca.capabilities.network.Linkable
+ node: vIPR_ATM_Service_Left
+ relationship: tosca.relationships.network.LinksTo
+ - binding:
+ capability: tosca.capabilities.network.Bindable
+ node: vIPR_ATM_Firewall
+ relationship: tosca.relationships.network.BindsTo
+ vIPR_ATM_Service_Right:
+ type: org.openecomp.resource.vl.nodes.heat.network.contrailV2.VirtualNetwork
+ properties:
+ network_ipam_refs_data:
+ - network_ipam_refs_data_ipam_subnets:
+ - network_ipam_refs_data_ipam_subnets_subnet:
+ network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len:
+ get_input: vipr_atm_service_right_ip_prefix_len
+ network_ipam_refs_data_ipam_subnets_subnet_ip_prefix:
+ get_input: vipr_atm_service_right_ip_prefix
+ network_name:
+ str_replace:
+ template: VNF_NAME_VIPR_ATM_SERVICE_RIGHT_NETWORK
+ params:
+ VNF_NAME:
+ get_input: vnf_name
+ network_ipam_refs:
+ - default-domain:default-project:default-network-ipam
+ vIPR_ATM_Ha_Two:
+ type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
+ properties:
+ dhcp_enabled: false
+ network_name:
+ str_replace:
+ template: VNF_NAME_VIPR_ATM_HA_TWO_NETWORK
+ params:
+ VNF_NAME:
+ get_input: vnf_name
+ subnets:
+ vIPR_ATM_Ha_Two_Subnet:
+ enable_dhcp: false
+ name:
+ str_replace:
+ template: NET_NAME_SUBNET
+ params:
+ NET_NAME:
+ get_attribute:
+ - vIPR_ATM_Ha_Two
+ - network_name
+ cidr:
+ get_input: vipr_atm_ha_two_cidr
+ requirements:
+ - dependency:
+ capability: tosca.capabilities.Node
+ node: vIPR_ATM_Ha_Two
+ relationship: tosca.relationships.DependsOn
+ vIPR_ATM_HA_TWO_SG:
+ type: org.openecomp.resource.vfc.rules.nodes.heat.network.neutron.SecurityRules
+ properties:
+ name:
+ str_replace:
+ template: VNF_NAME_VIPR_ATM_HA_TWO_SG
+ params:
+ VNF_NAME:
+ get_input: vnf_name
+ rules:
+ - remote_mode: remote_group_id
+ vIPR_ATM_HA_ONE_SG:
+ type: org.openecomp.resource.vfc.rules.nodes.heat.network.neutron.SecurityRules
+ properties:
+ name:
+ str_replace:
+ template: VNF_NAME_VIPR_ATM_HA_ONE_SG
+ params:
+ VNF_NAME:
+ get_input: vnf_name
+ rules:
+ - remote_mode: remote_group_id
+ vIPR_ATM_Ha_One:
+ type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
+ properties:
+ dhcp_enabled: false
+ network_name:
+ str_replace:
+ template: VNF_NAME_VIPR_ATM_HA_ONE_NETWORK
+ params:
+ VNF_NAME:
+ get_input: vnf_name
+ subnets:
+ vIPR_ATM_Ha_One_Subnet:
+ enable_dhcp: false
+ name:
+ str_replace:
+ template: NET_NAME_SUBNET
+ params:
+ NET_NAME:
+ get_attribute:
+ - vIPR_ATM_Ha_One
+ - network_name
+ cidr:
+ get_input: vipr_atm_ha_one_cidr
+ requirements:
+ - dependency:
+ capability: tosca.capabilities.Node
+ node: vIPR_ATM_Ha_One
+ relationship: tosca.relationships.DependsOn
+ vIPR_ATM_OAM_0_Port:
+ type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
+ properties:
+ ip_requirements:
+ - ip_version: 4
+ ip_count_required:
+ is_required: false
+ floating_ip_count_required:
+ is_required: false
+ security_groups:
+ get_input: vipr_atm_oam_net_security_groups
+ mac_requirements:
+ mac_count_required:
+ is_required: false
+ name:
+ str_replace:
+ template: VM_NAME_PORT_0
+ params:
+ VM_NAME:
+ get_input: vipr_atm_name_0
+ network_role_tag: oam
+ network:
+ get_input: oam_net_id
+ requirements:
+ - binding:
+ capability: tosca.capabilities.network.Bindable
+ node: vIPR_ATM_Firewall
+ relationship: tosca.relationships.network.BindsTo
+ vIPR_ATM_Service_Left:
+ type: org.openecomp.resource.vl.nodes.heat.network.contrailV2.VirtualNetwork
+ properties:
+ network_ipam_refs_data:
+ - network_ipam_refs_data_ipam_subnets:
+ - network_ipam_refs_data_ipam_subnets_subnet:
+ network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len:
+ get_input: vipr_atm_service_left_ip_prefix_len
+ network_ipam_refs_data_ipam_subnets_subnet_ip_prefix:
+ get_input: vipr_atm_service_left_ip_prefix
+ network_name:
+ str_replace:
+ template: VNF_NAME_VIPR_ATM_SERVICE_LEFT_NETWORK
+ params:
+ VNF_NAME:
+ get_input: vnf_name
+ network_ipam_refs:
+ - default-domain:default-project:default-network-ipam
+ vIPR_ATM_Right_RVMI:
+ type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
+ properties:
+ name:
+ str_replace:
+ template: VM_NAME_PORT_4
+ params:
+ VM_NAME:
+ get_input: vipr_atm_name_0
+ virtual_network_refs:
+ - get_input: vipr_atm_service_right_fqdn
+ virtual_machine_interface_properties:
+ service_interface_type: right
+ port_tuple_refs:
+ - UNSUPPORTED_RESOURCE_vIPR_ATM_RPT
+ requirements:
+ - link:
+ capability: tosca.capabilities.network.Linkable
+ node: vIPR_ATM_Service_Right
+ relationship: tosca.relationships.network.LinksTo
+ - binding:
+ capability: tosca.capabilities.network.Bindable
+ node: vIPR_ATM_Firewall
+ relationship: tosca.relationships.network.BindsTo
+ vIPR_ATM_Ha_Two_0_Port:
+ type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
+ properties:
+ ip_requirements:
+ - ip_version: 4
+ ip_count_required:
+ is_required: true
+ floating_ip_count_required:
+ is_required: false
+ security_groups:
+ get_input: vipr_atm_ha_two_security_groups
+ fixed_ips:
+ - ip_address:
+ get_input: vipr_atm_ha_two_ip_0
+ mac_requirements:
+ mac_count_required:
+ is_required: false
+ name:
+ str_replace:
+ template: VM_NAME_PORT_2
+ params:
+ VM_NAME:
+ get_input: vipr_atm_name_0
+ network:
+ get_input: vipr_atm_ha_two_id
+ requirements:
+ - link:
+ capability: tosca.capabilities.network.Linkable
+ node: vIPR_ATM_Ha_Two
+ relationship: tosca.relationships.network.LinksTo
+ - binding:
+ capability: tosca.capabilities.network.Bindable
+ node: vIPR_ATM_Firewall
+ relationship: tosca.relationships.network.BindsTo
+ vIPR_ATM_Firewall:
+ type: org.openecomp.resource.vfc.nodes.heat.vipr_atm
+ properties:
+ flavor:
+ get_input: vipr_atm_flavor_name
+ availability_zone:
+ get_input: availability_zone_0
+ image:
+ get_input: vipr_atm_image_name
+ metadata:
+ vf_module_id:
+ get_input: vf_module_id
+ vnf_id:
+ get_input: vnf_id
+ vnf_name:
+ get_input: vnf_name
+ contrail_service_instance_ind: true
+ name:
+ get_input: vipr_atm_name_0
+ scheduler_hints:
+ group:
+ get_input: vipr_atm_server_group
+ vIPR_ATM_Ha_One_0_Port:
+ type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
+ properties:
+ ip_requirements:
+ - ip_version: 4
+ ip_count_required:
+ is_required: true
+ floating_ip_count_required:
+ is_required: false
+ security_groups:
+ get_input: vipr_atm_ha_one_security_groups
+ fixed_ips:
+ - ip_address:
+ get_input: vipr_atm_ha_one_ip_0
+ mac_requirements:
+ mac_count_required:
+ is_required: false
+ name:
+ str_replace:
+ template: VM_NAME_PORT_1
+ params:
+ VM_NAME:
+ get_input: vipr_atm_name_0
+ network:
+ get_input: vipr_atm_ha_one_id
+ requirements:
+ - link:
+ capability: tosca.capabilities.network.Linkable
+ node: vIPR_ATM_Ha_One
+ relationship: tosca.relationships.network.LinksTo
+ - binding:
+ capability: tosca.capabilities.network.Bindable
+ node: vIPR_ATM_Firewall
+ relationship: tosca.relationships.network.BindsTo
+ groups:
+ vIPR_ATM_Server_Group_group:
+ type: tosca.groups.Root
+ members:
+ - vIPR_ATM_Firewall
+ vIPR-ATM-Base_group:
+ type: org.openecomp.groups.heat.HeatStack
+ properties:
+ heat_file: ../Artifacts/vIPR-ATM-Base.yaml
+ description: "HOT template to create the vIPR-ATM firwall service template\
+ \ and instance. This template creates the following - Two service virtual\
+ \ networks for each side (left and right) of the vIPR-ATM firewalls - Two\
+ \ virtual networks for high availability between the vIPR-ATM firewalls\
+ \ - A Contrail Service Template for the vIPR-ATM service - A Contrail Service\
+ \ Instance for the vIPR-ATM service\nThe firewall virtual machines connected\
+ \ to these created networks and managed by the vIPR-ATM service instance\
+ \ will be created by the vIPR-ATM-Instance.yaml HOT template.\nNetwork Policy\
+ \ that includes the vIPR-ATM service instance will be created by client\
+ \ specific HOT templates or Contrail APIs. \n"
+ members:
+ - vIPR_ATM_Ha_One
+ - vIPR_ATM_OAM_SG
+ - vIPR_ATM_Service_Left
+ - vIPR_ATM_Service_Right
+ - vIPR_ATM_Ha_Two
+ - vIPR_ATM_HA_TWO_SG
+ - vIPR_ATM_HA_ONE_SG
+ vIPR_ATM_Valet_EG_0_group:
+ type: tosca.groups.Root
+ members:
+ - vIPR_ATM_Firewall
+ vIPR-ATM-Instance_group:
+ type: org.openecomp.groups.heat.HeatStack
+ properties:
+ heat_file: ../Artifacts/vIPR-ATM-Instance.yaml
+ description: |
+ HOT template to create a vIPR-ATM firwall service instance. This template creates the following - Contrail Port Tuple for this firwall service instance - Virtual machine interfaces and IP addresses attached to the two service virtual networks. These virtual machine interfaces will be used by the vIPR firewall service instance - Neutron ports for OAM, HA0, and HA1 networks - OS::Nova::Server with the created virtual machine interface and ports. This is the firewall service instance virtual machine.
+ members:
+ - vIPR_ATM_Left_RVMI
+ - vIPR_ATM_OAM_0_Port
+ - vIPR_ATM_Right_RVMI
+ - vIPR_ATM_Ha_Two_0_Port
+ - vIPR_ATM_Firewall
+ - vIPR_ATM_Ha_One_0_Port
+ outputs:
+ vipr_atm_contrail_service_instance_fqdn:
+ description: The FQDN for the Contrail Service Instance that is needed to create tenant OAM network policy to service change through the vIPR-ATM firewall.
+ value:
+ list_join:
+ - ':'
+ - get_attr:
+ - vIPR_ATM_Service_Instance
+ - fq_name
+ policies:
+ vIPR_ATM_Valet_EG_0_policy:
+ type: org.openecomp.policies.placement.valet.Exclusivity
+ properties:
+ level: host
+ targets:
+ - vIPR_ATM_Valet_EG_0_group
+ vIPR_ATM_Server_Group_policy:
+ type: org.openecomp.policies.placement.Antilocate
+ properties:
+ name:
+ str_replace:
+ template: VNF_NAME_VIPR_ATM_SERVER_GROUP
+ params:
+ VNF_NAME:
+ get_input: vnf_name
+ container_type: host
+ targets:
+ - vIPR_ATM_Server_Group_group \ No newline at end of file
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/groupNameParameter/inputfiles/MANIFEST.json b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/groupNameParameter/inputfiles/MANIFEST.json
new file mode 100644
index 0000000000..96b8ed1d27
--- /dev/null
+++ b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/groupNameParameter/inputfiles/MANIFEST.json
@@ -0,0 +1,28 @@
+{
+ "name": "vIPR",
+ "description": "HOT template to create vIPR",
+ "data": [
+ {
+ "file": "vIPR-ATM-Base.yaml",
+ "type": "HEAT",
+ "isBase": "true",
+ "data": [
+ {
+ "file": "vIPR-ATM-Base.env",
+ "type": "HEAT_ENV"
+ }
+ ]
+ },
+ {
+ "file": "vIPR-ATM-Instance.yaml",
+ "type": "HEAT",
+ "isBase": "false",
+ "data": [
+ {
+ "file": "vIPR-ATM-Instance.env",
+ "type": "HEAT_ENV"
+ }
+ ]
+ }
+ ]
+} \ No newline at end of file
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/groupNameParameter/inputfiles/vIPR-ATM-Base.env b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/groupNameParameter/inputfiles/vIPR-ATM-Base.env
new file mode 100644
index 0000000000..acf1ac5d03
--- /dev/null
+++ b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/groupNameParameter/inputfiles/vIPR-ATM-Base.env
@@ -0,0 +1,14 @@
+parameters:
+ vipr_atm_service_left_ip_prefix: 10.254.3.0
+ vipr_atm_service_left_ip_prefix_len: 24
+
+ vipr_atm_service_right_ip_prefix: 10.254.4.0
+ vipr_atm_service_right_ip_prefix_len: 24
+
+ vipr_atm_ha_one_cidr: 192.168.35.0/29
+ vipr_atm_ha_two_cidr: 192.168.35.8/29
+
+ vnf_id: '1234'
+ vnf_name: 'RD3TX100vfw'
+ vf_module_id: '5678'
+
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/groupNameParameter/inputfiles/vIPR-ATM-Base.yaml b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/groupNameParameter/inputfiles/vIPR-ATM-Base.yaml
new file mode 100644
index 0000000000..fd70465878
--- /dev/null
+++ b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/groupNameParameter/inputfiles/vIPR-ATM-Base.yaml
@@ -0,0 +1,318 @@
+heat_template_version: 2015-04-30
+
+description: >
+ HOT template to create the vIPR-ATM firwall service template and instance.
+ This template creates the following
+ - Two service virtual networks for each side (left and right) of the vIPR-ATM firewalls
+ - Two virtual networks for high availability between the vIPR-ATM firewalls
+ - A Contrail Service Template for the vIPR-ATM service
+ - A Contrail Service Instance for the vIPR-ATM service
+
+ The firewall virtual machines connected to these created networks and managed by the
+ vIPR-ATM service instance will be created by the vIPR-ATM-Instance.yaml HOT template.
+
+ Network Policy that includes the vIPR-ATM service instance will be created by client
+ specific HOT templates or Contrail APIs.
+
+parameters:
+ vipr_atm_service_left_ip_prefix:
+ type: string
+ constraints:
+ - allowed_pattern: ^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$
+ description: A valid IPv4 dot quad IP address.
+ description: Left vIPR-ATM service network IP address prefix
+ vipr_atm_service_left_ip_prefix_len:
+ type: number
+ constraints:
+ - range: { min: 0, max: 32 }
+ description: a valid IPv4 prefix value from 0 to 32.
+ description: Left vIPR-ATM service network IP address prefix length
+
+ vipr_atm_service_right_ip_prefix:
+ type: string
+ constraints:
+ - allowed_pattern: ^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$
+ description: A valid IPv4 dot quad IP address.
+ description: Right vIPR-ATM service network IP address prefix
+ vipr_atm_service_right_ip_prefix_len:
+ type: number
+ constraints:
+ - range: { min: 0, max: 32 }
+ description: a valid IPv4 prefix value from 0 to 32.
+ description: Right vIPR-ATM service network IP address prefix length
+
+ vipr_atm_ha_one_cidr:
+ type: string
+ constraints:
+ - allowed_pattern: ^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\/(?:3[0-2]|[12]?[0-9])$
+ description: A valid IPv4 CIDR (dot quad IP address / previx value 0 to 32).
+ description: vIPR-ATM private High Availability Network One IP address CIDR
+
+ vipr_atm_ha_two_cidr:
+ type: string
+ constraints:
+ - allowed_pattern: ^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\/(?:3[0-2]|[12]?[0-9])$
+ description: A valid IPv4 CIDR (dot quad IP address / previx value 0 to 32).
+ description: vIPR-ATM private High Availability Network Two IP address CIDR
+
+ vnf_id:
+ type: string
+ description: Unique ID for this VNF instance
+ vnf_name:
+ type: string
+ description: Unique name for this VNF instance
+ vf_module_id:
+ type: string
+ description: Unique ID for the VF Module instance
+
+resources:
+ vIPR_ATM_Service_Left:
+ type: OS::ContrailV2::VirtualNetwork
+ properties:
+ name:
+ str_replace:
+ template: VNF_NAME_VIPR_ATM_SERVICE_LEFT_NETWORK
+ params:
+ VNF_NAME: { get_param: vnf_name }
+ network_ipam_refs: ["default-domain:default-project:default-network-ipam"]
+ network_ipam_refs_data:
+ [{
+ network_ipam_refs_data_ipam_subnets:
+ [{
+ network_ipam_refs_data_ipam_subnets_subnet:
+ {
+ network_ipam_refs_data_ipam_subnets_subnet_ip_prefix:
+ {
+ get_param: vipr_atm_service_left_ip_prefix
+ },
+ network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len:
+ {
+ get_param: vipr_atm_service_left_ip_prefix_len
+ },
+ },
+ }]
+ }]
+
+ vIPR_ATM_Service_Right:
+ type: OS::ContrailV2::VirtualNetwork
+ properties:
+ name:
+ str_replace:
+ template: VNF_NAME_VIPR_ATM_SERVICE_RIGHT_NETWORK
+ params:
+ VNF_NAME: { get_param: vnf_name }
+ network_ipam_refs: ["default-domain:default-project:default-network-ipam"]
+ network_ipam_refs_data:
+ [{
+ network_ipam_refs_data_ipam_subnets:
+ [{
+ network_ipam_refs_data_ipam_subnets_subnet:
+ {
+ network_ipam_refs_data_ipam_subnets_subnet_ip_prefix:
+ {
+ get_param: vipr_atm_service_right_ip_prefix
+ },
+ network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len:
+ {
+ get_param: vipr_atm_service_right_ip_prefix_len
+ },
+ },
+ }]
+ }]
+
+ vIPR_ATM_Ha_One:
+ type: OS::Neutron::Net
+ properties:
+ name:
+ str_replace:
+ template: VNF_NAME_VIPR_ATM_HA_ONE_NETWORK
+ params:
+ VNF_NAME: { get_param: vnf_name }
+
+ vIPR_ATM_Ha_One_Subnet:
+ type: OS::Neutron::Subnet
+ depends_on:
+ - vIPR_ATM_Ha_One
+ properties:
+ name:
+ str_replace:
+ template: NET_NAME_SUBNET
+ params:
+ NET_NAME: { get_attr: [ vIPR_ATM_Ha_One, name ] }
+ network: { get_resource: vIPR_ATM_Ha_One }
+ cidr: { get_param: vipr_atm_ha_one_cidr }
+ enable_dhcp: False
+ gateway_ip: null
+
+ vIPR_ATM_Ha_Two:
+ type: OS::Neutron::Net
+ properties:
+ name:
+ str_replace:
+ template: VNF_NAME_VIPR_ATM_HA_TWO_NETWORK
+ params:
+ VNF_NAME: { get_param: vnf_name }
+
+ vIPR_ATM_Ha_Two_Subnet:
+ type: OS::Neutron::Subnet
+ depends_on:
+ - vIPR_ATM_Ha_Two
+ properties:
+ name:
+ str_replace:
+ template: NET_NAME_SUBNET
+ params:
+ NET_NAME: { get_attr: [ vIPR_ATM_Ha_Two, name ] }
+ network: { get_resource: vIPR_ATM_Ha_Two }
+ cidr: { get_param: vipr_atm_ha_two_cidr }
+ enable_dhcp: False
+ gateway_ip: null
+
+ vIPR_ATM_Service_Template:
+ type: OS::ContrailV2::ServiceTemplate
+ properties:
+ name:
+ str_replace:
+ template: VNF_NAME_VIPR_ATM_SERVICE_TEMPLATE
+ params:
+ VNF_NAME: { get_param: vnf_name }
+ service_template_properties:
+ {
+ service_template_properties_version: 2,
+ service_template_properties_service_mode: transparent,
+ service_template_properties_service_type: firewall,
+ service_template_properties_service_virtualization_type: virtual-machine,
+ service_template_properties_interface_type:
+ [
+ {
+ service_template_properties_interface_type_service_interface_type: Left,
+ service_template_properties_interface_type_shared_ip: True,
+ },
+ {
+ service_template_properties_interface_type_service_interface_type: Right,
+ service_template_properties_interface_type_shared_ip: True,
+ }
+ ],
+ }
+ domain: default-domain
+
+ vIPR_ATM_Service_Instance:
+ type: OS::ContrailV2::ServiceInstance
+ depends_on:
+ - vIPR_ATM_Service_Left
+ - vIPR_ATM_Service_Right
+ - vIPR_ATM_Service_Template
+ properties:
+ name:
+ str_replace:
+ template: VNF_NAME_VIPR_ATM_SERVICE_INSTANCE
+ params:
+ VNF_NAME: { get_param: vnf_name }
+ service_template_refs: [{ get_resource: vIPR_ATM_Service_Template }]
+ service_instance_properties:
+ {
+ service_instance_properties_ha_mode: active-active,
+ service_instance_properties_left_virtual_network:
+ {
+ list_join: [':', { get_attr: [ vIPR_ATM_Service_Left, fq_name ] } ]
+ },
+ service_instance_properties_right_virtual_network:
+ {
+ list_join: [':', { get_attr: [ vIPR_ATM_Service_Right, fq_name ] } ]
+ },
+ }
+
+ # Management (OAM) Port Security Group to allow ingress SSH
+ vIPR_ATM_OAM_SG:
+ type: OS::Neutron::SecurityGroup
+ properties:
+ name:
+ str_replace:
+ template: VNF_NAME_VIPR_ATM_OAM_SG
+ params:
+ VNF_NAME: { get_param: vnf_name }
+ rules:
+ - remote_ip_prefix: 0.0.0.0/0
+ protocol: tcp
+ port_range_min: 22
+ port_range_max: 22
+ - remote_ip_prefix: 0.0.0.0/0
+ protocol: tcp
+ port_range_min: 443
+ port_range_max: 443
+ - remote_ip_prefix: 0.0.0.0/0
+ protocol: tcp
+ port_range_min: 3978
+ port_range_max: 3978
+ - remote_ip_prefix: 0.0.0.0/0
+ protocol: icmp
+
+ vIPR_ATM_HA_ONE_SG:
+ type: OS::Neutron::SecurityGroup
+ properties:
+ name:
+ str_replace:
+ template: VNF_NAME_VIPR_ATM_HA_ONE_SG
+ params:
+ VNF_NAME: { get_param: vnf_name }
+ rules:
+ - remote_mode: remote_group_id
+
+ vIPR_ATM_HA_TWO_SG:
+ type: OS::Neutron::SecurityGroup
+ properties:
+ name:
+ str_replace:
+ template: VNF_NAME_VIPR_ATM_HA_TWO_SG
+ params:
+ VNF_NAME: { get_param: vnf_name }
+ rules:
+ - remote_mode: remote_group_id
+
+ vIPR_ATM_Server_Group:
+ type: OS::Nova::ServerGroup
+ properties:
+ name:
+ str_replace:
+ template: VNF_NAME_VIPR_ATM_SERVER_GROUP
+ params:
+ VNF_NAME: { get_param: vnf_name }
+ policies:
+ - anti-affinity
+
+outputs:
+ vipr_atm_contrail_service_instance_fqdn:
+ description: The FQDN for the Contrail Service Instance that is needed to create tenant OAM network policy to service change through the vIPR-ATM firewall.
+ value: { list_join: [':', { get_attr: [ vIPR_ATM_Service_Instance, fq_name ] } ] }
+
+ vipr_atm_service_left_fqdn:
+ description: The FQDN for the vIPR-ATM Service Left network.
+ value: { list_join: [':', { get_attr: [ vIPR_ATM_Service_Left, fq_name ] } ] }
+
+ vipr_atm_service_right_fqdn:
+ description: The FQDN for the vIPR-ATM Service Right network.
+ value: { list_join: [':', { get_attr: [ vIPR_ATM_Service_Right, fq_name ] } ] }
+
+ vipr_atm_ha_one_id:
+ description: The UUID for the vIPR-ATM HA One network.
+ value: { get_resource: vIPR_ATM_Ha_One }
+
+ vipr_atm_ha_two_id:
+ description: The UUID for the vIPR-ATM HA Two network.
+ value: { get_resource: vIPR_ATM_Ha_Two }
+
+ vipr_atm_oam_net_security_groups:
+ description: The list of OpenStack Security Groups to appliy to the vIPR-ATM-Instance\'s OAM network.
+ value: [ { get_resource: vIPR_ATM_OAM_SG } ]
+
+ vipr_atm_ha_one_security_groups:
+ description: The list of OpenStack Security Groups to appliy to the vIPR-ATM-Instance\'s HA One network.
+ value: [ { get_resource: vIPR_ATM_HA_ONE_SG } ]
+
+ vipr_atm_ha_two_security_groups:
+ description: The list of OpenStack Security Groups to appliy to the vIPR-ATM-Instance\'s HA Two network.
+ value: [ { get_resource: vIPR_ATM_HA_TWO_SG } ]
+
+ vipr_atm_server_group:
+ description: The UUID for the vIPR-ATM OpenStack Server Group
+ value: { get_resource: vIPR_ATM_Server_Group }
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/groupNameParameter/inputfiles/vIPR-ATM-Instance.env b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/groupNameParameter/inputfiles/vIPR-ATM-Instance.env
new file mode 100644
index 0000000000..77e8b8630a
--- /dev/null
+++ b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/groupNameParameter/inputfiles/vIPR-ATM-Instance.env
@@ -0,0 +1,28 @@
+parameters:
+ oam_net_id: 1ac9d738-f545-413a-a9a2-b44309edc511
+ vipr_atm_oam_net_security_groups: [ "c2369210-d154-4e4a-984d-047674beb5da" ]
+
+ vipr_atm_contrail_service_instance_fqdn: default-domain:vIPR-ATM:vIPR-ATM-service-instance
+
+ vipr_atm_service_left_fqdn: default-domain:vIPR-ATM:vIPR-ATM-service-left
+ vipr_atm_service_right_fqdn: default-domain:vIPR-ATM:vIPR-ATM-service-right
+
+ vipr_atm_ha_one_id: 4abaafc8-b8af-40b9-b0d0-32bd91f958ee
+ vipr_atm_ha_one_ip_0: 192.168.35.1
+ vipr_atm_ha_one_security_groups: [ "cbf8049e-69e8-48c3-a06f-255634391403" ]
+
+ vipr_atm_ha_two_id: b75e27cf-452f-48ef-b107-8777e645c22d
+ vipr_atm_ha_two_ip_0: 192.168.35.9
+ vipr_atm_ha_two_security_groups: [ "29e29a4a-b45d-42c2-ac14-b12a70036ae6" ]
+
+ vipr_atm_server_group: 885dbf7f-fcb2-42d2-a694-a5930ce35b71
+
+ vipr_atm_name_0: zrcs1cctvpr001
+ vipr_atm_image_name: vipr-atm-pan7.1
+ vipr_atm_flavor_name: m1.vipr-atm-pan
+ vipr_atm_valet_eg_0: CORE_INFRASTRUCTURE_VNFs
+ availability_zone_0: 'nova'
+
+ vnf_id: '1234'
+ vnf_name: 'RD3TX100vfw'
+ vf_module_id: '5678'
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/groupNameParameter/inputfiles/vIPR-ATM-Instance.yaml b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/groupNameParameter/inputfiles/vIPR-ATM-Instance.yaml
new file mode 100644
index 0000000000..ea3b8ab659
--- /dev/null
+++ b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/groupNameParameter/inputfiles/vIPR-ATM-Instance.yaml
@@ -0,0 +1,299 @@
+heat_template_version: 2015-04-30
+
+description: >
+ HOT template to create a vIPR-ATM firwall service instance.
+ This template creates the following
+ - Contrail Port Tuple for this firwall service instance
+ - Virtual machine interfaces and IP addresses attached to the two
+ service virtual networks. These virtual machine interfaces will be used
+ by the vIPR firewall service instance
+ - Neutron ports for OAM, HA0, and HA1 networks
+ - OS::Nova::Server with the created virtual machine interface and ports. This
+ is the firewall service instance virtual machine.
+
+parameters:
+ oam_net_id:
+ type: string
+ constraints:
+ - custom_constraint: neutron.network
+ description: This network must currently exist.
+ description: Neutron UUID for the managemnet network name of the vIPR-ATM firewall
+ vipr_atm_oam_net_security_groups:
+ type: comma_delimited_list
+ description: List of the security group to apply to the vIPR-ATM firewall management port
+
+ vipr_atm_service_left_fqdn:
+ type: string
+ constraints:
+ - allowed_pattern: ^(?:[^:]{1,64}:){2}(?:[^:]{1,255})$
+ description: |
+ A valid Contrail FQDN that contains three parts seperated by ':'.
+ The first two part are 1 to 64 characters long and must not contain ':'.
+ The third part is 1 to 255 characters long and must not contain ':'.
+ description: FQDN of the Left service network for the vIPR-ATM firewall
+
+ vipr_atm_service_right_fqdn:
+ type: string
+ constraints:
+ - allowed_pattern: ^(?:[^:]{1,64}:){2}(?:[^:]{1,255})$
+ description: |
+ A valid Contrail FQDN that contains three parts seperated by ':'.
+ The first two part are 1 to 64 characters long and must not contain ':'.
+ The third part is 1 to 255 characters long and must not contain ':'.
+ description: FQDN of the Right service network for the vIPR-ATM firewall
+
+ vipr_atm_ha_one_id:
+ type: string
+ constraints:
+ - custom_constraint: neutron.network
+ description: This network must currently exist.
+ description: Neutron UUID of the first high availability network for the vIPR-ATM firewall
+ vipr_atm_ha_one_ip_0:
+ type: string
+ constraints:
+ - allowed_pattern: ^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$
+ description: A valid IPv4 dot quad IP address.
+ description: Fixed IP to apply to the vIPR-ATM firewall ha0 port
+ vipr_atm_ha_one_security_groups:
+ type: comma_delimited_list
+ description: List of the security group to apply to the vIPR-ATM firewall ha0 port
+
+ vipr_atm_ha_two_id:
+ type: string
+ constraints:
+ - custom_constraint: neutron.network
+ description: This network must currently exist.
+ description: Neutron UUID of the second high availability network for the vIPR-ATM firewal
+ vipr_atm_ha_two_ip_0:
+ type: string
+ constraints:
+ - allowed_pattern: ^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$
+ description: A valid IPv4 dot quad IP address.
+ description: Fixed IP to apply to the vIPR-ATM firewall ha1 port
+ vipr_atm_ha_two_security_groups:
+ type: comma_delimited_list
+ description: List of the security group to apply to the vIPR-ATM firewall ha1 port
+
+ vipr_atm_contrail_service_instance_fqdn:
+ type: string
+ constraints:
+ - allowed_pattern: ^(?:[^:]{1,64}:){2}(?:[^:]{1,255})$
+ description: |
+ A valid Contrail FQDN that contains three parts seperated by ':'.
+ The first two part are 1 to 64 characters long and must not contain ':'.
+ The third part is 1 to 255 characters long and must not contain ':'.
+ description: FQDN of the vIPR-ATM firewall Contrail service instance for the port tuple
+
+ vipr_atm_name_0:
+ type: string
+ constraints:
+ - length: { min: 1, max: 255 }
+ description: A string with length of at least 1 and less than 255.
+ description: Name of the vIPR-ATM firewall virtual machine
+ vipr_atm_image_name:
+ type: string
+ constraints:
+ - custom_constraint: glance.image
+ description: This image must currently exist.
+ description: Image name of the vIPR-ATM firewall virtual machine
+ vipr_atm_flavor_name:
+ type: string
+ constraints:
+ - custom_constraint: nova.flavor
+ description: This flavor must currently exist.
+ description: Flavor for the vIPR-ATM firewall virtual machine
+ vipr_atm_server_group:
+ type: string
+ constraints:
+ - length: { min: 1, max: 255 }
+ description: A string with length of at least 1 and less than 255.
+ description: Server Group with anti-affinity policy for the vIPR-ATM firewall virtual machine
+ vipr_atm_valet_eg_0:
+ type: string
+ constraints:
+ - length: { min: 1, max: 255 }
+ description: A string with length of at least 1 and less than 255.
+ description: The Valet 1.0 Exclusivity Group for the vIPR-ATM firewall virtual machine
+ availability_zone_0:
+ type: string
+ constraints:
+ - length: { min: 1, max: 255 }
+ description: A string with length of at least 1 and less than 255.
+ description: Availability Zone for the vIPR-ATM firewall virtual machine
+
+ vnf_id:
+ type: string
+ constraints:
+ - length: { min: 1, max: 255 }
+ description: A string with length of at least 1 and less than 255.
+ description: Unique ID for this VF instance
+ vnf_name:
+ type: string
+ constraints:
+ - length: { min: 1, max: 255 }
+ description: A string with length of at least 1 and less than 255.
+ description: Unique Name for this VF instance
+ vf_module_id:
+ type: string
+ constraints:
+ - length: { min: 1, max: 255 }
+ description: A string with length of at least 1 and less than 255.
+ description: Unique ID for the VF Module instance
+
+resources:
+ # Create the Port Tuple
+ vIPR_ATM_RPT:
+ type: OS::ContrailV2::PortTuple
+ properties:
+ name:
+ str_replace:
+ template: VM_NAME_PORT_TUPLE
+ params:
+ VM_NAME: { get_param: vipr_atm_name_0 }
+ service_instance: { get_param: vipr_atm_contrail_service_instance_fqdn }
+
+ # Left Port (Virtual Machine Interface)
+ vIPR_ATM_Left_RVMI:
+ type: OS::ContrailV2::VirtualMachineInterface
+ depends_on: [ vIPR_ATM_RPT ]
+ properties:
+ name:
+ str_replace:
+ template: VM_NAME_PORT_3
+ params:
+ VM_NAME: { get_param: vipr_atm_name_0 }
+ virtual_machine_interface_properties:
+ {
+ virtual_machine_interface_properties_service_interface_type: 'left'
+ }
+ port_tuple_refs: [{ get_resource: vIPR_ATM_RPT }]
+ virtual_network_refs: [{ get_param: vipr_atm_service_left_fqdn }]
+
+ # Right Port (Virtual Machine Interface)
+ vIPR_ATM_Right_RVMI:
+ type: OS::ContrailV2::VirtualMachineInterface
+ depends_on: [ vIPR_ATM_RPT ]
+ properties:
+ name:
+ str_replace:
+ template: VM_NAME_PORT_4
+ params:
+ VM_NAME: { get_param: vipr_atm_name_0 }
+ virtual_machine_interface_properties:
+ {
+ virtual_machine_interface_properties_service_interface_type: 'right'
+ }
+ port_tuple_refs: [{ get_resource: vIPR_ATM_RPT }]
+ virtual_network_refs: [{ get_param: vipr_atm_service_right_fqdn }]
+
+ # Left Instance IP
+ vIPR_ATM_Left_RII:
+ type: OS::ContrailV2::InstanceIp
+ depends_on: [ vIPR_ATM_Left_RVMI ]
+ properties:
+ name:
+ str_replace:
+ template: VM_NAME_INSTANCE_IP_LEFT
+ params:
+ VM_NAME: { get_param: vipr_atm_name_0 }
+ virtual_machine_interface_refs: [{ get_resource: vIPR_ATM_Left_RVMI }]
+ virtual_network_refs: [{ get_param: vipr_atm_service_left_fqdn }]
+
+ # Right Instance IP
+ vIPR_ATM_Right_RII:
+ type: OS::ContrailV2::InstanceIp
+ depends_on: [ vIPR_ATM_Right_RVMI ]
+ properties:
+ name:
+ str_replace:
+ template: VM_NAME_INSTANCE_IP_RIGHT
+ params:
+ VM_NAME: { get_param: vipr_atm_name_0 }
+ virtual_machine_interface_refs: [{ get_resource: vIPR_ATM_Right_RVMI }]
+ virtual_network_refs: [{ get_param: vipr_atm_service_right_fqdn }]
+
+ # OAM Network Port (not part of Port Tuple)
+ vIPR_ATM_OAM_0_Port:
+ type: OS::Neutron::Port
+ properties:
+ name:
+ str_replace:
+ template: VM_NAME_PORT_0
+ params:
+ VM_NAME: { get_param: vipr_atm_name_0 }
+ network: { get_param: oam_net_id }
+ security_groups: { get_param: vipr_atm_oam_net_security_groups }
+
+ # HA One Port (not part of Port Tuple)
+ vIPR_ATM_Ha_One_0_Port:
+ type: OS::Neutron::Port
+ properties:
+ name:
+ str_replace:
+ template: VM_NAME_PORT_1
+ params:
+ VM_NAME: { get_param: vipr_atm_name_0 }
+ network: { get_param: vipr_atm_ha_one_id }
+ fixed_ips: [ { "ip_address": { get_param: vipr_atm_ha_one_ip_0 } } ]
+ security_groups: { get_param: vipr_atm_ha_one_security_groups }
+
+ # HA Two Port (not part of Port Tuple)
+ vIPR_ATM_Ha_Two_0_Port:
+ type: OS::Neutron::Port
+ properties:
+ name:
+ str_replace:
+ template: VM_NAME_PORT_2
+ params:
+ VM_NAME: { get_param: vipr_atm_name_0 }
+ network: { get_param: vipr_atm_ha_two_id }
+ fixed_ips: [ { "ip_address": { get_param: vipr_atm_ha_two_ip_0 } } ]
+ security_groups: { get_param: vipr_atm_ha_two_security_groups }
+
+ # Valet Exclusivity Group
+ vIPR_ATM_Valet_EG_0:
+ type: ATT::Valet::GroupAssignment
+ properties:
+ group_name: { get_param: vipr_atm_valet_eg_0 }
+ group_type: exclusivity
+ level: host
+ resources:
+ - { get_resource: vIPR_ATM_Firewall }
+
+ # Create the VM and bind the five ports to it
+ # vIPR_ATM_Firewall_Cloud_Config:
+ # type: OS::Heat::CloudConfig
+ # properties:
+ # cloud_config:
+ # password: ubuntu
+ # chpasswd: { expire: False }
+ # ssh_pwauth: True
+ # manage_etc_hosts: true
+
+ vIPR_ATM_Firewall:
+ type: OS::Nova::Server
+ depends_on:
+ - vIPR_ATM_Left_RII
+ - vIPR_ATM_Right_RII
+ - vIPR_ATM_OAM_0_Port
+ - vIPR_ATM_Ha_One_0_Port
+ - vIPR_ATM_Ha_Two_0_Port
+ properties:
+ name: { get_param: vipr_atm_name_0 }
+ image: { get_param: vipr_atm_image_name }
+ flavor: { get_param: vipr_atm_flavor_name }
+ availability_zone: { get_param: availability_zone_0 }
+ scheduler_hints:
+ group: { get_param: vipr_atm_server_group }
+ networks:
+ - port: { get_resource: vIPR_ATM_OAM_0_Port }
+ - port: { get_resource: vIPR_ATM_Ha_One_0_Port }
+ - port: { get_resource: vIPR_ATM_Ha_Two_0_Port }
+ - port: { get_resource: vIPR_ATM_Left_RVMI }
+ - port: { get_resource: vIPR_ATM_Right_RVMI }
+ metadata:
+ vnf_id: { get_param: vnf_id }
+ vnf_name: { get_param: vnf_name }
+ vf_module_id: { get_param: vf_module_id }
+# user_data_format: RAW
+# user_data: { get_resource: vIPR_ATM_Firewall_Cloud_Config }
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/invalidGroupAssignment/expectedoutputfiles/MainServiceTemplate.yaml b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/invalidGroupAssignment/expectedoutputfiles/MainServiceTemplate.yaml
new file mode 100644
index 0000000000..5609b76193
--- /dev/null
+++ b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/invalidGroupAssignment/expectedoutputfiles/MainServiceTemplate.yaml
@@ -0,0 +1,292 @@
+tosca_definitions_version: tosca_simple_yaml_1_0_0
+metadata:
+ template_name: Main
+imports:
+- openecomp_heat_index:
+ file: openecomp-heat/_index.yml
+node_types:
+ org.openecomp.resource.vfc.nodes.heat.myNovaServer2:
+ derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
+ org.openecomp.resource.vfc.nodes.heat.myNovaServer1:
+ derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
+ org.openecomp.resource.vfc.nodes.heat.myNovaServer3:
+ derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
+topology_template:
+ inputs:
+ flavor:
+ hidden: false
+ immutable: false
+ type: string
+ p1:
+ hidden: false
+ immutable: false
+ type: string
+ description: p1
+ image:
+ hidden: false
+ immutable: false
+ type: string
+ p2:
+ hidden: false
+ immutable: false
+ type: string
+ description: p2
+ names:
+ hidden: false
+ immutable: false
+ type: string
+ myIPs:
+ hidden: false
+ immutable: false
+ type: string
+ description: ip1
+ availability_zone_1:
+ hidden: false
+ immutable: false
+ type: string
+ description: myAvailability_zone_1
+ net:
+ hidden: false
+ immutable: false
+ type: string
+ description: UID of network
+ node_templates:
+ myPort6:
+ type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
+ properties:
+ replacement_policy: AUTO
+ ip_requirements:
+ - ip_version: 4
+ ip_count_required:
+ is_required: true
+ floating_ip_count_required:
+ is_required: false
+ security_groups:
+ - get_input: p2
+ fixed_ips:
+ - ip_address:
+ get_input:
+ - myIPs
+ - 0
+ mac_requirements:
+ mac_count_required:
+ is_required: false
+ network:
+ get_input: net
+ requirements:
+ - binding:
+ capability: tosca.capabilities.network.Bindable
+ node: myNovaServer3
+ relationship: tosca.relationships.network.BindsTo
+ myPort5:
+ type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
+ properties:
+ replacement_policy: AUTO
+ ip_requirements:
+ - ip_version: 4
+ ip_count_required:
+ is_required: true
+ floating_ip_count_required:
+ is_required: false
+ security_groups:
+ - get_input: p1
+ fixed_ips:
+ - ip_address:
+ get_input:
+ - myIPs
+ - 0
+ mac_requirements:
+ mac_count_required:
+ is_required: false
+ network:
+ get_input: net
+ requirements:
+ - binding:
+ capability: tosca.capabilities.network.Bindable
+ node: myNovaServer3
+ relationship: tosca.relationships.network.BindsTo
+ myNovaServer1:
+ type: org.openecomp.resource.vfc.nodes.heat.myNovaServer1
+ properties:
+ flavor:
+ get_input: flavor
+ availability_zone:
+ get_input: availability_zone_1
+ image:
+ get_input: image
+ name:
+ get_input:
+ - names
+ - 0
+ myNovaServer2:
+ type: org.openecomp.resource.vfc.nodes.heat.myNovaServer2
+ properties:
+ flavor:
+ get_input: flavor
+ availability_zone:
+ get_input: availability_zone_1
+ image:
+ get_input: image
+ name:
+ get_input:
+ - names
+ - 0
+ myPort2:
+ type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
+ properties:
+ replacement_policy: AUTO
+ ip_requirements:
+ - ip_version: 4
+ ip_count_required:
+ is_required: true
+ floating_ip_count_required:
+ is_required: false
+ security_groups:
+ - get_input: p2
+ fixed_ips:
+ - ip_address:
+ get_input:
+ - myIPs
+ - 0
+ mac_requirements:
+ mac_count_required:
+ is_required: false
+ network:
+ get_input: net
+ requirements:
+ - binding:
+ capability: tosca.capabilities.network.Bindable
+ node: myNovaServer1
+ relationship: tosca.relationships.network.BindsTo
+ myNovaServer3:
+ type: org.openecomp.resource.vfc.nodes.heat.myNovaServer3
+ properties:
+ flavor:
+ get_input: flavor
+ availability_zone:
+ get_input: availability_zone_1
+ image:
+ get_input: image
+ name:
+ get_input:
+ - names
+ - 0
+ myPort1:
+ type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
+ properties:
+ replacement_policy: AUTO
+ ip_requirements:
+ - ip_version: 4
+ ip_count_required:
+ is_required: true
+ floating_ip_count_required:
+ is_required: false
+ security_groups:
+ - get_input: p1
+ fixed_ips:
+ - ip_address:
+ get_input:
+ - myIPs
+ - 0
+ mac_requirements:
+ mac_count_required:
+ is_required: false
+ network:
+ get_input: net
+ requirements:
+ - binding:
+ capability: tosca.capabilities.network.Bindable
+ node: myNovaServer1
+ relationship: tosca.relationships.network.BindsTo
+ myPort4:
+ type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
+ properties:
+ replacement_policy: AUTO
+ ip_requirements:
+ - ip_version: 4
+ ip_count_required:
+ is_required: true
+ floating_ip_count_required:
+ is_required: false
+ security_groups:
+ - get_input: p2
+ fixed_ips:
+ - ip_address:
+ get_input:
+ - myIPs
+ - 0
+ mac_requirements:
+ mac_count_required:
+ is_required: false
+ network:
+ get_input: net
+ requirements:
+ - binding:
+ capability: tosca.capabilities.network.Bindable
+ node: myNovaServer2
+ relationship: tosca.relationships.network.BindsTo
+ myPort3:
+ type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
+ properties:
+ replacement_policy: AUTO
+ ip_requirements:
+ - ip_version: 4
+ ip_count_required:
+ is_required: true
+ floating_ip_count_required:
+ is_required: false
+ security_groups:
+ - get_input: p1
+ fixed_ips:
+ - ip_address:
+ get_input:
+ - myIPs
+ - 0
+ mac_requirements:
+ mac_count_required:
+ is_required: false
+ network:
+ get_input: net
+ requirements:
+ - binding:
+ capability: tosca.capabilities.network.Bindable
+ node: myNovaServer2
+ relationship: tosca.relationships.network.BindsTo
+ groups:
+ main_group:
+ type: org.openecomp.groups.heat.HeatStack
+ properties:
+ heat_file: ../Artifacts/main.yml
+ description: cmaui server template for vMMSC
+ members:
+ - myPort6
+ - myPort5
+ - myNovaServer1
+ - myNovaServer2
+ - myPort2
+ - myNovaServer3
+ - myPort1
+ - myPort4
+ - myPort3
+ SVCgroup1_simpleGroup1_group:
+ type: tosca.groups.Root
+ members:
+ - myNovaServer1
+ - myNovaServer2
+ SVCgroup3_complexTwoGroups_group:
+ type: tosca.groups.Root
+ members:
+ - SVCgroup1_simpleGroup1_group
+ policies:
+ SVCgroup1_policy:
+ type: org.openecomp.policies.placement.valet.Affinity
+ properties:
+ level: host
+ targets:
+ - SVCgroup1_simpleGroup1_group
+ SVCgroup3_policy:
+ type: org.openecomp.policies.placement.valet.Affinity
+ properties:
+ level: host
+ targets:
+ - SVCgroup3_complexTwoGroups_group \ No newline at end of file
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/invalidGroupAssignment/inputfiles/MANIFEST.json b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/invalidGroupAssignment/inputfiles/MANIFEST.json
new file mode 100644
index 0000000000..539e26b7ab
--- /dev/null
+++ b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/invalidGroupAssignment/inputfiles/MANIFEST.json
@@ -0,0 +1,12 @@
+{
+ "name": "vMME_Small",
+ "description": "HOT template to create 2 cinder volume attachment",
+ "version": "2013-05-23",
+ "data": [
+ {
+ "file": "main.yml",
+ "type": "HEAT",
+ "isBase": "true"
+ }
+ ]
+}
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/invalidGroupAssignment/inputfiles/main.yml b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/invalidGroupAssignment/inputfiles/main.yml
new file mode 100644
index 0000000000..7dc385e7c8
--- /dev/null
+++ b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/invalidGroupAssignment/inputfiles/main.yml
@@ -0,0 +1,132 @@
+heat_template_version: 2013-05-23
+
+description: cmaui server template for vMMSC
+
+parameters:
+ net:
+ type: string
+ description: UID of network
+ p1:
+ type: string
+ description: p1
+ p2:
+ type: string
+ description: p2
+ myIPs:
+ type: string
+ description: ip1
+ availability_zone_1:
+ type: string
+ description: myAvailability_zone_1
+ names:
+ type: string
+ image:
+ type: string
+ flavor:
+ type: string
+resources:
+
+ myNovaServer1:
+ type: OS::Nova::Server
+ properties:
+ name: { get_param: [names, 0]}
+ image: { get_param: image }
+ availability_zone: { get_param: availability_zone_1 }
+ flavor: { get_param: flavor }
+ networks:
+ - port: { get_resource: myPort1 }
+ - port: { get_resource: myPort2 }
+
+
+ myNovaServer2:
+ type: OS::Nova::Server
+ properties:
+ name: { get_param: [names, 0]}
+ image: { get_param: image }
+ availability_zone: { get_param: availability_zone_1 }
+ flavor: { get_param: flavor }
+ networks:
+ - port: { get_resource: myPort3 }
+ - port: { get_resource: myPort4 }
+
+ myNovaServer3:
+ type: OS::Nova::Server
+ properties:
+ name: { get_param: [names, 0]}
+ image: { get_param: image }
+ availability_zone: { get_param: availability_zone_1 }
+ flavor: { get_param: flavor }
+ networks:
+ - port: { get_resource: myPort5 }
+ - port: { get_resource: myPort6 }
+ myPort1:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: net }
+ fixed_ips: [{"ip_address": {get_param: [myIPs, 0]}}]
+ security_groups: [{get_param: p1}]
+ replacement_policy: AUTO
+
+ myPort2:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: net }
+ fixed_ips: [{"ip_address": {get_param: [myIPs, 0]}}]
+ security_groups: [{get_param: p2}]
+ replacement_policy: AUTO
+
+ myPort3:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: net }
+ fixed_ips: [{"ip_address": {get_param: [myIPs, 0]}}]
+ security_groups: [{get_param: p1}]
+ replacement_policy: AUTO
+
+ myPort4:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: net }
+ fixed_ips: [{"ip_address": {get_param: [myIPs, 0]}}]
+ security_groups: [{get_param: p2}]
+ replacement_policy: AUTO
+ myPort5:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: net }
+ fixed_ips: [{"ip_address": {get_param: [myIPs, 0]}}]
+ security_groups: [{get_param: p1}]
+ replacement_policy: AUTO
+
+ myPort6:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: net }
+ fixed_ips: [{"ip_address": {get_param: [myIPs, 0]}}]
+ security_groups: [{get_param: p2}]
+ replacement_policy: AUTO
+ SVCgroup1:
+ type: ATT::Valet::GroupAssignment
+ properties:
+ group_type: affinity
+ group_name: simpleGroup1
+ level: host
+ resources:
+ - { get_resource: myNovaServer1}
+ - { get_resource: myNovaServer2}
+ SVCgroup2:
+ type: ATT::Valet::GroupAssignment
+ properties:
+ group_type: invalid
+ level: host
+ resources:
+ - { get_resource: myNovaServer3}
+ SVCgroup3:
+ type: ATT::Valet::GroupAssignment
+ properties:
+ group_type: affinity
+ group_name: complexTwoGroups
+ level: host
+ resources:
+ - { get_resource: SVCgroup1}
+ - { get_resource: SVCgroup2} \ No newline at end of file
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/notconnected/expectedoutputfiles/MainServiceTemplate.yaml b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/notconnected/expectedoutputfiles/MainServiceTemplate.yaml
new file mode 100644
index 0000000000..d0f744c3a5
--- /dev/null
+++ b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/notconnected/expectedoutputfiles/MainServiceTemplate.yaml
@@ -0,0 +1,209 @@
+tosca_definitions_version: tosca_simple_yaml_1_0_0
+metadata:
+ template_name: Main
+imports:
+- openecomp_heat_index:
+ file: openecomp-heat/_index.yml
+node_types:
+ org.openecomp.resource.vfc.nodes.heat.myNovaServer2:
+ derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
+ org.openecomp.resource.vfc.nodes.heat.myNovaServer1:
+ derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
+topology_template:
+ inputs:
+ flavor:
+ hidden: false
+ immutable: false
+ type: string
+ p1:
+ hidden: false
+ immutable: false
+ type: string
+ description: p1
+ image:
+ hidden: false
+ immutable: false
+ type: string
+ p2:
+ hidden: false
+ immutable: false
+ type: string
+ description: p2
+ names:
+ hidden: false
+ immutable: false
+ type: string
+ myIPs:
+ hidden: false
+ immutable: false
+ type: string
+ description: ip1
+ availability_zone_1:
+ hidden: false
+ immutable: false
+ type: string
+ description: myAvailability_zone_1
+ net:
+ hidden: false
+ immutable: false
+ type: string
+ description: UID of network
+ node_templates:
+ myNovaServer1:
+ type: org.openecomp.resource.vfc.nodes.heat.myNovaServer1
+ properties:
+ flavor:
+ get_input: flavor
+ availability_zone:
+ get_input: availability_zone_1
+ image:
+ get_input: image
+ name:
+ get_input:
+ - names
+ - 0
+ myNovaServer2:
+ type: org.openecomp.resource.vfc.nodes.heat.myNovaServer2
+ properties:
+ flavor:
+ get_input: flavor
+ availability_zone:
+ get_input: availability_zone_1
+ image:
+ get_input: image
+ name:
+ get_input:
+ - names
+ - 0
+ myPort2:
+ type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
+ properties:
+ replacement_policy: AUTO
+ ip_requirements:
+ - ip_version: 4
+ ip_count_required:
+ is_required: true
+ floating_ip_count_required:
+ is_required: false
+ security_groups:
+ - get_input: p2
+ fixed_ips:
+ - ip_address:
+ get_input:
+ - myIPs
+ - 0
+ mac_requirements:
+ mac_count_required:
+ is_required: false
+ network:
+ get_input: net
+ requirements:
+ - binding:
+ capability: tosca.capabilities.network.Bindable
+ node: myNovaServer1
+ relationship: tosca.relationships.network.BindsTo
+ myPort1:
+ type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
+ properties:
+ replacement_policy: AUTO
+ ip_requirements:
+ - ip_version: 4
+ ip_count_required:
+ is_required: true
+ floating_ip_count_required:
+ is_required: false
+ security_groups:
+ - get_input: p1
+ fixed_ips:
+ - ip_address:
+ get_input:
+ - myIPs
+ - 0
+ mac_requirements:
+ mac_count_required:
+ is_required: false
+ network:
+ get_input: net
+ requirements:
+ - binding:
+ capability: tosca.capabilities.network.Bindable
+ node: myNovaServer1
+ relationship: tosca.relationships.network.BindsTo
+ myPort4:
+ type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
+ properties:
+ replacement_policy: AUTO
+ ip_requirements:
+ - ip_version: 4
+ ip_count_required:
+ is_required: true
+ floating_ip_count_required:
+ is_required: false
+ security_groups:
+ - get_input: p2
+ fixed_ips:
+ - ip_address:
+ get_input:
+ - myIPs
+ - 0
+ mac_requirements:
+ mac_count_required:
+ is_required: false
+ network:
+ get_input: net
+ requirements:
+ - binding:
+ capability: tosca.capabilities.network.Bindable
+ node: myNovaServer2
+ relationship: tosca.relationships.network.BindsTo
+ myPort3:
+ type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
+ properties:
+ replacement_policy: AUTO
+ ip_requirements:
+ - ip_version: 4
+ ip_count_required:
+ is_required: true
+ floating_ip_count_required:
+ is_required: false
+ security_groups:
+ - get_input: p1
+ fixed_ips:
+ - ip_address:
+ get_input:
+ - myIPs
+ - 0
+ mac_requirements:
+ mac_count_required:
+ is_required: false
+ network:
+ get_input: net
+ requirements:
+ - binding:
+ capability: tosca.capabilities.network.Bindable
+ node: myNovaServer2
+ relationship: tosca.relationships.network.BindsTo
+ groups:
+ main_group:
+ type: org.openecomp.groups.heat.HeatStack
+ properties:
+ heat_file: ../Artifacts/main.yml
+ description: cmaui server template for vMMSC
+ members:
+ - myNovaServer1
+ - myNovaServer2
+ - myPort2
+ - myPort1
+ - myPort4
+ - myPort3
+ SVCgroup1_simpleGroup_group:
+ type: tosca.groups.Root
+ members: [
+ ]
+ policies:
+ SVCgroup1_policy:
+ type: org.openecomp.policies.placement.valet.Diversity
+ properties:
+ level: host
+ targets:
+ - SVCgroup1_simpleGroup_group \ No newline at end of file
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/notconnected/inputfiles/MANIFEST.json b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/notconnected/inputfiles/MANIFEST.json
new file mode 100644
index 0000000000..539e26b7ab
--- /dev/null
+++ b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/notconnected/inputfiles/MANIFEST.json
@@ -0,0 +1,12 @@
+{
+ "name": "vMME_Small",
+ "description": "HOT template to create 2 cinder volume attachment",
+ "version": "2013-05-23",
+ "data": [
+ {
+ "file": "main.yml",
+ "type": "HEAT",
+ "isBase": "true"
+ }
+ ]
+}
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/notconnected/inputfiles/main.yml b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/notconnected/inputfiles/main.yml
new file mode 100644
index 0000000000..ce061c122a
--- /dev/null
+++ b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/notconnected/inputfiles/main.yml
@@ -0,0 +1,88 @@
+heat_template_version: 2013-05-23
+
+description: cmaui server template for vMMSC
+
+parameters:
+ net:
+ type: string
+ description: UID of network
+ p1:
+ type: string
+ description: p1
+ p2:
+ type: string
+ description: p2
+ myIPs:
+ type: string
+ description: ip1
+ availability_zone_1:
+ type: string
+ description: myAvailability_zone_1
+ names:
+ type: string
+ image:
+ type: string
+ flavor:
+ type: string
+resources:
+
+ myNovaServer1:
+ type: OS::Nova::Server
+ properties:
+ name: { get_param: [names, 0]}
+ image: { get_param: image }
+ availability_zone: { get_param: availability_zone_1 }
+ flavor: { get_param: flavor }
+ networks:
+ - port: { get_resource: myPort1 }
+ - port: { get_resource: myPort2 }
+
+
+ myNovaServer2:
+ type: OS::Nova::Server
+ properties:
+ name: { get_param: [names, 0]}
+ image: { get_param: image }
+ availability_zone: { get_param: availability_zone_1 }
+ flavor: { get_param: flavor }
+ networks:
+ - port: { get_resource: myPort3 }
+ - port: { get_resource: myPort4 }
+
+ myPort1:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: net }
+ fixed_ips: [{"ip_address": {get_param: [myIPs, 0]}}]
+ security_groups: [{get_param: p1}]
+ replacement_policy: AUTO
+
+ myPort2:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: net }
+ fixed_ips: [{"ip_address": {get_param: [myIPs, 0]}}]
+ security_groups: [{get_param: p2}]
+ replacement_policy: AUTO
+
+ myPort3:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: net }
+ fixed_ips: [{"ip_address": {get_param: [myIPs, 0]}}]
+ security_groups: [{get_param: p1}]
+ replacement_policy: AUTO
+
+ myPort4:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: net }
+ fixed_ips: [{"ip_address": {get_param: [myIPs, 0]}}]
+ security_groups: [{get_param: p2}]
+ replacement_policy: AUTO
+ SVCgroup1:
+ type: ATT::Valet::GroupAssignment
+ properties:
+ group_type: diversity
+ group_name: simpleGroup
+ level: host
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/simpleNovaAndNotSupportedResource/expectedoutputfiles/MainServiceTemplate.yaml b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/simpleNovaAndNotSupportedResource/expectedoutputfiles/MainServiceTemplate.yaml
new file mode 100644
index 0000000000..b16c6c0247
--- /dev/null
+++ b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/simpleNovaAndNotSupportedResource/expectedoutputfiles/MainServiceTemplate.yaml
@@ -0,0 +1,209 @@
+tosca_definitions_version: tosca_simple_yaml_1_0_0
+metadata:
+ template_name: Main
+imports:
+- openecomp_heat_index:
+ file: openecomp-heat/_index.yml
+node_types:
+ org.openecomp.resource.vfc.nodes.heat.myNovaServer2:
+ derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
+ org.openecomp.resource.vfc.nodes.heat.myNovaServer1:
+ derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
+topology_template:
+ inputs:
+ flavor:
+ hidden: false
+ immutable: false
+ type: string
+ p1:
+ hidden: false
+ immutable: false
+ type: string
+ description: p1
+ image:
+ hidden: false
+ immutable: false
+ type: string
+ p2:
+ hidden: false
+ immutable: false
+ type: string
+ description: p2
+ names:
+ hidden: false
+ immutable: false
+ type: string
+ myIPs:
+ hidden: false
+ immutable: false
+ type: string
+ description: ip1
+ availability_zone_1:
+ hidden: false
+ immutable: false
+ type: string
+ description: myAvailability_zone_1
+ net:
+ hidden: false
+ immutable: false
+ type: string
+ description: UID of network
+ node_templates:
+ myNovaServer1:
+ type: org.openecomp.resource.vfc.nodes.heat.myNovaServer1
+ properties:
+ flavor:
+ get_input: flavor
+ availability_zone:
+ get_input: availability_zone_1
+ image:
+ get_input: image
+ name:
+ get_input:
+ - names
+ - 0
+ myNovaServer2:
+ type: org.openecomp.resource.vfc.nodes.heat.myNovaServer2
+ properties:
+ flavor:
+ get_input: flavor
+ availability_zone:
+ get_input: availability_zone_1
+ image:
+ get_input: image
+ name:
+ get_input:
+ - names
+ - 0
+ myPort2:
+ type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
+ properties:
+ replacement_policy: AUTO
+ ip_requirements:
+ - ip_version: 4
+ ip_count_required:
+ is_required: true
+ floating_ip_count_required:
+ is_required: false
+ security_groups:
+ - get_input: p2
+ fixed_ips:
+ - ip_address:
+ get_input:
+ - myIPs
+ - 0
+ mac_requirements:
+ mac_count_required:
+ is_required: false
+ network:
+ get_input: net
+ requirements:
+ - binding:
+ capability: tosca.capabilities.network.Bindable
+ node: myNovaServer1
+ relationship: tosca.relationships.network.BindsTo
+ myPort1:
+ type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
+ properties:
+ replacement_policy: AUTO
+ ip_requirements:
+ - ip_version: 4
+ ip_count_required:
+ is_required: true
+ floating_ip_count_required:
+ is_required: false
+ security_groups:
+ - get_input: p1
+ fixed_ips:
+ - ip_address:
+ get_input:
+ - myIPs
+ - 0
+ mac_requirements:
+ mac_count_required:
+ is_required: false
+ network:
+ get_input: net
+ requirements:
+ - binding:
+ capability: tosca.capabilities.network.Bindable
+ node: myNovaServer1
+ relationship: tosca.relationships.network.BindsTo
+ myPort4:
+ type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
+ properties:
+ replacement_policy: AUTO
+ ip_requirements:
+ - ip_version: 4
+ ip_count_required:
+ is_required: true
+ floating_ip_count_required:
+ is_required: false
+ security_groups:
+ - get_input: p2
+ fixed_ips:
+ - ip_address:
+ get_input:
+ - myIPs
+ - 0
+ mac_requirements:
+ mac_count_required:
+ is_required: false
+ network:
+ get_input: net
+ requirements:
+ - binding:
+ capability: tosca.capabilities.network.Bindable
+ node: myNovaServer2
+ relationship: tosca.relationships.network.BindsTo
+ myPort3:
+ type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
+ properties:
+ replacement_policy: AUTO
+ ip_requirements:
+ - ip_version: 4
+ ip_count_required:
+ is_required: true
+ floating_ip_count_required:
+ is_required: false
+ security_groups:
+ - get_input: p1
+ fixed_ips:
+ - ip_address:
+ get_input:
+ - myIPs
+ - 0
+ mac_requirements:
+ mac_count_required:
+ is_required: false
+ network:
+ get_input: net
+ requirements:
+ - binding:
+ capability: tosca.capabilities.network.Bindable
+ node: myNovaServer2
+ relationship: tosca.relationships.network.BindsTo
+ groups:
+ main_group:
+ type: org.openecomp.groups.heat.HeatStack
+ properties:
+ heat_file: ../Artifacts/main.yml
+ description: cmaui server template for vMMSC
+ members:
+ - myNovaServer1
+ - myNovaServer2
+ - myPort2
+ - myPort1
+ - myPort4
+ - myPort3
+ SVCgroup1_simpleGroup_group:
+ type: tosca.groups.Root
+ members:
+ - myNovaServer1
+ policies:
+ SVCgroup1_policy:
+ type: org.openecomp.policies.placement.valet.Exclusivity
+ properties:
+ level: host
+ targets:
+ - SVCgroup1_simpleGroup_group \ No newline at end of file
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/simpleNovaAndNotSupportedResource/inputfiles/MANIFEST.json b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/simpleNovaAndNotSupportedResource/inputfiles/MANIFEST.json
new file mode 100644
index 0000000000..539e26b7ab
--- /dev/null
+++ b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/simpleNovaAndNotSupportedResource/inputfiles/MANIFEST.json
@@ -0,0 +1,12 @@
+{
+ "name": "vMME_Small",
+ "description": "HOT template to create 2 cinder volume attachment",
+ "version": "2013-05-23",
+ "data": [
+ {
+ "file": "main.yml",
+ "type": "HEAT",
+ "isBase": "true"
+ }
+ ]
+}
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/simpleNovaAndNotSupportedResource/inputfiles/main.yml b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/simpleNovaAndNotSupportedResource/inputfiles/main.yml
new file mode 100644
index 0000000000..caa95edfa9
--- /dev/null
+++ b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/simpleNovaAndNotSupportedResource/inputfiles/main.yml
@@ -0,0 +1,96 @@
+heat_template_version: 2013-05-23
+
+description: cmaui server template for vMMSC
+
+parameters:
+ net:
+ type: string
+ description: UID of network
+ p1:
+ type: string
+ description: p1
+ p2:
+ type: string
+ description: p2
+ myIPs:
+ type: string
+ description: ip1
+ availability_zone_1:
+ type: string
+ description: myAvailability_zone_1
+ names:
+ type: string
+ image:
+ type: string
+ flavor:
+ type: string
+resources:
+
+ myNovaServer1:
+ type: OS::Nova::Server
+ properties:
+ name: { get_param: [names, 0]}
+ image: { get_param: image }
+ availability_zone: { get_param: availability_zone_1 }
+ flavor: { get_param: flavor }
+ networks:
+ - port: { get_resource: myPort1 }
+ - port: { get_resource: myPort2 }
+
+
+ myNovaServer2:
+ type: OS::Nova::Server
+ properties:
+ name: { get_param: [names, 0]}
+ image: { get_param: image }
+ availability_zone: { get_param: availability_zone_1 }
+ flavor: { get_param: flavor }
+ networks:
+ - port: { get_resource: myPort3 }
+ - port: { get_resource: myPort4 }
+
+ myPort1:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: net }
+ fixed_ips: [{"ip_address": {get_param: [myIPs, 0]}}]
+ security_groups: [{get_param: p1}]
+ replacement_policy: AUTO
+
+ myPort2:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: net }
+ fixed_ips: [{"ip_address": {get_param: [myIPs, 0]}}]
+ security_groups: [{get_param: p2}]
+ replacement_policy: AUTO
+
+ myPort3:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: net }
+ fixed_ips: [{"ip_address": {get_param: [myIPs, 0]}}]
+ security_groups: [{get_param: p1}]
+ replacement_policy: AUTO
+
+ myPort4:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: net }
+ fixed_ips: [{"ip_address": {get_param: [myIPs, 0]}}]
+ security_groups: [{get_param: p2}]
+ replacement_policy: AUTO
+ myDummyResource:
+ type: myDummyResource::type
+ properties:
+ prop: propertyValue
+
+ SVCgroup1:
+ type: ATT::Valet::GroupAssignment
+ properties:
+ group_type: exclusivity
+ group_name: simpleGroup
+ level: host
+ resources:
+ - { get_resource: myNovaServer1}
+ - { get_resource: myDummyResource}
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/simpleOnlyNotSupportedResources/expectedoutputfiles/MainServiceTemplate.yaml b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/simpleOnlyNotSupportedResources/expectedoutputfiles/MainServiceTemplate.yaml
new file mode 100644
index 0000000000..a43a1d1f5d
--- /dev/null
+++ b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/simpleOnlyNotSupportedResources/expectedoutputfiles/MainServiceTemplate.yaml
@@ -0,0 +1,209 @@
+tosca_definitions_version: tosca_simple_yaml_1_0_0
+metadata:
+ template_name: Main
+imports:
+- openecomp_heat_index:
+ file: openecomp-heat/_index.yml
+node_types:
+ org.openecomp.resource.vfc.nodes.heat.myNovaServer2:
+ derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
+ org.openecomp.resource.vfc.nodes.heat.myNovaServer1:
+ derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
+topology_template:
+ inputs:
+ flavor:
+ hidden: false
+ immutable: false
+ type: string
+ p1:
+ hidden: false
+ immutable: false
+ type: string
+ description: p1
+ image:
+ hidden: false
+ immutable: false
+ type: string
+ p2:
+ hidden: false
+ immutable: false
+ type: string
+ description: p2
+ names:
+ hidden: false
+ immutable: false
+ type: string
+ myIPs:
+ hidden: false
+ immutable: false
+ type: string
+ description: ip1
+ availability_zone_1:
+ hidden: false
+ immutable: false
+ type: string
+ description: myAvailability_zone_1
+ net:
+ hidden: false
+ immutable: false
+ type: string
+ description: UID of network
+ node_templates:
+ myNovaServer1:
+ type: org.openecomp.resource.vfc.nodes.heat.myNovaServer1
+ properties:
+ flavor:
+ get_input: flavor
+ availability_zone:
+ get_input: availability_zone_1
+ image:
+ get_input: image
+ name:
+ get_input:
+ - names
+ - 0
+ myNovaServer2:
+ type: org.openecomp.resource.vfc.nodes.heat.myNovaServer2
+ properties:
+ flavor:
+ get_input: flavor
+ availability_zone:
+ get_input: availability_zone_1
+ image:
+ get_input: image
+ name:
+ get_input:
+ - names
+ - 0
+ myPort2:
+ type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
+ properties:
+ replacement_policy: AUTO
+ ip_requirements:
+ - ip_version: 4
+ ip_count_required:
+ is_required: true
+ floating_ip_count_required:
+ is_required: false
+ security_groups:
+ - get_input: p2
+ fixed_ips:
+ - ip_address:
+ get_input:
+ - myIPs
+ - 0
+ mac_requirements:
+ mac_count_required:
+ is_required: false
+ network:
+ get_input: net
+ requirements:
+ - binding:
+ capability: tosca.capabilities.network.Bindable
+ node: myNovaServer1
+ relationship: tosca.relationships.network.BindsTo
+ myPort1:
+ type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
+ properties:
+ replacement_policy: AUTO
+ ip_requirements:
+ - ip_version: 4
+ ip_count_required:
+ is_required: true
+ floating_ip_count_required:
+ is_required: false
+ security_groups:
+ - get_input: p1
+ fixed_ips:
+ - ip_address:
+ get_input:
+ - myIPs
+ - 0
+ mac_requirements:
+ mac_count_required:
+ is_required: false
+ network:
+ get_input: net
+ requirements:
+ - binding:
+ capability: tosca.capabilities.network.Bindable
+ node: myNovaServer1
+ relationship: tosca.relationships.network.BindsTo
+ myPort4:
+ type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
+ properties:
+ replacement_policy: AUTO
+ ip_requirements:
+ - ip_version: 4
+ ip_count_required:
+ is_required: true
+ floating_ip_count_required:
+ is_required: false
+ security_groups:
+ - get_input: p2
+ fixed_ips:
+ - ip_address:
+ get_input:
+ - myIPs
+ - 0
+ mac_requirements:
+ mac_count_required:
+ is_required: false
+ network:
+ get_input: net
+ requirements:
+ - binding:
+ capability: tosca.capabilities.network.Bindable
+ node: myNovaServer2
+ relationship: tosca.relationships.network.BindsTo
+ myPort3:
+ type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
+ properties:
+ replacement_policy: AUTO
+ ip_requirements:
+ - ip_version: 4
+ ip_count_required:
+ is_required: true
+ floating_ip_count_required:
+ is_required: false
+ security_groups:
+ - get_input: p1
+ fixed_ips:
+ - ip_address:
+ get_input:
+ - myIPs
+ - 0
+ mac_requirements:
+ mac_count_required:
+ is_required: false
+ network:
+ get_input: net
+ requirements:
+ - binding:
+ capability: tosca.capabilities.network.Bindable
+ node: myNovaServer2
+ relationship: tosca.relationships.network.BindsTo
+ groups:
+ main_group:
+ type: org.openecomp.groups.heat.HeatStack
+ properties:
+ heat_file: ../Artifacts/main.yml
+ description: cmaui server template for vMMSC
+ members:
+ - myNovaServer1
+ - myNovaServer2
+ - myPort2
+ - myPort1
+ - myPort4
+ - myPort3
+ SVCgroup1_emptyGroup_group:
+ type: tosca.groups.Root
+ members: [
+ ]
+ policies:
+ SVCgroup1_policy:
+ type: org.openecomp.policies.placement.valet.Affinity
+ properties:
+ level: host
+ targets:
+ - SVCgroup1_emptyGroup_group \ No newline at end of file
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/simpleOnlyNotSupportedResources/inputfiles/MANIFEST.json b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/simpleOnlyNotSupportedResources/inputfiles/MANIFEST.json
new file mode 100644
index 0000000000..539e26b7ab
--- /dev/null
+++ b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/simpleOnlyNotSupportedResources/inputfiles/MANIFEST.json
@@ -0,0 +1,12 @@
+{
+ "name": "vMME_Small",
+ "description": "HOT template to create 2 cinder volume attachment",
+ "version": "2013-05-23",
+ "data": [
+ {
+ "file": "main.yml",
+ "type": "HEAT",
+ "isBase": "true"
+ }
+ ]
+}
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/simpleOnlyNotSupportedResources/inputfiles/main.yml b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/simpleOnlyNotSupportedResources/inputfiles/main.yml
new file mode 100644
index 0000000000..e5842434e1
--- /dev/null
+++ b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/simpleOnlyNotSupportedResources/inputfiles/main.yml
@@ -0,0 +1,103 @@
+heat_template_version: 2013-05-23
+
+description: cmaui server template for vMMSC
+
+parameters:
+ net:
+ type: string
+ description: UID of network
+ p1:
+ type: string
+ description: p1
+ p2:
+ type: string
+ description: p2
+ myIPs:
+ type: string
+ description: ip1
+ availability_zone_1:
+ type: string
+ description: myAvailability_zone_1
+ names:
+ type: string
+ image:
+ type: string
+ flavor:
+ type: string
+resources:
+
+ myNovaServer1:
+ type: OS::Nova::Server
+ properties:
+ name: { get_param: [names, 0]}
+ image: { get_param: image }
+ availability_zone: { get_param: availability_zone_1 }
+ flavor: { get_param: flavor }
+ networks:
+ - port: { get_resource: myPort1 }
+ - port: { get_resource: myPort2 }
+
+
+ myNovaServer2:
+ type: OS::Nova::Server
+ properties:
+ name: { get_param: [names, 0]}
+ image: { get_param: image }
+ availability_zone: { get_param: availability_zone_1 }
+ flavor: { get_param: flavor }
+ networks:
+ - port: { get_resource: myPort3 }
+ - port: { get_resource: myPort4 }
+
+ myPort1:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: net }
+ fixed_ips: [{"ip_address": {get_param: [myIPs, 0]}}]
+ security_groups: [{get_param: p1}]
+ replacement_policy: AUTO
+
+ myPort2:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: net }
+ fixed_ips: [{"ip_address": {get_param: [myIPs, 0]}}]
+ security_groups: [{get_param: p2}]
+ replacement_policy: AUTO
+
+ myPort3:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: net }
+ fixed_ips: [{"ip_address": {get_param: [myIPs, 0]}}]
+ security_groups: [{get_param: p1}]
+ replacement_policy: AUTO
+
+ myPort4:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: net }
+ fixed_ips: [{"ip_address": {get_param: [myIPs, 0]}}]
+ security_groups: [{get_param: p2}]
+ replacement_policy: AUTO
+
+ myDummyResource1:
+ type: myDummyResource1
+ properties:
+ prop1: aaaa
+
+ myDummyResource2:
+ type: myDummyResource2
+ properties:
+ prop1: bbb
+
+
+ SVCgroup1:
+ type: ATT::Valet::GroupAssignment
+ properties:
+ group_type: affinity
+ group_name: emptyGroup
+ level: host
+ resources:
+ - { get_resource: myDummyResource1}
+ - { get_resource: myDummyResource2}
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/simpleOnlyNova/expectedoutputfiles/MainServiceTemplate.yaml b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/simpleOnlyNova/expectedoutputfiles/MainServiceTemplate.yaml
new file mode 100644
index 0000000000..3ec1bd245e
--- /dev/null
+++ b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/simpleOnlyNova/expectedoutputfiles/MainServiceTemplate.yaml
@@ -0,0 +1,210 @@
+tosca_definitions_version: tosca_simple_yaml_1_0_0
+metadata:
+ template_name: Main
+imports:
+- openecomp_heat_index:
+ file: openecomp-heat/_index.yml
+node_types:
+ org.openecomp.resource.vfc.nodes.heat.myNovaServer2:
+ derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
+ org.openecomp.resource.vfc.nodes.heat.myNovaServer1:
+ derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
+topology_template:
+ inputs:
+ flavor:
+ hidden: false
+ immutable: false
+ type: string
+ p1:
+ hidden: false
+ immutable: false
+ type: string
+ description: p1
+ image:
+ hidden: false
+ immutable: false
+ type: string
+ p2:
+ hidden: false
+ immutable: false
+ type: string
+ description: p2
+ names:
+ hidden: false
+ immutable: false
+ type: string
+ myIPs:
+ hidden: false
+ immutable: false
+ type: string
+ description: ip1
+ availability_zone_1:
+ hidden: false
+ immutable: false
+ type: string
+ description: myAvailability_zone_1
+ net:
+ hidden: false
+ immutable: false
+ type: string
+ description: UID of network
+ node_templates:
+ myNovaServer1:
+ type: org.openecomp.resource.vfc.nodes.heat.myNovaServer1
+ properties:
+ flavor:
+ get_input: flavor
+ availability_zone:
+ get_input: availability_zone_1
+ image:
+ get_input: image
+ name:
+ get_input:
+ - names
+ - 0
+ myNovaServer2:
+ type: org.openecomp.resource.vfc.nodes.heat.myNovaServer2
+ properties:
+ flavor:
+ get_input: flavor
+ availability_zone:
+ get_input: availability_zone_1
+ image:
+ get_input: image
+ name:
+ get_input:
+ - names
+ - 0
+ myPort2:
+ type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
+ properties:
+ replacement_policy: AUTO
+ ip_requirements:
+ - ip_version: 4
+ ip_count_required:
+ is_required: true
+ floating_ip_count_required:
+ is_required: false
+ security_groups:
+ - get_input: p2
+ fixed_ips:
+ - ip_address:
+ get_input:
+ - myIPs
+ - 0
+ mac_requirements:
+ mac_count_required:
+ is_required: false
+ network:
+ get_input: net
+ requirements:
+ - binding:
+ capability: tosca.capabilities.network.Bindable
+ node: myNovaServer1
+ relationship: tosca.relationships.network.BindsTo
+ myPort1:
+ type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
+ properties:
+ replacement_policy: AUTO
+ ip_requirements:
+ - ip_version: 4
+ ip_count_required:
+ is_required: true
+ floating_ip_count_required:
+ is_required: false
+ security_groups:
+ - get_input: p1
+ fixed_ips:
+ - ip_address:
+ get_input:
+ - myIPs
+ - 0
+ mac_requirements:
+ mac_count_required:
+ is_required: false
+ network:
+ get_input: net
+ requirements:
+ - binding:
+ capability: tosca.capabilities.network.Bindable
+ node: myNovaServer1
+ relationship: tosca.relationships.network.BindsTo
+ myPort4:
+ type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
+ properties:
+ replacement_policy: AUTO
+ ip_requirements:
+ - ip_version: 4
+ ip_count_required:
+ is_required: true
+ floating_ip_count_required:
+ is_required: false
+ security_groups:
+ - get_input: p2
+ fixed_ips:
+ - ip_address:
+ get_input:
+ - myIPs
+ - 0
+ mac_requirements:
+ mac_count_required:
+ is_required: false
+ network:
+ get_input: net
+ requirements:
+ - binding:
+ capability: tosca.capabilities.network.Bindable
+ node: myNovaServer2
+ relationship: tosca.relationships.network.BindsTo
+ myPort3:
+ type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
+ properties:
+ replacement_policy: AUTO
+ ip_requirements:
+ - ip_version: 4
+ ip_count_required:
+ is_required: true
+ floating_ip_count_required:
+ is_required: false
+ security_groups:
+ - get_input: p1
+ fixed_ips:
+ - ip_address:
+ get_input:
+ - myIPs
+ - 0
+ mac_requirements:
+ mac_count_required:
+ is_required: false
+ network:
+ get_input: net
+ requirements:
+ - binding:
+ capability: tosca.capabilities.network.Bindable
+ node: myNovaServer2
+ relationship: tosca.relationships.network.BindsTo
+ groups:
+ main_group:
+ type: org.openecomp.groups.heat.HeatStack
+ properties:
+ heat_file: ../Artifacts/main.yml
+ description: cmaui server template for vMMSC
+ members:
+ - myNovaServer1
+ - myNovaServer2
+ - myPort2
+ - myPort1
+ - myPort4
+ - myPort3
+ SVCgroup1_simpleGroup_group:
+ type: tosca.groups.Root
+ members:
+ - myNovaServer1
+ - myNovaServer2
+ policies:
+ SVCgroup1_policy:
+ type: org.openecomp.policies.placement.valet.Affinity
+ properties:
+ level: host
+ targets:
+ - SVCgroup1_simpleGroup_group \ No newline at end of file
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/simpleOnlyNova/inputfiles/MANIFEST.json b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/simpleOnlyNova/inputfiles/MANIFEST.json
new file mode 100644
index 0000000000..539e26b7ab
--- /dev/null
+++ b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/simpleOnlyNova/inputfiles/MANIFEST.json
@@ -0,0 +1,12 @@
+{
+ "name": "vMME_Small",
+ "description": "HOT template to create 2 cinder volume attachment",
+ "version": "2013-05-23",
+ "data": [
+ {
+ "file": "main.yml",
+ "type": "HEAT",
+ "isBase": "true"
+ }
+ ]
+}
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/simpleOnlyNova/inputfiles/main.yml b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/simpleOnlyNova/inputfiles/main.yml
new file mode 100644
index 0000000000..586a7343e4
--- /dev/null
+++ b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/simpleOnlyNova/inputfiles/main.yml
@@ -0,0 +1,91 @@
+heat_template_version: 2013-05-23
+
+description: cmaui server template for vMMSC
+
+parameters:
+ net:
+ type: string
+ description: UID of network
+ p1:
+ type: string
+ description: p1
+ p2:
+ type: string
+ description: p2
+ myIPs:
+ type: string
+ description: ip1
+ availability_zone_1:
+ type: string
+ description: myAvailability_zone_1
+ names:
+ type: string
+ image:
+ type: string
+ flavor:
+ type: string
+resources:
+
+ myNovaServer1:
+ type: OS::Nova::Server
+ properties:
+ name: { get_param: [names, 0]}
+ image: { get_param: image }
+ availability_zone: { get_param: availability_zone_1 }
+ flavor: { get_param: flavor }
+ networks:
+ - port: { get_resource: myPort1 }
+ - port: { get_resource: myPort2 }
+
+
+ myNovaServer2:
+ type: OS::Nova::Server
+ properties:
+ name: { get_param: [names, 0]}
+ image: { get_param: image }
+ availability_zone: { get_param: availability_zone_1 }
+ flavor: { get_param: flavor }
+ networks:
+ - port: { get_resource: myPort3 }
+ - port: { get_resource: myPort4 }
+
+ myPort1:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: net }
+ fixed_ips: [{"ip_address": {get_param: [myIPs, 0]}}]
+ security_groups: [{get_param: p1}]
+ replacement_policy: AUTO
+
+ myPort2:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: net }
+ fixed_ips: [{"ip_address": {get_param: [myIPs, 0]}}]
+ security_groups: [{get_param: p2}]
+ replacement_policy: AUTO
+
+ myPort3:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: net }
+ fixed_ips: [{"ip_address": {get_param: [myIPs, 0]}}]
+ security_groups: [{get_param: p1}]
+ replacement_policy: AUTO
+
+ myPort4:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: net }
+ fixed_ips: [{"ip_address": {get_param: [myIPs, 0]}}]
+ security_groups: [{get_param: p2}]
+ replacement_policy: AUTO
+ SVCgroup1:
+ type: ATT::Valet::GroupAssignment
+ properties:
+ group_type: affinity
+ group_name: simpleGroup
+ level: host
+ resources:
+ - { get_resource: myNovaServer1}
+ - { get_resource: myNovaServer2}
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/simpleOnlySingleNova/expectedoutputfiles/MainServiceTemplate.yaml b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/simpleOnlySingleNova/expectedoutputfiles/MainServiceTemplate.yaml
new file mode 100644
index 0000000000..56b552b348
--- /dev/null
+++ b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/simpleOnlySingleNova/expectedoutputfiles/MainServiceTemplate.yaml
@@ -0,0 +1,209 @@
+tosca_definitions_version: tosca_simple_yaml_1_0_0
+metadata:
+ template_name: Main
+imports:
+- openecomp_heat_index:
+ file: openecomp-heat/_index.yml
+node_types:
+ org.openecomp.resource.vfc.nodes.heat.myNovaServer2:
+ derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
+ org.openecomp.resource.vfc.nodes.heat.myNovaServer1:
+ derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
+topology_template:
+ inputs:
+ flavor:
+ hidden: false
+ immutable: false
+ type: string
+ p1:
+ hidden: false
+ immutable: false
+ type: string
+ description: p1
+ image:
+ hidden: false
+ immutable: false
+ type: string
+ p2:
+ hidden: false
+ immutable: false
+ type: string
+ description: p2
+ names:
+ hidden: false
+ immutable: false
+ type: string
+ myIPs:
+ hidden: false
+ immutable: false
+ type: string
+ description: ip1
+ availability_zone_1:
+ hidden: false
+ immutable: false
+ type: string
+ description: myAvailability_zone_1
+ net:
+ hidden: false
+ immutable: false
+ type: string
+ description: UID of network
+ node_templates:
+ myNovaServer1:
+ type: org.openecomp.resource.vfc.nodes.heat.myNovaServer1
+ properties:
+ flavor:
+ get_input: flavor
+ availability_zone:
+ get_input: availability_zone_1
+ image:
+ get_input: image
+ name:
+ get_input:
+ - names
+ - 0
+ myNovaServer2:
+ type: org.openecomp.resource.vfc.nodes.heat.myNovaServer2
+ properties:
+ flavor:
+ get_input: flavor
+ availability_zone:
+ get_input: availability_zone_1
+ image:
+ get_input: image
+ name:
+ get_input:
+ - names
+ - 0
+ myPort2:
+ type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
+ properties:
+ replacement_policy: AUTO
+ ip_requirements:
+ - ip_version: 4
+ ip_count_required:
+ is_required: true
+ floating_ip_count_required:
+ is_required: false
+ security_groups:
+ - get_input: p2
+ fixed_ips:
+ - ip_address:
+ get_input:
+ - myIPs
+ - 0
+ mac_requirements:
+ mac_count_required:
+ is_required: false
+ network:
+ get_input: net
+ requirements:
+ - binding:
+ capability: tosca.capabilities.network.Bindable
+ node: myNovaServer1
+ relationship: tosca.relationships.network.BindsTo
+ myPort1:
+ type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
+ properties:
+ replacement_policy: AUTO
+ ip_requirements:
+ - ip_version: 4
+ ip_count_required:
+ is_required: true
+ floating_ip_count_required:
+ is_required: false
+ security_groups:
+ - get_input: p1
+ fixed_ips:
+ - ip_address:
+ get_input:
+ - myIPs
+ - 0
+ mac_requirements:
+ mac_count_required:
+ is_required: false
+ network:
+ get_input: net
+ requirements:
+ - binding:
+ capability: tosca.capabilities.network.Bindable
+ node: myNovaServer1
+ relationship: tosca.relationships.network.BindsTo
+ myPort4:
+ type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
+ properties:
+ replacement_policy: AUTO
+ ip_requirements:
+ - ip_version: 4
+ ip_count_required:
+ is_required: true
+ floating_ip_count_required:
+ is_required: false
+ security_groups:
+ - get_input: p2
+ fixed_ips:
+ - ip_address:
+ get_input:
+ - myIPs
+ - 0
+ mac_requirements:
+ mac_count_required:
+ is_required: false
+ network:
+ get_input: net
+ requirements:
+ - binding:
+ capability: tosca.capabilities.network.Bindable
+ node: myNovaServer2
+ relationship: tosca.relationships.network.BindsTo
+ myPort3:
+ type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
+ properties:
+ replacement_policy: AUTO
+ ip_requirements:
+ - ip_version: 4
+ ip_count_required:
+ is_required: true
+ floating_ip_count_required:
+ is_required: false
+ security_groups:
+ - get_input: p1
+ fixed_ips:
+ - ip_address:
+ get_input:
+ - myIPs
+ - 0
+ mac_requirements:
+ mac_count_required:
+ is_required: false
+ network:
+ get_input: net
+ requirements:
+ - binding:
+ capability: tosca.capabilities.network.Bindable
+ node: myNovaServer2
+ relationship: tosca.relationships.network.BindsTo
+ groups:
+ main_group:
+ type: org.openecomp.groups.heat.HeatStack
+ properties:
+ heat_file: ../Artifacts/main.yml
+ description: cmaui server template for vMMSC
+ members:
+ - myNovaServer1
+ - myNovaServer2
+ - myPort2
+ - myPort1
+ - myPort4
+ - myPort3
+ SVCgroup1_simpleGroup_group:
+ type: tosca.groups.Root
+ members:
+ - myNovaServer1
+ policies:
+ SVCgroup1_policy:
+ type: org.openecomp.policies.placement.valet.Diversity
+ properties:
+ level: host
+ targets:
+ - SVCgroup1_simpleGroup_group \ No newline at end of file
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/simpleOnlySingleNova/inputfiles/MANIFEST.json b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/simpleOnlySingleNova/inputfiles/MANIFEST.json
new file mode 100644
index 0000000000..539e26b7ab
--- /dev/null
+++ b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/simpleOnlySingleNova/inputfiles/MANIFEST.json
@@ -0,0 +1,12 @@
+{
+ "name": "vMME_Small",
+ "description": "HOT template to create 2 cinder volume attachment",
+ "version": "2013-05-23",
+ "data": [
+ {
+ "file": "main.yml",
+ "type": "HEAT",
+ "isBase": "true"
+ }
+ ]
+}
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/simpleOnlySingleNova/inputfiles/main.yml b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/simpleOnlySingleNova/inputfiles/main.yml
new file mode 100644
index 0000000000..f7079ce7ce
--- /dev/null
+++ b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/simpleOnlySingleNova/inputfiles/main.yml
@@ -0,0 +1,90 @@
+heat_template_version: 2013-05-23
+
+description: cmaui server template for vMMSC
+
+parameters:
+ net:
+ type: string
+ description: UID of network
+ p1:
+ type: string
+ description: p1
+ p2:
+ type: string
+ description: p2
+ myIPs:
+ type: string
+ description: ip1
+ availability_zone_1:
+ type: string
+ description: myAvailability_zone_1
+ names:
+ type: string
+ image:
+ type: string
+ flavor:
+ type: string
+resources:
+
+ myNovaServer1:
+ type: OS::Nova::Server
+ properties:
+ name: { get_param: [names, 0]}
+ image: { get_param: image }
+ availability_zone: { get_param: availability_zone_1 }
+ flavor: { get_param: flavor }
+ networks:
+ - port: { get_resource: myPort1 }
+ - port: { get_resource: myPort2 }
+
+
+ myNovaServer2:
+ type: OS::Nova::Server
+ properties:
+ name: { get_param: [names, 0]}
+ image: { get_param: image }
+ availability_zone: { get_param: availability_zone_1 }
+ flavor: { get_param: flavor }
+ networks:
+ - port: { get_resource: myPort3 }
+ - port: { get_resource: myPort4 }
+
+ myPort1:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: net }
+ fixed_ips: [{"ip_address": {get_param: [myIPs, 0]}}]
+ security_groups: [{get_param: p1}]
+ replacement_policy: AUTO
+
+ myPort2:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: net }
+ fixed_ips: [{"ip_address": {get_param: [myIPs, 0]}}]
+ security_groups: [{get_param: p2}]
+ replacement_policy: AUTO
+
+ myPort3:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: net }
+ fixed_ips: [{"ip_address": {get_param: [myIPs, 0]}}]
+ security_groups: [{get_param: p1}]
+ replacement_policy: AUTO
+
+ myPort4:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: net }
+ fixed_ips: [{"ip_address": {get_param: [myIPs, 0]}}]
+ security_groups: [{get_param: p2}]
+ replacement_policy: AUTO
+ SVCgroup1:
+ type: ATT::Valet::GroupAssignment
+ properties:
+ group_type: diversity
+ group_name: simpleGroup
+ level: host
+ resources:
+ - { get_resource: myNovaServer1}