d31efa8e4cef1a1b7e0c082868fbd74076674a90
[sdc.git] /
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 topology_template:
8   inputs:
9     left_vn_fqdn:
10       hidden: false
11       immutable: false
12       type: string
13       description: dummy
14     Internal1_cidr:
15       hidden: false
16       immutable: false
17       type: string
18     src_port_start:
19       hidden: false
20       immutable: false
21       type: string
22       description: dummy
23     Internal1_default_gateway:
24       hidden: false
25       immutable: false
26       type: string
27     Internal1_dhcp:
28       hidden: false
29       immutable: false
30       type: string
31     src_port_end:
32       hidden: false
33       immutable: false
34       type: string
35       description: dummy
36     policy_name:
37       hidden: false
38       immutable: false
39       type: string
40       description: dummy
41     dst_port_end:
42       hidden: false
43       immutable: false
44       type: string
45       description: dummy
46     simple_action:
47       hidden: false
48       immutable: false
49       type: string
50       description: dummy
51     service_instance_fq_name:
52       hidden: false
53       immutable: false
54       type: string
55     Internal2_cidr:
56       hidden: false
57       immutable: false
58       type: string
59     protocol:
60       hidden: false
61       immutable: false
62       type: string
63       description: dummy
64     Internal2_dhcp:
65       hidden: false
66       immutable: false
67       type: string
68     dst_port_start:
69       hidden: false
70       immutable: false
71       type: string
72       description: dummy
73     network_ipam_refs_data_ipam_subnets_addr_from_start_true:
74       hidden: false
75       immutable: false
76       type: string
77       description: dummy
78     Internal2_default_gateway:
79       hidden: false
80       immutable: false
81       type: string
82     right_vn_fqdn:
83       hidden: false
84       immutable: false
85       type: string
86       description: dummy
87     network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len_2:
88       hidden: false
89       immutable: false
90       type: string
91       description: dummy
92     left_vn:
93       hidden: false
94       immutable: false
95       type: string
96       description: dummy
97     direction:
98       hidden: false
99       immutable: false
100       type: string
101       description: dummy
102     network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_2:
103       hidden: false
104       immutable: false
105       type: string
106       description: dummy
107   node_templates:
108     template_NetworkPolicy:
109       type: org.openecomp.resource.vfc.rules.nodes.heat.network.contrailV2.NetworkRules
110       properties:
111         name:
112           get_input: policy_name
113         network_policy_entries:
114           network_policy_entries_policy_rule:
115           - network_policy_entries_policy_rule_dst_addresses:
116             - network_policy_entries_policy_rule_dst_addresses_virtual_network:
117                 get_input: right_vn_fqdn
118             network_policy_entries_policy_rule_dst_ports:
119             - network_policy_entries_policy_rule_dst_ports_start_port:
120                 get_input: dst_port_start
121               network_policy_entries_policy_rule_dst_ports_end_port:
122                 get_input: dst_port_end
123             network_policy_entries_policy_rule_protocol:
124               get_input: protocol
125             network_policy_entries_policy_rule_src_addresses:
126             - network_policy_entries_policy_rule_src_addresses_virtual_network:
127                 get_input: left_vn_fqdn
128             network_policy_entries_policy_rule_direction:
129               get_input: direction
130             network_policy_entries_policy_rule_src_ports:
131             - network_policy_entries_policy_rule_src_ports_start_port:
132                 get_input: src_port_start
133               network_policy_entries_policy_rule_src_ports_end_port:
134                 get_input: src_port_end
135             network_policy_entries_policy_rule_action_list:
136               network_policy_entries_policy_rule_action_list_simple_action:
137                 get_input: simple_action
138               network_policy_entries_policy_rule_action_list_apply_service:
139               - get_input: service_instance_fq_name
140       requirements:
141       - network:
142           capability: tosca.capabilities.Attachment
143           node: template_VirtualNetwork_2
144           relationship: org.openecomp.relationships.AttachesTo
145     template_VirtualNetwork_2:
146       type: org.openecomp.resource.vl.nodes.heat.network.contrailV2.VirtualNetwork
147       properties:
148         dhcp_enabled:
149           get_input: Internal1_dhcp
150         network_ipam_refs_data:
151         - network_ipam_refs_data_ipam_subnets:
152           - network_ipam_refs_data_ipam_subnets_subnet:
153               network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len:
154                 get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len_2
155               network_ipam_refs_data_ipam_subnets_subnet_ip_prefix:
156                 get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_2
157             network_ipam_refs_data_ipam_subnets_addr_from_start:
158               get_input: network_ipam_refs_data_ipam_subnets_addr_from_start_true
159         network_policy_refs_data:
160         - network_policy_refs_data_sequence:
161             network_policy_refs_data_sequence_major: 0
162             network_policy_refs_data_sequence_minor: 0
163         network_name:
164           get_input: left_vn
165         network_ipam_refs:
166         - UNSUPPORTED_RESOURCE_template_NetworkIpam_2
167         network_policy_refs:
168         - list_join:
169           - ':'
170           - get_attribute:
171             - template_NetworkPolicy
172             - fq_name
173         subnets:
174           Internal-subnet-1:
175             enable_dhcp:
176               get_input: Internal1_dhcp
177             cidr:
178               get_input: Internal1_cidr
179             gateway_ip:
180               get_input: Internal1_default_gateway
181           Internal-subnet-2:
182             enable_dhcp:
183               get_input: Internal2_dhcp
184             cidr:
185               get_input: Internal2_cidr
186             gateway_ip:
187               get_input: Internal2_default_gateway
188       requirements:
189       - dependency:
190           capability: tosca.capabilities.Node
191           node: template_NetworkPolicy
192           relationship: tosca.relationships.DependsOn
193   groups:
194     main_group:
195       type: org.openecomp.groups.heat.HeatStack
196       properties:
197         heat_file: ../Artifacts/main.yml
198         description: cmaui server template for vMMSC
199       members:
200       - template_NetworkPolicy
201       - template_VirtualNetwork_2