push addional code
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / neutron_security_group_translation / 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 node_types:
32   org.openecomp.resource.vfc.nodes.heat.MASTER:
33     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
34 topology_template:
35   inputs:
36     MASTER_image_name:
37       hidden: false
38       immutable: false
39       type: string
40       description: JSA MASTER instance image name
41     MASTER_names:
42       hidden: false
43       immutable: false
44       type: string
45       description: JSA MASTER instance name
46     security_group_name:
47       hidden: false
48       immutable: false
49       type: string
50       description: security group name of JSA
51     MASTER_flavor_name:
52       hidden: false
53       immutable: false
54       type: string
55       description: the flavor name of JSA MASTER instance
56     oam_net_name:
57       hidden: false
58       immutable: false
59       type: string
60       description: network name of OAM network
61   node_templates:
62     jsa_security_group:
63       type: org.openecomp.resource.vfc.rules.nodes.heat.network.neutron.SecurityRules
64       properties:
65         name:
66           get_input: security_group_name
67         description: ems security group
68         rules:
69         - protocol: tcp
70           ethertype: IPv4
71           port_range_max: 65535
72           remote_ip_prefix: 0.0.0.0/0
73           direction: egress
74           port_range_min: 1
75         - protocol: udp
76           ethertype: IPv4
77           port_range_max: 65535
78           remote_ip_prefix: 0.0.0.0/0
79           direction: egress
80           port_range_min: 1
81         - protocol: icmp
82           ethertype: IPv4
83           remote_ip_prefix: 0.0.0.0/0
84           direction: egress
85         - protocol: tcp
86           ethertype: IPv6
87           port_range_max: 65535
88           remote_ip_prefix: ::/0
89           direction: egress
90           port_range_min: 1
91         - protocol: udp
92           ethertype: IPv6
93           port_range_max: 65535
94           remote_ip_prefix: ::/0
95           direction: egress
96           port_range_min: 1
97         - protocol: icmp
98           ethertype: IPv6
99           remote_ip_prefix: ::/0
100           direction: egress
101         - protocol: tcp
102           ethertype: IPv4
103           port_range_max: 65535
104           remote_ip_prefix: 0.0.0.0/0
105           direction: ingress
106           port_range_min: 1
107         - protocol: udp
108           ethertype: IPv4
109           port_range_max: 65535
110           remote_ip_prefix: 0.0.0.0/0
111           direction: ingress
112           port_range_min: 1
113         - protocol: icmp
114           ethertype: IPv4
115           remote_ip_prefix: 0.0.0.0/0
116           direction: ingress
117         - protocol: tcp
118           ethertype: IPv6
119           port_range_max: 65535
120           remote_ip_prefix: ::/0
121           direction: ingress
122           port_range_min: 1
123         - protocol: udp
124           ethertype: IPv6
125           port_range_max: 65535
126           remote_ip_prefix: ::/0
127           direction: ingress
128           port_range_min: 1
129         - protocol: icmp
130           ethertype: IPv6
131           remote_ip_prefix: ::/0
132           direction: ingress
133       requirements:
134       - port:
135           capability: tosca.capabilities.Attachment
136           node: MASTER_mgmt_port
137           relationship: org.openecomp.relationships.AttachesTo
138     MASTER_mgmt_port:
139       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
140       properties:
141         security_groups:
142         - jsa_security_group
143         network:
144           get_input: oam_net_name
145       requirements:
146       - binding:
147           capability: tosca.capabilities.network.Bindable
148           node: MASTER_instance
149           relationship: tosca.relationships.network.BindsTo
150     MASTER_instance:
151       type: org.openecomp.resource.vfc.nodes.heat.MASTER
152       properties:
153         flavor:
154           get_input: MASTER_flavor_name
155         image:
156           get_input: MASTER_image_name
157         name:
158           get_input: MASTER_names
159   groups:
160     hot_template:
161       type: org.openecomp.groups.heat.HeatStack
162       properties:
163         heat_file: ../Artifacts/hot_template.yml
164         description: |
165           Version 2.0 02-11-2016 (Authors: John Doe, user PROD)
166       members:
167       - jsa_security_group
168       - MASTER_mgmt_port
169       - MASTER_instance