related-networks property support as input
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / fulltest / singleSubstitution / oneComputeSamePortTypesAndGetAttOut / out / MainServiceTemplate.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: Main
4 imports:
5 - openecomp_heat_index:
6     file: openecomp-heat/_index.yml
7 - GlobalSubstitutionTypes:
8     file: GlobalSubstitutionTypesServiceTemplate.yaml
9 topology_template:
10   inputs:
11     dummy_net_name_1:
12       label: csb ineternal cidr
13       hidden: false
14       immutable: false
15       annotations:
16         source:
17           type: org.openecomp.annotations.Source
18           properties:
19             vf_module_label:
20             - hot-mog-0108-bs1271
21             source_type: HEAT
22             param_name: dummy_net_name_1
23       type: string
24       description: csb internal cidr
25       default: packet-net-1
26     availabilityzone_name:
27       label: availabilityzone name
28       hidden: false
29       immutable: false
30       annotations:
31         source:
32           type: org.openecomp.annotations.Source
33           properties:
34             vf_module_label:
35             - hot-mog-0108-bs1271
36             source_type: HEAT
37             param_name: availabilityzone_name
38       type: string
39       description: availabilityzone name
40       default: nova
41     pd_image_name:
42       label: image name
43       hidden: false
44       immutable: false
45       annotations:
46         source:
47           type: org.openecomp.annotations.Source
48           properties:
49             vf_module_label:
50             - hot-mog-0108-bs1271
51             source_type: HEAT
52             param_name: pd_image_name
53       type: string
54       description: PD image name
55       default: MOG_BASE_8.0
56     pd_server_names:
57       label: PD server names
58       hidden: false
59       immutable: false
60       annotations:
61         source:
62           type: org.openecomp.annotations.Source
63           properties:
64             vf_module_label:
65             - hot-mog-0108-bs1271
66             source_type: HEAT
67             param_name: pd_server_names
68       type: list
69       description: name of the PD instance
70       default:
71       - ZRDM1MOGX01MPD001
72       - ZRDM1MOGX01MPD002
73       entry_schema:
74         type: string
75     oam_net_name:
76       label: oam network name
77       hidden: false
78       immutable: false
79       annotations:
80         source:
81           type: org.openecomp.annotations.Source
82           properties:
83             vf_module_label:
84             - hot-mog-0108-bs1271
85             source_type: HEAT
86             param_name: oam_net_name
87       type: string
88       description: name of the oam network
89       default: oam_protected_net_0
90   node_templates:
91     abstract_pd_server:
92       type: org.openecomp.resource.abstract.nodes.pd_server
93       directives:
94       - substitutable
95       properties:
96         port_pd01_port_0_mac_requirements:
97           mac_count_required:
98             is_required: false
99         port_pd01_port_0_network:
100         - get_attribute:
101           - network_policy_server
102           - name
103         port_pd01_port_0_ip_requirements:
104         - ip_version: 4
105           ip_count_required:
106             is_required: false
107           floating_ip_count_required:
108             is_required: false
109         compute_pd_server_availability_zone:
110         - get_input: availabilityzone_name
111         compute_pd_server_name:
112         - get_input:
113           - pd_server_names
114           - 0
115         vm_flavor_name:
116           get_attribute:
117           - network_policy_server
118           - name
119         vm_image_name:
120           get_input: pd_image_name
121         port_pd01_port_1_network_role_tag: oam
122         port_pd01_port_1_network:
123         - get_input: oam_net_name
124         compute_pd_server_user_data_format:
125         - RAW
126         port_pd01_port_1_ip_requirements:
127         - ip_version: 4
128           ip_count_required:
129             is_required: false
130           floating_ip_count_required:
131             is_required: false
132         port_pd01_port_1_mac_requirements:
133           mac_count_required:
134             is_required: false
135         service_template_filter:
136           substitute_service_template: Nested_pd_serverServiceTemplate.yaml
137           count: 1
138         index_value:
139           get_property:
140           - SELF
141           - service_template_filter
142           - index_value
143     network_policy_server:
144       type: org.openecomp.resource.vfc.rules.nodes.heat.network.contrail.NetworkRules
145       properties:
146         name:
147           get_input: dummy_net_name_1
148   groups:
149     hot-mog-0108-bs1271_group:
150       type: org.openecomp.groups.heat.HeatStack
151       properties:
152         heat_file: ../Artifacts/hot-mog-0108-bs1271.yml
153         description: heat template that creates MOG stack
154       members:
155       - network_policy_server
156       - abstract_pd_server