push addional code
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / ContrailV2_translation / ContrailV2_Multi_net_single_policy_translation / inputfiles / main.yml
1 description: "cmaui server template for vMMSC"
2 heat_template_version: 2013-05-23
3 parameters: 
4   Internal1_cidr:
5     type: string
6   Internal2_cidr:
7     type: string
8   Internal1_default_gateway:
9     type: string
10   Internal2_default_gateway:
11     type: string
12   Internal1_dhcp:
13       type: string
14   Internal2_dhcp:
15     type: string
16   direction:
17     description: dummy
18     type: string
19   dst_port_end: 
20     description: dummy
21     type: string
22   dst_port_start: 
23     description: dummy
24     type: string
25   left_vn: 
26     description: dummy
27     type: string
28   left_vn_fqdn: 
29     description: dummy
30     type: string
31   network_ipam_refs_data_ipam_subnets_addr_from_start_true: 
32     description: dummy
33     type: string
34   network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_2: 
35     description: dummy
36     type: string
37   network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len_2: 
38     description: dummy
39     type: string
40   policy_name: 
41     description: dummy
42     type: string
43   protocol: 
44     description: dummy
45     type: string
46   right_vn_fqdn: 
47     description: dummy
48     type: string
49   simple_action: 
50     description: dummy
51     type: string
52   src_port_end: 
53     description: dummy
54     type: string
55   src_port_start: 
56     description: dummy
57     type: string
58   service_instance_fq_name:
59     type: string
60 resources: 
61   template_NetworkIpam_2: 
62     properties: 
63       name: 
64         get_param: left_vn
65     type: "OS::ContrailV2::NetworkIpam"
66   template_NetworkPolicy: 
67     properties: 
68       name: 
69         get_param: policy_name
70       network_policy_entries: 
71         network_policy_entries_policy_rule: 
72           - 
73             network_policy_entries_policy_rule_action_list: 
74               network_policy_entries_policy_rule_action_list_apply_service: 
75                 - 
76                   get_param: service_instance_fq_name
77               network_policy_entries_policy_rule_action_list_simple_action: 
78                 get_param: simple_action
79             network_policy_entries_policy_rule_direction: 
80               get_param: direction
81             network_policy_entries_policy_rule_dst_addresses: 
82               - 
83                 network_policy_entries_policy_rule_dst_addresses_virtual_network: 
84                   get_param: right_vn_fqdn
85             network_policy_entries_policy_rule_dst_ports: 
86               - 
87                 network_policy_entries_policy_rule_dst_ports_end_port: 
88                   get_param: dst_port_end
89                 network_policy_entries_policy_rule_dst_ports_start_port: 
90                   get_param: dst_port_start
91             network_policy_entries_policy_rule_protocol: 
92               get_param: protocol
93             network_policy_entries_policy_rule_src_addresses: 
94               - 
95                 network_policy_entries_policy_rule_src_addresses_virtual_network: 
96                   get_param: left_vn_fqdn
97             network_policy_entries_policy_rule_src_ports: 
98               - 
99                 network_policy_entries_policy_rule_src_ports_end_port: 
100                   get_param: src_port_end
101                 network_policy_entries_policy_rule_src_ports_start_port: 
102                   get_param: src_port_start
103     type: "OS::ContrailV2::NetworkPolicy"
104   template_VirtualNetwork_1:
105     depends_on:
106       - template_NetworkIpam_2
107       - template_NetworkPolicy
108     properties:
109       name:
110         get_param: left_vn
111       network_ipam_refs:
112         -
113           get_resource: template_NetworkIpam_2
114       network_ipam_refs_data:
115         -
116           network_ipam_refs_data_ipam_subnets:
117             -
118               network_ipam_refs_data_ipam_subnets_addr_from_start:
119                 get_param: network_ipam_refs_data_ipam_subnets_addr_from_start_true
120               network_ipam_refs_data_ipam_subnets_subnet:
121                 network_ipam_refs_data_ipam_subnets_subnet_ip_prefix:
122                   get_param: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_2
123                 network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len:
124                   get_param: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len_2
125       network_policy_refs: [ { list_join: [':', { get_attr: [ template_NetworkPolicy, fq_name ] } ] } ]
126       network_policy_refs_data:
127         -
128           network_policy_refs_data_sequence:
129             network_policy_refs_data_sequence_major: 0
130             network_policy_refs_data_sequence_minor: 0
131     type: "OS::ContrailV2::VirtualNetwork"
132   template_VirtualNetwork_2:
133     depends_on:
134       - template_NetworkIpam_2
135       - template_NetworkPolicy
136     properties:
137       name:
138         get_param: left_vn
139       network_ipam_refs:
140         -
141           get_resource: template_NetworkIpam_2
142       network_ipam_refs_data:
143         -
144           network_ipam_refs_data_ipam_subnets:
145             -
146               network_ipam_refs_data_ipam_subnets_addr_from_start:
147                 get_param: network_ipam_refs_data_ipam_subnets_addr_from_start_true
148               network_ipam_refs_data_ipam_subnets_subnet:
149                 network_ipam_refs_data_ipam_subnets_subnet_ip_prefix:
150                   get_param: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_2
151                 network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len:
152                   get_param: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len_2
153       network_policy_refs: [  { get_attr: [ template_NetworkPolicy, fq_name ] } ]
154       network_policy_refs_data:
155         -
156           network_policy_refs_data_sequence:
157             network_policy_refs_data_sequence_major: 0
158             network_policy_refs_data_sequence_minor: 0
159     type: "OS::ContrailV2::VirtualNetwork"
160   template_VirtualNetwork_3:
161     depends_on:
162       - template_NetworkIpam_2
163       - template_NetworkPolicy
164     properties:
165       name:
166         get_param: left_vn
167       network_ipam_refs:
168         -
169           get_resource: template_NetworkIpam_2
170       network_ipam_refs_data:
171         -
172           network_ipam_refs_data_ipam_subnets:
173             -
174               network_ipam_refs_data_ipam_subnets_addr_from_start:
175                 get_param: network_ipam_refs_data_ipam_subnets_addr_from_start_true
176               network_ipam_refs_data_ipam_subnets_subnet:
177                 network_ipam_refs_data_ipam_subnets_subnet_ip_prefix:
178                   get_param: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_2
179                 network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len:
180                   get_param: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len_2
181       network_policy_refs: [  { get_resource: template_NetworkPolicy } ]
182       network_policy_refs_data:
183         -
184           network_policy_refs_data_sequence:
185             network_policy_refs_data_sequence_major: 0
186             network_policy_refs_data_sequence_minor: 0
187     type: "OS::ContrailV2::VirtualNetwork"
188
189   Internal-subnet-1:
190       type: OS::Neutron::Subnet
191       properties:
192         network_id: { get_resource: template_VirtualNetwork_2 }
193         cidr: { get_param: Internal1_cidr }
194         gateway_ip: { get_param: Internal1_default_gateway }
195         enable_dhcp: { get_param: Internal1_dhcp }
196
197   Internal-subnet-2:
198       type: OS::Neutron::Subnet
199       properties:
200         network_id: { get_resource: template_VirtualNetwork_2 }
201         cidr: { get_param: Internal2_cidr }
202         gateway_ip: { get_param: Internal2_default_gateway }
203         enable_dhcp: { get_param: Internal2_dhcp }