push addional code
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / heat / resources / OS_Neutron_Net / expectedoutputfiles / MainServiceTemplate.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: Main
4 imports:
5   ContrailComputeGlobalTypes:
6     file: ContrailComputeGlobalTypesServiceTemplate.yaml
7   CinderVolumeGlobalTypes:
8     file: CinderVolumeGlobalTypesServiceTemplate.yaml
9   ContrailVirtualNetworkGlobalType:
10     file: ContrailVirtualNetworkGlobalTypeServiceTemplate.yaml
11   AbstractSubstituteGlobalTypes:
12     file: AbstractSubstituteGlobalTypesServiceTemplate.yaml
13   ContrailPortGlobalTypes:
14     file: ContrailPortGlobalTypesServiceTemplate.yaml
15   NeutronPortGlobalTypes:
16     file: NeutronPortGlobalTypesServiceTemplate.yaml
17   NeutronNetGlobalTypes:
18     file: NeutronNetGlobalTypesServiceTemplate.yaml
19   CommonGlobalTypes:
20     file: CommonGlobalTypesServiceTemplate.yaml
21   ContrailAbstractSubstituteGlobalTypes:
22     file: ContrailAbstractSubstituteGlobalTypesServiceTemplate.yaml
23   ContrailNetworkRuleGlobalType:
24     file: ContrailNetworkRuleGlobalTypeServiceTemplate.yaml
25   NeutronSecurityRulesGlobalTypes:
26     file: NeutronSecurityRulesGlobalTypesServiceTemplate.yaml
27   NovaServerGlobalTypes:
28     file: NovaServerGlobalTypesServiceTemplate.yaml
29   ContrailV2VirtualMachineInterfaceGlobalType:
30     file: ContrailV2VirtualMachineInterfaceGlobalTypeServiceTemplate.yaml
31 topology_template:
32   inputs:
33     param_number:
34       hidden: false
35       immutable: false
36       type: float
37       description: param number - float
38     jsa_cidr:
39       hidden: false
40       immutable: false
41       type: string
42       description: CIDR of jsa log network
43       default: 107.243.7.128/26
44     param_string:
45       hidden: false
46       immutable: false
47       type: string
48       description: param String - string
49     param_json:
50       hidden: false
51       immutable: false
52       type: json
53       description: param json - map<String>
54     param_comma_delimited_list:
55       hidden: false
56       immutable: false
57       type: list
58       description: param comma_delimited_list - List
59       entry_schema:
60         type: string
61     user_name:
62       label: User Name
63       hidden: true
64       immutable: false
65       type: string
66       description: User name to be configured for the application
67       constraints:
68       - max_length: 8
69       - min_length: 6
70       - pattern: '[A-Z]+[a-zA-Z0-9]*'
71       - in_range:
72         - 0
73         - 10
74     param_boolean:
75       hidden: false
76       immutable: false
77       type: boolean
78       description: param boolean - boolean
79     instance_type:
80       label: Instance Type
81       hidden: false
82       immutable: false
83       type: string
84       description: Instance type for compute instances
85       constraints:
86       - valid_values:
87         - m1.small
88         - m1.medium
89         - m1.large
90     jsa_net_name:
91       hidden: false
92       immutable: false
93       type: string
94       description: network name of jsa log network
95       default: jsa_log_net_0
96   node_templates:
97     jsa_net:
98       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
99       properties:
100         shared: true
101         network_name:
102           get_input: jsa_net_name
103         subnets:
104           jsa_subnet:
105             cidr:
106               get_input: jsa_cidr
107     jsa_net_test_get_attribute_2_params:
108       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
109       properties:
110         dhcp_agent_ids:
111         - '1000'
112         - '1001'
113         - '1002'
114         tenant_id: 23456
115         port_security_enabled: true
116         shared: true
117         admin_state_up: false
118         qos_policy: full
119         network_name:
120           get_attribute:
121           - jsa_net
122           - network_name
123         value_specs:
124           key1: spec1
125     jsa_net_test_get_attribute_3_params:
126       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
127       properties:
128         dhcp_agent_ids:
129         - '1000'
130         - '1001'
131         - '1002'
132         tenant_id: 23456
133         port_security_enabled: true
134         shared: true
135         admin_state_up: false
136         qos_policy: full
137         network_name:
138           get_attribute:
139           - jsa_net
140           - network_name
141           - 0
142         value_specs:
143           key1: spec1
144     jsa_net_test_get_attribute_4_params:
145       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
146       properties:
147         dhcp_agent_ids:
148         - '1000'
149         - '1001'
150         - '1002'
151         tenant_id: 23456
152         port_security_enabled: true
153         shared: true
154         admin_state_up: false
155         qos_policy: full
156         network_name:
157           get_attribute:
158           - jsa_net
159           - network_name
160           - 0
161           - a1
162         value_specs:
163           key1: spec1
164     jsa_net_test_get_attribute_5_params:
165       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
166       properties:
167         dhcp_agent_ids:
168         - '1000'
169         - '1001'
170         - '1002'
171         tenant_id: 23456
172         port_security_enabled: true
173         shared: true
174         admin_state_up: false
175         qos_policy: full
176         network_name:
177           get_attribute:
178           - jsa_net
179           - network_name
180           - 0
181           - a1
182           - a2
183         value_specs:
184           key1: spec1
185     jsa_net_test_full_attribute:
186       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
187       properties:
188         dhcp_agent_ids:
189         - '1000'
190         - '1001'
191         - '1002'
192         tenant_id: 23456
193         port_security_enabled: true
194         shared: true
195         admin_state_up: false
196         qos_policy: full
197         network_name:
198           get_input: jsa_net_name
199         subnets:
200           jsa_net_test_full_attribute_subnet:
201             cidr:
202               get_input: jsa_cidr
203         value_specs:
204           key1: spec1
205           key2: spec2
206   groups:
207     ep-jsa_net:
208       type: org.openecomp.groups.heat.HeatStack
209       properties:
210         heat_file: ../Artifacts/ep-jsa_net.yaml
211         description: |
212           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
213       members:
214       - jsa_net
215       - jsa_net_test_get_attribute_2_params
216       - jsa_net_test_get_attribute_3_params
217       - jsa_net_test_get_attribute_4_params
218       - jsa_net_test_get_attribute_5_params
219       - jsa_net_test_full_attribute