diff options
author | Avi Ziv <avi.ziv@amdocs.com> | 2017-07-18 19:45:38 +0300 |
---|---|---|
committer | Avi Ziv <avi.ziv@amdocs.com> | 2017-07-18 19:45:38 +0300 |
commit | b8e2faf476202b6ffe61bc3a9a37df1304881d40 (patch) | |
tree | f78b8c0517d8e16c5ae610bf8b49f68ea8a312a1 /openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/multiLevel/portSecurityGroupNetPattern1B/in | |
parent | 75aacbbe1acf78fa53378f07f0a8c7769449a17e (diff) |
[SDC] Onboarding 1710 rebase.
Change-Id: If3b6b81d221fde13908f1e8160db6f7d9433c535
Signed-off-by: Avi Ziv <avi.ziv@amdocs.com>
Diffstat (limited to 'openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/multiLevel/portSecurityGroupNetPattern1B/in')
5 files changed, 334 insertions, 0 deletions
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/multiLevel/portSecurityGroupNetPattern1B/in/MANIFEST.json b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/multiLevel/portSecurityGroupNetPattern1B/in/MANIFEST.json new file mode 100644 index 0000000000..10f0e8cbdd --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/multiLevel/portSecurityGroupNetPattern1B/in/MANIFEST.json @@ -0,0 +1,27 @@ +{ + "name": "Port to Network multi nested test", + "description": "HOT template to create multi nested of 4 levels", + "version": "2013-05-23", + "data": [ + { + "file": "main.yml", + "type": "HEAT", + "isBase": "true" + }, + { + "file": "nested1.yml", + "type": "HEAT", + "isBase": "false" + }, + { + "file": "nested2.yml", + "type": "HEAT", + "isBase": "false" + }, + { + "file": "nested3.yml", + "type": "HEAT", + "isBase": "false" + } + ] +} diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/multiLevel/portSecurityGroupNetPattern1B/in/main.yml b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/multiLevel/portSecurityGroupNetPattern1B/in/main.yml new file mode 100644 index 0000000000..e7413fdc09 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/multiLevel/portSecurityGroupNetPattern1B/in/main.yml @@ -0,0 +1,54 @@ +heat_template_version: 2013-05-23 + +description: > + Version 2.0 02-09-2016 (Authors: John Doe, user PROD) + +parameters: + jsa_name: + type: string + description: network name of jsa log network + security_group_name: + type: string + description: security_group_name + jsa_net_name: + type: string + description: network name of jsa network + contrail_net_name: + type: string + description: network name of contrail v2 network + +resources: + jsa_security_group1: + type: OS::Neutron::SecurityGroup + properties: + description: ems security group + name: {get_param: security_group_name} + rules: [ + {"direction": ingress, "ethertype": IPv6, "protocol": icmp, "remote_ip_prefix": "::/0"} + ] + + jsa_security_group2: + type: OS::Neutron::SecurityGroup + properties: + description: ems security group + name: {get_param: security_group_name} + rules: [{"direction": egress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": tcp, "remote_ip_prefix": 0.0.0.0/0}] + + test_net: + type: OS::Neutron::Net + properties: + name: {get_param: jsa_net_name} + shared: True + + test_contrailV2_net: + type: OS::ContrailV2::VirtualNetwork + properties: + name: { get_param: contrail_net_name } + + test_nested1Level: + type: nested1.yml + properties: + p1: { get_resource: jsa_security_group1} + p2: { get_resource: jsa_security_group2} + net1: { get_resource: test_net} + net2: { get_attr: [ test_contrailV2_net, fq_name ] } diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/multiLevel/portSecurityGroupNetPattern1B/in/nested1.yml b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/multiLevel/portSecurityGroupNetPattern1B/in/nested1.yml new file mode 100644 index 0000000000..c94b294b14 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/multiLevel/portSecurityGroupNetPattern1B/in/nested1.yml @@ -0,0 +1,91 @@ +heat_template_version: 2013-05-23 + +description: nested1 + +parameters: + p1: + type: string + description: UID of OAM network + p2: + type: string + description: UID of OAM network + net1: + type: string + description: Neutron network + net2: + type: string + description: Contrail V2 network + security_group_name: + type: comma_delimited_list + description: CMAUI1, CMAUI2 server names + pd_server_names: + type: comma_delimited_list + description: PD server names + pd_server_image: + type: string + description: PD Image server + ps_server_names: + type: comma_delimited_list + description: Ps server names + ps_server_image: + type: string + description: Ps Image server + availability_zone_0: + type: string + label: availabilityzone name + description: availabilityzone name + pd_server_flavor: + type: string + description: Flavor for PD server + ps_server_flavor: + type: string + description: Flavor for PS server + pd_server_ips: + type: string + ps_server_ips: + type: string + net: + type: string + +resources: + pd_server_port: + type: OS::Neutron::Port + properties: + network: { get_param: net1 } + fixed_ips: [{"ip_address": {get_param: [pd_server_ips, 0]}}] + security_groups: [{get_param: p1},{get_param: p2}] + replacement_policy: AUTO + + ps_server_port: + type: OS::Neutron::Port + properties: + network: { get_param: net2 } + fixed_ips: [{"ip_address": {get_param: [ps_server_ips, 0]}}] + security_groups: [{get_param: p1}] + replacement_policy: AUTO + + server_pd: + type: OS::Nova::Server + properties: + name: { get_param: [pd_server_names, 0]} + image: { get_param: pd_server_image } + availability_zone: { get_param: availability_zone_0 } + flavor: { get_param: pd_server_flavor } + networks: + - port: { get_resource: pd_server_port } + + server_ps: + type: OS::Nova::Server + properties: + name: { get_param: [ps_server_names, 1]} + image: { get_param: ps_server_image } + availability_zone: { get_param: availability_zone_0 } + flavor: { get_param: ps_server_flavor } + networks: + - port: { get_resource: ps_server_port } + + test_nested2Level: + type: nested2.yml + properties: + p1: { get_param: p1} + p2: { get_param: p2} diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/multiLevel/portSecurityGroupNetPattern1B/in/nested2.yml b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/multiLevel/portSecurityGroupNetPattern1B/in/nested2.yml new file mode 100644 index 0000000000..8fbe2ac6aa --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/multiLevel/portSecurityGroupNetPattern1B/in/nested2.yml @@ -0,0 +1,96 @@ +heat_template_version: 2013-05-23 + +description: nested2 + +parameters: + p1: + type: string + description: UID of OAM network + p2: + type: string + description: UID of OAM network + net1: + type: string + description: Neutron network + net2: + type: string + description: Contrail V2 network + security_group_name: + type: comma_delimited_list + description: CMAUI1, CMAUI2 server names + sm_server_names: + type: comma_delimited_list + description: SM server names + sm_server_image: + type: string + description: SM Image server + oam_server_names: + type: comma_delimited_list + description: OAM server names + oam_server_image: + type: string + description: OAM Image server + availability_zone_0: + type: string + label: availabilityzone name + description: availabilityzone name + sm_server_flavor: + type: string + description: Flavor for SM server + oam_server_flavor: + type: string + description: Flavor for OAM server + sm_server_ips: + type: string + oam_server_ips: + type: string + net: + type: string + +resources: + sm_server_port: + type: OS::Neutron::Port + properties: + network: { get_param: net1 } + fixed_ips: [{"ip_address": {get_param: [sm_server_ips, 0]}}] + security_groups: [{get_param: p1},{get_param: p2}] + replacement_policy: AUTO + + oam_server_port: + type: OS::Neutron::Port + properties: + network: { get_param: net2 } + fixed_ips: [{"ip_address": {get_param: [oam_server_ips, 0]}}] + security_groups: [{get_param: p1}] + replacement_policy: AUTO + + server_sm: + type: OS::Nova::Server + properties: + name: { get_param: [sm_server_names, 0]} + image: { get_param: sm_server_image } + availability_zone: { get_param: availability_zone_0 } + flavor: { get_param: sm_server_flavor } + networks: + - port: { get_resource: sm_server_port } + + server_oam: + type: OS::Nova::Server + properties: + name: { get_param: [oam_server_names, 1]} + image: { get_param: oam_server_image } + availability_zone: { get_param: availability_zone_0 } + flavor: { get_param: oam_server_flavor } + networks: + - port: { get_resource: oam_server_port } + + + test_resourceGroup: + type: OS::Heat::ResourceGroup + properties: + count: 9 + resource_def: + type: nested3.yml + properties: + p1: { get_param: net} + indx: "%index%"
\ No newline at end of file diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/multiLevel/portSecurityGroupNetPattern1B/in/nested3.yml b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/multiLevel/portSecurityGroupNetPattern1B/in/nested3.yml new file mode 100644 index 0000000000..7e4fee5a6e --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/multiLevel/portSecurityGroupNetPattern1B/in/nested3.yml @@ -0,0 +1,66 @@ +heat_template_version: 2013-05-23 + +description: nested4 + +parameters: + p1: + type: string + description: UID of OAM network + p2: + type: string + net1: + type: string + description: Neutron network + net2: + type: string + description: Contrail V2 network + security_group_name: + type: comma_delimited_list + description: CMAUI1, CMAUI2 server names + cmaui_names: + type: comma_delimited_list + description: CMAUI1, CMAUI2 server names + cmaui_image: + type: string + description: Image for CMAUI server + availability_zone_0: + type: string + label: availabilityzone name + description: availabilityzone name + cmaui_flavor: + type: string + description: Flavor for CMAUI server + cmaui_oam_ips: + type: string + net: + type: string + indx: + type: number + +resources: + cmaui_port_7: + type: OS::Neutron::Port + properties: + network: { get_param: net1 } + fixed_ips: [{"ip_address": {get_param: [cmaui_oam_ips, 0]}}] + security_groups: [{get_param: p1}] + replacement_policy: AUTO + + cmaui_port_8: + type: OS::Neutron::Port + properties: + network: { get_param: net2 } + fixed_ips: [{"ip_address": {get_param: [cmaui_oam_ips, 0]}}] + security_groups: [{get_param: p2},{get_param: p2}] + replacement_policy: AUTO + + server_cmaui: + type: OS::Nova::Server + properties: + name: { get_param: [cmaui_names, 0]} + image: { get_param: cmaui_image } + availability_zone: { get_param: availability_zone_0 } + flavor: { get_param: cmaui_flavor } + networks: + - port: { get_resource: cmaui_port_7 } + - port: { get_resource: cmaui_port_8 }
\ No newline at end of file |