[SDC-29] Amdocs OnBoard 1707 initial commit.
[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 - openecomp_heat_index:
6     file: openecomp-heat/_index.yml
7 node_types:
8   org.openecomp.resource.vfc.nodes.heat.MASTER:
9     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
10 topology_template:
11   inputs:
12     MASTER_image_name:
13       hidden: false
14       immutable: false
15       type: string
16       description: JSA MASTER instance image name
17     MASTER_names:
18       hidden: false
19       immutable: false
20       type: string
21       description: JSA MASTER instance name
22     security_group_name:
23       hidden: false
24       immutable: false
25       type: string
26       description: security group name of JSA
27     MASTER_flavor_name:
28       hidden: false
29       immutable: false
30       type: string
31       description: the flavor name of JSA MASTER instance
32     oam_net_name:
33       hidden: false
34       immutable: false
35       type: string
36       description: network name of OAM network
37   node_templates:
38     jsa_security_group:
39       type: org.openecomp.resource.vfc.rules.nodes.heat.network.neutron.SecurityRules
40       properties:
41         name:
42           get_input: security_group_name
43         description: ems security group
44         rules:
45         - protocol: tcp
46           ethertype: IPv4
47           port_range_max: 65535
48           remote_ip_prefix: 0.0.0.0/0
49           direction: egress
50           port_range_min: 1
51         - protocol: udp
52           ethertype: IPv4
53           port_range_max: 65535
54           remote_ip_prefix: 0.0.0.0/0
55           direction: egress
56           port_range_min: 1
57         - protocol: icmp
58           ethertype: IPv4
59           remote_ip_prefix: 0.0.0.0/0
60           direction: egress
61         - protocol: tcp
62           ethertype: IPv6
63           port_range_max: 65535
64           remote_ip_prefix: ::/0
65           direction: egress
66           port_range_min: 1
67         - protocol: udp
68           ethertype: IPv6
69           port_range_max: 65535
70           remote_ip_prefix: ::/0
71           direction: egress
72           port_range_min: 1
73         - protocol: icmp
74           ethertype: IPv6
75           remote_ip_prefix: ::/0
76           direction: egress
77         - protocol: tcp
78           ethertype: IPv4
79           port_range_max: 65535
80           remote_ip_prefix: 0.0.0.0/0
81           direction: ingress
82           port_range_min: 1
83         - protocol: udp
84           ethertype: IPv4
85           port_range_max: 65535
86           remote_ip_prefix: 0.0.0.0/0
87           direction: ingress
88           port_range_min: 1
89         - protocol: icmp
90           ethertype: IPv4
91           remote_ip_prefix: 0.0.0.0/0
92           direction: ingress
93         - protocol: tcp
94           ethertype: IPv6
95           port_range_max: 65535
96           remote_ip_prefix: ::/0
97           direction: ingress
98           port_range_min: 1
99         - protocol: udp
100           ethertype: IPv6
101           port_range_max: 65535
102           remote_ip_prefix: ::/0
103           direction: ingress
104           port_range_min: 1
105         - protocol: icmp
106           ethertype: IPv6
107           remote_ip_prefix: ::/0
108           direction: ingress
109       requirements:
110       - port:
111           capability: tosca.capabilities.Attachment
112           node: MASTER_mgmt_port
113           relationship: org.openecomp.relationships.AttachesTo
114     MASTER_mgmt_port:
115       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
116       properties:
117         ip_requirements:
118         - ip_version: 4
119           ip_count_required:
120             is_required: false
121           floating_ip_count_required:
122             is_required: false
123         security_groups:
124         - jsa_security_group
125         mac_requirements:
126           mac_count_required:
127             is_required: false
128         network_role_tag: oam
129         network:
130           get_input: oam_net_name
131       requirements:
132       - binding:
133           capability: tosca.capabilities.network.Bindable
134           node: MASTER_instance
135           relationship: tosca.relationships.network.BindsTo
136     MASTER_instance:
137       type: org.openecomp.resource.vfc.nodes.heat.MASTER
138       properties:
139         flavor:
140           get_input: MASTER_flavor_name
141         image:
142           get_input: MASTER_image_name
143         name:
144           get_input: MASTER_names
145   groups:
146     hot_template_group:
147       type: org.openecomp.groups.heat.HeatStack
148       properties:
149         heat_file: ../Artifacts/hot_template.yml
150         description: |
151           Version 2.0 02-11-2016 (Authors: John Doe, user PROD)
152       members:
153       - jsa_security_group
154       - MASTER_mgmt_port
155       - MASTER_instance