d70a1844048bcddfe70bfc58dfb7d0c4f79d5a63
[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     mac_address:\r
62       hidden: false\r
63       immutable: false\r
64       type: string\r
65       description: HW MAC address to use for subinterface\r
66     vlan_tag_list:\r
67       hidden: false\r
68       immutable: false\r
69       type: list\r
70       description: List of VLAN IDs to use for subinterfaces\r
71       entry_schema:\r
72         type: string\r
73     aap_sec_untrusted_ip_prefix_len:\r
74       hidden: false\r
75       immutable: false\r
76       type: string\r
77       description: ip prefix length for the secondary DBE VM aap on the VAN untrusted network\r
78     vmac_address:\r
79       hidden: false\r
80       immutable: false\r
81       type: string\r
82       description: virtual MAC address to use for subinterface\r
83     aap_untrusted_v6_ip_prefix_len:\r
84       hidden: false\r
85       immutable: false\r
86       type: string\r
87       description: ipv6 prefix length for the primary vDBE VM on the VAN untrusted network\r
88     aap_untrusted_ip_prefix_len:\r
89       hidden: false\r
90       immutable: false\r
91       type: string\r
92       description: ip prefix length for the primary vDBE VM on the VAN untrusted network\r
93   node_templates:\r
94     vdbe_untr_x_subport:\r
95       type: org.openecomp.resource.cp.nodes.heat.network.contrailV2.VLANSubInterface\r
96       properties:\r
97         virtual_machine_interface_refs:\r
98         - get_input: parent_interface\r
99         name:\r
100           str_replace:\r
101             template: $NAME_$INDEX\r
102             params:\r
103               $NAME:\r
104                 get_input: subinterfaces_name_prefix\r
105               $INDEX:\r
106                 get_input:\r
107                 - vlan_tag_list\r
108                 - get_input: counter\r
109         virtual_network_refs:\r
110         - get_input: vn_network_list\r
111         virtual_machine_interface_properties:\r
112           sub_interface_vlan_tag:\r
113             get_input:\r
114             - vlan_tag_list\r
115             - get_input: counter\r
116         virtual_machine_interface_allowed_address_pairs:\r
117           allowed_address_pair:\r
118           - address_mode:\r
119               get_input: aap_address_mode\r
120             ip:\r
121               ip_prefix:\r
122                 get_input: aap_untrusted_ip_prefix\r
123               ip_prefix_len:\r
124                 get_input: aap_untrusted_ip_prefix_len\r
125             mac:\r
126               get_input: vmac_address\r
127           - address_mode:\r
128               get_input: aap_address_mode\r
129             ip:\r
130               ip_prefix:\r
131                 get_input: aap_sec_untrusted_ip_prefix\r
132               ip_prefix_len:\r
133                 get_input: aap_sec_untrusted_ip_prefix_len\r
134             mac:\r
135               get_input: mac_address\r
136           - address_mode:\r
137               get_input: aap_address_mode\r
138             ip:\r
139               ip_prefix:\r
140                 get_input: aap_untrusted_v6_ip_prefix\r
141               ip_prefix_len:\r
142                 get_input: aap_untrusted_v6_ip_prefix_len\r
143             mac:\r
144               get_input: vmac_address\r
145         virtual_machine_interface_mac_addresses:\r
146           mac_address:\r
147           - get_input: mac_address\r
148   groups:\r
149     nested_group:\r
150       type: org.openecomp.groups.heat.HeatStack\r
151       properties:\r
152         heat_file: ../Artifacts/nested.yml\r
153         description: cmaui server template for vMMSC\r
154       members:\r
155       - vdbe_untr_x_subport\r
156   substitution_mappings:\r
157     node_type: org.openecomp.resource.abstract.nodes.heat.subinterface.nested\r
158     capabilities:\r
159       feature_vdbe_untr_x_subport:\r
160       - vdbe_untr_x_subport\r
161       - feature\r
162     requirements:\r
163       link_vdbe_untr_x_subport:\r
164       - vdbe_untr_x_subport\r
165       - link\r
166       dependency_vdbe_untr_x_subport:\r
167       - vdbe_untr_x_subport\r
168       - dependency\r
169       binding_vdbe_untr_x_subport:\r
170       - vdbe_untr_x_subport\r
171       - binding\r