summaryrefslogtreecommitdiffstats
path: root/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/multiLevel/allPatternsDependsOnConnectivity/in/nested1.yml
diff options
context:
space:
mode:
Diffstat (limited to 'openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/multiLevel/allPatternsDependsOnConnectivity/in/nested1.yml')
-rw-r--r--openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/multiLevel/allPatternsDependsOnConnectivity/in/nested1.yml162
1 files changed, 162 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/allPatternsDependsOnConnectivity/in/nested1.yml b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/multiLevel/allPatternsDependsOnConnectivity/in/nested1.yml
new file mode 100644
index 0000000000..9b397c6fd7
--- /dev/null
+++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedOtherScenarios/multiLevel/allPatternsDependsOnConnectivity/in/nested1.yml
@@ -0,0 +1,162 @@
+heat_template_version: 2013-05-23
+
+description: >
+ Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
+
+parameters:
+ name:
+ type: string
+ description: nested parameter
+ 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
+ pd_server_main_1b_names:
+ type: comma_delimited_list
+ description: PD server names
+ pd_server_main_1b_image:
+ type: string
+ description: PD Image server
+ ps_server_main_1b_names:
+ type: comma_delimited_list
+ description: Ps server names
+ ps_server_main_1b_image:
+ type: string
+ description: Ps Image server
+ availability_zone_0:
+ type: string
+ label: availabilityzone name
+ description: availabilityzone name
+ pd_server_main_1b_flavor:
+ type: string
+ description: Flavor for PD server
+ ps_server_main_1b_flavor:
+ type: string
+ description: Flavor for PS server
+ pd_server_main_1b_ips:
+ type: string
+ ps_server_main_1b_ips:
+ type: string
+ cmaui_1c1_main_names:
+ type: comma_delimited_list
+ description: CMAUI1, CMAUI2 server names
+ cmaui_1c1_main_image:
+ type: string
+ description: Image for CMAUI server
+ cmaui_oam_ips:
+ type: string
+ cmaui_1c1_main_flavor:
+ type: string
+ description: Flavor for CMAUI server
+
+resources:
+ test_nested2Level:
+ type: nested2.yml
+ depends_on:
+ - test_nested_pattern_4_main_1
+ properties:
+ name: { get_param: security_group_name}
+
+ ########### PATTERN 1B (same type as main) ##################
+
+ pd_server_main_1b_port:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: jsa_name }
+ fixed_ips: [{"ip_address": {get_param: [pd_server_main_1b_ips, 0]}}]
+ replacement_policy: AUTO
+
+ ps_server_main_1b_port:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: jsa_name }
+ fixed_ips: [{"ip_address": {get_param: [ps_server_main_1b_ips, 0]}}]
+ replacement_policy: AUTO
+
+ server_main_pd_1b:
+ type: OS::Nova::Server
+ depends_on:
+ - test_nested2Level
+ properties:
+ name: { get_param: [pd_server_main_1b_names, 0]}
+ image: { get_param: pd_server_main_1b_image }
+ availability_zone: { get_param: availability_zone_0 }
+ flavor: { get_param: pd_server_main_1b_flavor }
+ networks:
+ - port: { get_resource: pd_server_main_1b_port }
+
+ server_main_ps_1b:
+ type: OS::Nova::Server
+ depends_on:
+ - server_main_pd_1b
+ properties:
+ name: { get_param: [ps_server_main_1b_names, 1]}
+ image: { get_param: ps_server_main_1b_image }
+ availability_zone: { get_param: availability_zone_0 }
+ flavor: { get_param: ps_server_main_1b_flavor }
+ networks:
+ - port: { get_resource: ps_server_main_1b_port }
+
+ ########### PATTERN 1C1 (same type as main) #################
+
+ cmaui_port_1:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: contrail_net_name}
+ fixed_ips: [{"ip_address": {get_param: [cmaui_oam_ips, 0]}}]
+ replacement_policy: AUTO
+
+ cmaui_port_2:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: contrail_net_name}
+ fixed_ips: [{"ip_address": {get_param: [cmaui_oam_ips, 0]}}]
+ replacement_policy: AUTO
+
+ server_main_1c1_cmaui_1:
+ type: OS::Nova::Server
+ depends_on:
+ - server_main_pd_1b
+ - server_main_ps_1b
+ - test_nested2Level
+ properties:
+ name: { get_param: [cmaui_1c1_main_names, 0]}
+ image: { get_param: cmaui_1c1_main_image }
+ availability_zone: { get_param: availability_zone_0 }
+ flavor: { get_param: cmaui_1c1_main_flavor }
+ networks:
+ - port: { get_resource: cmaui_port_1 }
+
+ server_main_1c1_cmaui_2:
+ type: OS::Nova::Server
+ depends_on:
+ - server_main_pd_1b
+ - server_main_ps_1b
+ - test_nested2Level
+ properties:
+ name: { get_param: [cmaui_1c1_main_names, 1]}
+ image: { get_param: cmaui_1c1_main_image }
+ availability_zone: { get_param: availability_zone_0 }
+ flavor: { get_param: cmaui_1c1_main_flavor }
+ networks:
+ - port: { get_resource: cmaui_port_2 }
+
+ ########### PATTERN 4 (same type as main) #################
+
+ test_nested_pattern_4_main_1:
+ type: nested-pattern-4.yml
+ depends_on:
+ - server_main_1c1_cmaui_1
+ - server_main_1c1_cmaui_2
+ - server_main_pd_1b
+ - server_main_ps_1b
+ properties:
+ p1: { get_param: jsa_name} \ No newline at end of file