VLAN tagging - VFC Instance Group
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / fulltest / subinterface / vlantagging / vfcInstanceGroup / twoSubInterfaceNetworkRoleAndTwoAbstractNodes / in / main.yml
1 heat_template_version: 2013-05-23
2
3 description: >
4   Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
5
6 parameters:
7   aap_address_mode:
8     description: "Address mode for the vDBE cluster IP"
9     type: string
10   control_int_net_forwarding_mode:
11     description: "forwarding mode of the control virtual network"
12     type: string
13   control_int_net_rpf:
14     description: "Reverse Path Filtering enable or disable for the control virtual network"
15     type: string
16   control_int_net_shared:
17     description: "control virtual network shared"
18     type: boolean
19   control_int_net_flood_unknown_unicast:
20     description: "forwarding mode of the control virtual network"
21     type: boolean
22   oam_net_name:
23     description: "Name of NSDNet network from which the management IP addresses will be allocated"
24     type: string
25   untrusted_net_name:
26     description: "Name of public untrusted network into which this vDBE HA cluster is deployed"
27     type: string
28   untrusted_num_vn:
29     constraints:
30       -
31         range:
32           max: 77
33           min: 1
34     description: "Number of vDBE subinterface virtual Networks"
35     type: number
36   untrusted_vlan_tags:
37     description: "List of subinterface vlan tags"
38     type: comma_delimited_list
39   untrusted_vn_networks:
40     description: "List of subinterface virtual networks"
41     type: comma_delimited_list
42   vdbe_aap_sec_untrusted_ip_prefix:
43     description: "ip prefix for secondary vDBE VM aap on the VAN untrusted network"
44     type: string
45   vdbe_aap_sec_untrusted_ip_prefix_len:
46     description: "ip prefix length for the secondary DBE VM aap on the VAN untrusted network"
47     type: string
48   vdbe_aap_untrusted_ip_prefix:
49     description: "ip prefix for primary vDBE VM on the VAN untrusted network"
50     type: string
51   vdbe_aap_untrusted_ip_prefix_len:
52     description: "ip prefix length for the primary vDBE VM on the VAN untrusted network"
53     type: string
54   vdbe_aap_untrusted_v6_ip_prefix:
55     description: "ipv6 prefix for the primary vDBE VM on the VAN untrusted network"
56     type: string
57   vdbe_aap_untrusted_v6_ip_prefix_len:
58     description: "ipv6 prefix length for the primary vDBE VM on the VAN untrusted network"
59     type: string
60   vdbe_device_name:
61     description: "VDBE device Name for this vdbe VNF"
62     type: string
63   vdbe_hw_untr_mac_1:
64     description: "Secondary MAC address of the secondary vDBE VM on the VAN untrusted network"
65     type: string
66   vdbe_name_1:
67     description: "VM Name for this vdbe node 1"
68     type: string
69   vdbe_untrusted_ip_1:
70     description: "IPV4 address of the secondary vDBE VM on the VAN untrusted network"
71     type: string
72   vdbe_untrusted_v6_ip_1:
73     description: "IPV6 address of the secondary vDBE VM on the VAN untrusted network"
74     type: string
75   vdbe_untrusted_vmac_address:
76     description: "Virtual MAC of the primary vDBE VM on the VAN untrusted network"
77     type: string
78   vdbe_flavor_name:
79     description: "Flavor to use for vDBE"
80     type: string
81   vdbe_image_name:
82     description: "Image to use for vDBE"
83     type: string
84   vnf_id:
85     description: "Unique ID for this VF inst"
86     type: string
87   vnf_name:
88     description: "Unique name for this VF instance"
89     type: string
90   vf_module_id:
91     description: "Unique ID for this VF module inst"
92     type: string
93   availability_zone_1:
94     description: "The availability zone of secondary node1 vDBE vm in the local HA pair."
95     type: string
96   counter:
97     description: "Counter."
98     type: number
99 resources:
100   vdbe_node_1:
101     type: OS::Nova::Server
102     properties:
103       availability_zone:
104         get_param: availability_zone_1
105       flavor:
106         get_param: vdbe_flavor_name
107       image:
108         get_param: vdbe_image_name
109       metadata:
110         vf_module_id:
111           get_param: vf_module_id
112         vnf_id:
113           get_param: vnf_id
114         vnf_name:
115           get_param: vnf_name
116       name:
117         get_param: vdbe_name_1
118       networks:
119         - port: {get_resource: vdbe_1_untr_port_1}
120   vdbe_node_2:
121     type: OS::Nova::Server
122     properties:
123       availability_zone:
124         get_param: availability_zone_1
125       flavor:
126         get_param: vdbe_flavor_name
127       image:
128         get_param: vdbe_image_name
129       metadata:
130         vf_module_id:
131           get_param: vf_module_id
132         vnf_id:
133           get_param: vnf_id
134         vnf_name:
135           get_param: vnf_name
136       name:
137         get_param: vdbe_name_1
138       networks:
139         - port: {get_resource: vdbe_2_untr_port_2}
140   vdbe_1_untr_port_1:
141     type: OS::Neutron::Port
142     properties:
143       name:
144         str_replace:
145           params:
146             DBE:
147               get_param: vdbe_device_name
148             VM_NAME:
149               get_param: vdbe_name_1
150           template: VM_NAMEDBE001p1n004
151
152   vdbe_2_untr_port_2:
153     type: OS::Neutron::Port
154     properties:
155       name:
156         str_replace:
157           params:
158             DBE:
159               get_param: vdbe_device_name
160             VM_NAME:
161               get_param: vdbe_name_1
162           template: VM_NAMEDBE001p1n004
163
164   vdbe_untr_1_subports:
165     type: OS::Heat::ResourceGroup
166     properties:
167       count:
168         get_param: untrusted_num_vn
169       resource_def:
170         type: nested1.yml
171         properties:
172           aap_address_mode:
173             get_param: aap_address_mode
174           aap_sec_untrusted_ip_prefix:
175             get_param: vdbe_aap_sec_untrusted_ip_prefix
176           aap_sec_untrusted_ip_prefix_len:
177             get_param: vdbe_aap_sec_untrusted_ip_prefix_len
178           aap_untrusted_ip_prefix:
179             get_param: vdbe_aap_untrusted_ip_prefix
180           aap_untrusted_ip_prefix_len:
181             get_param: vdbe_aap_untrusted_ip_prefix_len
182           aap_untrusted_v6_ip_prefix:
183             get_param: vdbe_aap_untrusted_v6_ip_prefix
184           aap_untrusted_v6_ip_prefix_len:
185             get_param: vdbe_aap_untrusted_v6_ip_prefix_len
186           counter: "%index%"
187           ip_address:
188             get_param: vdbe_untrusted_ip_1
189           ip_v6_address:
190             get_param: vdbe_untrusted_v6_ip_1
191           mac_address:
192             get_param: vdbe_hw_untr_mac_1
193           parent_interface:
194             get_resource: vdbe_1_untr_port_1
195           subinterfaces_name_prefix:
196             str_replace:
197               params:
198                 DBE:
199                   get_param: vdbe_device_name
200                 VM_NAME:
201                   get_param: vdbe_name_1
202               template: VM_NAMEDBE001p1n004
203           vlan_tag_list:
204             get_param: untrusted_vlan_tags
205           vmac_address:
206             get_param: vdbe_untrusted_vmac_address
207           vn_network_list:
208              get_param: untrusted_vn_networks
209   vdbe_untr_2_subports:
210     type: OS::Heat::ResourceGroup
211     properties:
212       count: 5
213       resource_def:
214         type: nested2.yml
215         properties:
216           aap_address_mode:
217             get_param: aap_address_mode
218           aap_sec_untrusted_ip_prefix:
219             get_param: vdbe_aap_sec_untrusted_ip_prefix
220           aap_sec_untrusted_ip_prefix_len:
221             get_param: vdbe_aap_sec_untrusted_ip_prefix_len
222           aap_untrusted_ip_prefix:
223             get_param: vdbe_aap_untrusted_ip_prefix
224           aap_untrusted_ip_prefix_len:
225             get_param: vdbe_aap_untrusted_ip_prefix_len
226           aap_untrusted_v6_ip_prefix:
227             get_param: vdbe_aap_untrusted_v6_ip_prefix
228           aap_untrusted_v6_ip_prefix_len:
229             get_param: vdbe_aap_untrusted_v6_ip_prefix_len
230           counter:
231             get_param: counter
232           ip_address:
233             get_param: vdbe_untrusted_ip_1
234           ip_v6_address:
235             get_param: vdbe_untrusted_v6_ip_1
236           mac_address:
237             get_param: vdbe_hw_untr_mac_1
238           parent_interface:
239             get_resource: vdbe_2_untr_port_2
240           subinterfaces_name_prefix:
241             str_replace:
242               params:
243                 DBE:
244                   get_param: vdbe_device_name
245                 VM_NAME:
246                   get_param: vdbe_name_1
247               template: VM_NAMEDBE001p1n004
248           vlan_tag_list:
249             get_param: untrusted_vlan_tags
250           vmac_address:
251             get_param: vdbe_untrusted_vmac_address
252           vn_network_list:
253              get_param: untrusted_vn_networks
254   control_int_net:
255     type: OS::ContrailV2::VirtualNetwork
256     properties:
257       flood_unknown_unicast:
258         get_param: control_int_net_flood_unknown_unicast
259       is_shared:
260         get_param: control_int_net_shared
261       name:
262         str_replace:
263           params:
264             VNF_NAME:
265               get_param: vnf_name
266           template: VNF_NAME_control_net
267       virtual_network_properties:
268         virtual_network_properties_forwarding_mode:
269           get_param: control_int_net_forwarding_mode
270         virtual_network_properties_rpf:
271           get_param: control_int_net_rpf