893a3affe925629ed3b243b0f55a79badc78b28e
[sdc.git] /
1 tosca_definitions_version: tosca_simple_yaml_1_0_0\r
2 metadata:\r
3   template_name: nested\r
4 imports:\r
5 - openecomp_heat_index:\r
6     file: openecomp-heat/_index.yml\r
7 - GlobalSubstitutionTypes:\r
8     file: GlobalSubstitutionTypesServiceTemplate.yaml\r
9 topology_template:\r
10   inputs:\r
11     aap_untrusted_ip_prefix:\r
12       hidden: false\r
13       immutable: false\r
14       type: string\r
15       description: ip prefix for primary vDBE VM on the VAN untrusted network\r
16     aap_sec_untrusted_ip_prefix:\r
17       hidden: false\r
18       immutable: false\r
19       type: string\r
20       description: ip prefix for secondary vDBE VM aap on the VAN untrusted network\r
21     ip_v6_address:\r
22       hidden: false\r
23       immutable: false\r
24       type: string\r
25       description: IPv6 address associated with subinterfaces\r
26     counter:\r
27       hidden: false\r
28       immutable: false\r
29       type: float\r
30       description: Index of instance among multiple instances.  Use to retrieve correct parameter for this instance when passed all parameters for all instances.\r
31     subinterfaces_name_prefix:\r
32       hidden: false\r
33       immutable: false\r
34       type: string\r
35       description: Combined with subinterface_instance_index, this is used as the name of the subinterface resource\r
36     ip_address:\r
37       hidden: false\r
38       immutable: false\r
39       type: string\r
40       description: IPv4 address associated with subinterfaces\r
41     aap_address_mode:\r
42       hidden: false\r
43       immutable: false\r
44       type: string\r
45       description: Address mode for the vDBE cluster IP\r
46     aap_untrusted_v6_ip_prefix:\r
47       hidden: false\r
48       immutable: false\r
49       type: string\r
50       description: ipv6 prefix for the primary vDBE VM on the VAN untrusted network\r
51     parent_interface:\r
52       hidden: false\r
53       immutable: false\r
54       type: string\r
55       description: Parent Contrail interface\r
56     vn_network_list:\r
57       hidden: false\r
58       immutable: false\r
59       type: string\r
60       description: List of Contrail VLAN networks to use for the subinterfaces.   The order and number of these must match the VLAN ID list\r
61     optional_property_1:\r
62       hidden: false\r
63       immutable: false\r
64       type: string\r
65       description: Optional property\r
66     optional_property_2:\r
67       hidden: false\r
68       immutable: false\r
69       type: string\r
70       description: Optional property\r
71     mac_address:\r
72       hidden: false\r
73       immutable: false\r
74       type: string\r
75       description: HW MAC address to use for subinterface\r
76     vlan_tag_list:\r
77       hidden: false\r
78       immutable: false\r
79       type: list\r
80       description: List of VLAN IDs to use for subinterfaces\r
81       entry_schema:\r
82         type: string\r
83     aap_sec_untrusted_ip_prefix_len:\r
84       hidden: false\r
85       immutable: false\r
86       type: string\r
87       description: ip prefix length for the secondary DBE VM aap on the VAN untrusted network\r
88     vmac_address:\r
89       hidden: false\r
90       immutable: false\r
91       type: string\r
92       description: virtual MAC address to use for subinterface\r
93     aap_untrusted_v6_ip_prefix_len:\r
94       hidden: false\r
95       immutable: false\r
96       type: string\r
97       description: ipv6 prefix length for the primary vDBE VM on the VAN untrusted network\r
98     aap_untrusted_ip_prefix_len:\r
99       hidden: false\r
100       immutable: false\r
101       type: string\r
102       description: ip prefix length for the primary vDBE VM on the VAN untrusted network\r
103   node_templates:\r
104     vdbe_untr_x_vlan1-Network-Role_vmi_subport:\r
105       type: org.openecomp.resource.cp.nodes.heat.network.contrailV2.VLANSubInterface\r
106       properties:\r
107         virtual_machine_interface_refs:\r
108         - get_input: parent_interface\r
109         name:\r
110           str_replace:\r
111             template: $NAME_$INDEX\r
112             params:\r
113               $NAME:\r
114                 get_input: subinterfaces_name_prefix\r
115               $INDEX:\r
116                 get_input:\r
117                 - vlan_tag_list\r
118                 - get_input: counter\r
119         virtual_network_refs:\r
120         - get_input: vn_network_list\r
121         virtual_machine_interface_properties:\r
122           sub_interface_vlan_tag:\r
123             get_input:\r
124             - vlan_tag_list\r
125             - get_input: counter\r
126         virtual_machine_interface_allowed_address_pairs:\r
127           allowed_address_pair:\r
128           - address_mode:\r
129               get_input: aap_address_mode\r
130             ip:\r
131               ip_prefix:\r
132                 get_input: aap_untrusted_ip_prefix\r
133               ip_prefix_len:\r
134                 get_input: aap_untrusted_ip_prefix_len\r
135             mac:\r
136               get_input: vmac_address\r
137           - address_mode:\r
138               get_input: aap_address_mode\r
139             ip:\r
140               ip_prefix:\r
141                 get_input: aap_sec_untrusted_ip_prefix\r
142               ip_prefix_len:\r
143                 get_input: aap_sec_untrusted_ip_prefix_len\r
144             mac:\r
145               get_input: mac_address\r
146           - address_mode:\r
147               get_input: aap_address_mode\r
148             ip:\r
149               ip_prefix:\r
150                 get_input: aap_untrusted_v6_ip_prefix\r
151               ip_prefix_len:\r
152                 get_input: aap_untrusted_v6_ip_prefix_len\r
153             mac:\r
154               get_input: vmac_address\r
155         virtual_machine_interface_mac_addresses:\r
156           mac_address:\r
157           - get_input: mac_address\r
158   groups:\r
159     nested_group:\r
160       type: org.openecomp.groups.heat.HeatStack\r
161       properties:\r
162         heat_file: ../Artifacts/nested.yml\r
163         description: cmaui server template for vMMSC\r
164       members:\r
165       - vdbe_untr_x_vlan1-Network-Role_vmi_subport\r
166   substitution_mappings:\r
167     node_type: org.openecomp.resource.abstract.nodes.heat.subinterface.nested\r
168     capabilities:\r
169       feature_vdbe_untr_x_vlan1-Network-Role_vmi_subport:\r
170       - vdbe_untr_x_vlan1-Network-Role_vmi_subport\r
171       - feature\r
172     requirements:\r
173       link_vdbe_untr_x_vlan1-Network-Role_vmi_subport:\r
174       - vdbe_untr_x_vlan1-Network-Role_vmi_subport\r
175       - link\r
176       binding_vdbe_untr_x_vlan1-Network-Role_vmi_subport:\r
177       - vdbe_untr_x_vlan1-Network-Role_vmi_subport\r
178       - binding\r
179       dependency_vdbe_untr_x_vlan1-Network-Role_vmi_subport:\r
180       - vdbe_untr_x_vlan1-Network-Role_vmi_subport\r
181       - dependency\r