[SDC-29] Amdocs OnBoard 1707 initial commit.
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / subInterfaceToInterfaceConnection / vTSBC_AIC / expectedoutputfiles / vlan_subinterface_dualServiceTemplate.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: vlan_subinterface_dual
4 imports:
5 - CommonGlobalTypes:
6     file: CommonGlobalTypesServiceTemplate.yaml
7 - NovaServerGlobalTypes:
8     file: NovaServerGlobalTypesServiceTemplate.yaml
9 - NeutronPortGlobalTypes:
10     file: NeutronPortGlobalTypesServiceTemplate.yaml
11 - NeutronSecurityRulesGlobalTypes:
12     file: NeutronSecurityRulesGlobalTypesServiceTemplate.yaml
13 - NeutronNetGlobalTypes:
14     file: NeutronNetGlobalTypesServiceTemplate.yaml
15 - CinderVolumeGlobalTypes:
16     file: CinderVolumeGlobalTypesServiceTemplate.yaml
17 - ContrailVirtualNetworkGlobalType:
18     file: ContrailVirtualNetworkGlobalTypeServiceTemplate.yaml
19 - ContrailNetworkRuleGlobalType:
20     file: ContrailNetworkRuleGlobalTypeServiceTemplate.yaml
21 - AbstractSubstituteGlobalTypes:
22     file: AbstractSubstituteGlobalTypesServiceTemplate.yaml
23 - ContrailV2VirtualMachineInterfaceGlobalType:
24     file: ContrailV2VirtualMachineInterfaceGlobalTypeServiceTemplate.yaml
25 - ContrailComputeGlobalTypes:
26     file: ContrailComputeGlobalTypesServiceTemplate.yaml
27 - ContrailPortGlobalTypes:
28     file: ContrailPortGlobalTypesServiceTemplate.yaml
29 - ContrailAbstractSubstituteGlobalTypes:
30     file: ContrailAbstractSubstituteGlobalTypesServiceTemplate.yaml
31 - ContrailV2VirtualNetworkGlobalType:
32     file: ContrailV2VirtualNetworkGlobalTypeServiceTemplate.yaml
33 - ContrailV2NetworkRuleGlobalType:
34     file: ContrailV2NetworkRuleGlobalTypeServiceTemplate.yaml
35 - ContrailV2VLANSubInterfaceGlobalType:
36     file: ContrailV2VLANSubInterfaceGlobalTypeServiceTemplate.yaml
37 - GlobalSubstitutionTypes:
38     file: GlobalSubstitutionTypesServiceTemplate.yaml
39 topology_template:
40   inputs:
41     vlan_ids:
42       hidden: false
43       immutable: false
44       type: list
45       description: List of VLAN IDs to use for subinterfaces
46       entry_schema:
47         type: string
48     parent_interface:
49       hidden: false
50       immutable: false
51       type: string
52       description: Parent Contrail interface
53     virtual_ipv6_address:
54       hidden: false
55       immutable: false
56       type: string
57       description: virtual IPv6 address associated with subinterfaces
58     virtual_ip_address:
59       hidden: false
60       immutable: false
61       type: string
62       description: virtual IPv4 address associated with subinterfaces
63     mac_address:
64       hidden: false
65       immutable: false
66       type: string
67       description: MAC address to use for subinterface
68     ipv6_address:
69       hidden: false
70       immutable: false
71       type: string
72       description: IPv6 address associated with subinterfaces
73     subinterface_name_prefix:
74       hidden: false
75       immutable: false
76       type: string
77       description: Combined with subinterface_instance_index, this is used as the name of the subinterface resource
78     subinterface_instance_index:
79       hidden: false
80       immutable: false
81       type: float
82       description: Index of instance among multiple instances.  Use to retrieve correct parameter for this instance when passed all parameters for all instances.
83     ip_address:
84       hidden: false
85       immutable: false
86       type: string
87       description: IPv4 address associated with subinterfaces
88     vlan_networks:
89       hidden: false
90       immutable: false
91       type: list
92       description: List of Contrail VLAN networks to use for the subinterfaces.   The order and number of these must match the VLAN ID list
93       entry_schema:
94         type: string
95   node_templates:
96     contrail_vmi_subinterface:
97       type: org.openecomp.resource.cp.nodes.heat.network.contrailV2.VLANSubInterface
98       properties:
99         virtual_machine_interface_refs:
100         - get_input: parent_interface
101         name:
102           str_replace:
103             template: $NAME$VLAN
104             params:
105               $NAME:
106                 get_input: subinterface_name_prefix
107               $VLAN:
108                 get_input:
109                 - vlan_ids
110                 - get_input: subinterface_instance_index
111         virtual_network_refs:
112         - get_input:
113           - vlan_networks
114           - get_input: subinterface_instance_index
115         virtual_machine_interface_properties:
116           sub_interface_vlan_tag:
117             get_input:
118             - vlan_ids
119             - get_input: subinterface_instance_index
120         virtual_machine_interface_allowed_address_pairs:
121           allowed_address_pair:
122           - address_mode: active-standby
123             ip:
124               ip_prefix:
125                 get_input: virtual_ip_address
126               ip_prefix_len: 32
127             mac:
128               get_input: mac_address
129           - address_mode: active-standby
130             ip:
131               ip_prefix:
132                 get_input: virtual_ipv6_address
133               ip_prefix_len: 128
134             mac:
135               get_input: mac_address
136         virtual_machine_interface_mac_addresses:
137           mac_address:
138           - get_input: mac_address
139   groups:
140     vlan_subinterface_dual_group:
141       type: org.openecomp.groups.heat.HeatStack
142       properties:
143         heat_file: ../Artifacts/vlan_subinterface_dual.yaml
144         description: |
145           HOT template to instantiate a single Contrail VLAN sub-interface with associated instance IP addresses and allowed address pairs
146       members:
147       - contrail_vmi_subinterface
148   substitution_mappings:
149     node_type: org.openecomp.resource.abstract.nodes.heat.vlan_subinterface_dual
150     requirements:
151       binding_contrail_vmi_subinterface:
152       - contrail_vmi_subinterface
153       - binding
154       link_contrail_vmi_subinterface:
155       - contrail_vmi_subinterface
156       - link