VLAN tagging - VFC Instance Group
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / subInterfaceToInterfaceConnection / inoutattr / inputfiles / nested.yml
1 heat_template_version: 2013-05-23
2
3 description: cmaui server template for vMMSC
4
5 parameters:
6   aap_address_mode:
7     description: "Address mode for the vDBE cluster IP"
8     type: string
9   aap_sec_untrusted_ip_prefix:
10     description: "ip prefix for secondary vDBE VM aap on the VAN untrusted network"
11     type: string
12   aap_sec_untrusted_ip_prefix_len:
13     description: "ip prefix length for the secondary DBE VM aap on the VAN untrusted network"
14     type: string
15   aap_untrusted_ip_prefix:
16     description: "ip prefix for primary vDBE VM on the VAN untrusted network"
17     type: string
18   aap_untrusted_ip_prefix_len:
19     description: "ip prefix length for the primary vDBE VM on the VAN untrusted network"
20     type: string
21   aap_untrusted_v6_ip_prefix:
22     description: "ipv6 prefix for the primary vDBE VM on the VAN untrusted network"
23     type: string
24   aap_untrusted_v6_ip_prefix_len:
25     description: "ipv6 prefix length for the primary vDBE VM on the VAN untrusted network"
26     type: string
27   counter:
28     description: "Index of instance among multiple instances.  Use to retrieve correct parameter for this instance when passed all parameters for all instances."
29     type: number
30   mac_address:
31     description: "HW MAC address to use for subinterface"
32     type: string
33   parent_interface:
34     description: "Parent Contrail interface"
35     type: string
36   subinterfaces_name_prefix:
37     description: "Combined with subinterface_instance_index, this is used as the name of the subinterface resource"
38     type: string
39   vlan_tag_list:
40     description: "List of VLAN IDs to use for subinterfaces"
41     type: comma_delimited_list
42   vmac_address:
43     description: "virtual MAC address to use for subinterface"
44     type: string
45   vdbe_subport_network:
46     description: "List of Contrail VLAN networks to use for the subinterfaces.   The order and number of these must match the VLAN ID list"
47     type: string
48   ip_address:
49     description: "IPv4 address associated with subinterfaces"
50     type: string
51   ip_v6_address:
52     description: "IPv6 address associated with subinterfaces"
53     type: string
54 resources:
55   vdbe_0_subint_untr_vmi_0:
56     type: OS::ContrailV2::VirtualMachineInterface
57     properties:
58       name:
59         str_replace:
60           params:
61             $INDEX:
62               get_param:
63                 - vlan_tag_list
64                 -
65                   get_param: counter
66             $NAME:
67               get_param: subinterfaces_name_prefix
68           template: $NAME_$INDEX
69       virtual_machine_interface_allowed_address_pairs:
70         virtual_machine_interface_allowed_address_pairs_allowed_address_pair:
71           -
72             virtual_machine_interface_allowed_address_pairs_allowed_address_pair_address_mode:
73               get_param: aap_address_mode
74             virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip:
75               virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip_ip_prefix:
76                 get_param: aap_untrusted_ip_prefix
77               virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip_ip_prefix_len:
78                 get_param: aap_untrusted_ip_prefix_len
79             virtual_machine_interface_allowed_address_pairs_allowed_address_pair_mac:
80               get_param: vmac_address
81           -
82             virtual_machine_interface_allowed_address_pairs_allowed_address_pair_address_mode:
83               get_param: aap_address_mode
84             virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip:
85               virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip_ip_prefix:
86                 get_param: aap_sec_untrusted_ip_prefix
87               virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip_ip_prefix_len:
88                 get_param: aap_sec_untrusted_ip_prefix_len
89             virtual_machine_interface_allowed_address_pairs_allowed_address_pair_mac:
90               get_param: mac_address
91           -
92             virtual_machine_interface_allowed_address_pairs_allowed_address_pair_address_mode:
93               get_param: aap_address_mode
94             virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip:
95               virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip_ip_prefix:
96                 get_param: aap_untrusted_v6_ip_prefix
97               virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip_ip_prefix_len:
98                 get_param: aap_untrusted_v6_ip_prefix_len
99             virtual_machine_interface_allowed_address_pairs_allowed_address_pair_mac:
100               get_param: vmac_address
101       virtual_machine_interface_mac_addresses:
102         virtual_machine_interface_mac_addresses_mac_address:
103           -
104             get_param: mac_address
105       virtual_machine_interface_properties:
106         virtual_machine_interface_properties_sub_interface_vlan_tag:
107           get_param:
108             - vlan_tag_list
109             -
110               get_param: counter
111       virtual_machine_interface_refs:
112           [{get_param: parent_interface}]
113       virtual_network_refs:
114           [{get_param: vdbe_subport_network}]