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