bbc48d76eca27a0cd39dd3aff2a1afa8caba7118
[sdc.git] /
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: nested
4 imports:
5 - openecomp_heat_index:
6     file: openecomp-heat/_index.yml
7 - GlobalSubstitutionTypes:
8     file: GlobalSubstitutionTypesServiceTemplate.yaml
9 topology_template:
10   inputs:
11     vlan_ids:
12       hidden: false
13       immutable: false
14       type: string
15     p1:
16       hidden: false
17       immutable: false
18       type: string
19     p2:
20       hidden: false
21       immutable: false
22       type: string
23     virtual_ipv6_address:
24       hidden: false
25       immutable: false
26       type: string
27     virtual_ip_address:
28       hidden: false
29       immutable: false
30       type: string
31     net2:
32       hidden: false
33       immutable: false
34       type: string
35     lb_st_vlan_type_oam:
36       hidden: false
37       immutable: false
38       type: string
39       description: dummy
40     mac_address:
41       hidden: false
42       immutable: false
43       type: string
44     net1:
45       hidden: false
46       immutable: false
47       type: string
48     subinterface_name_prefix:
49       hidden: false
50       immutable: false
51       type: string
52     subinterface_instance_index:
53       hidden: false
54       immutable: false
55       type: float
56   node_templates:
57     template_Vlan_vmi_1:
58       type: org.openecomp.resource.cp.nodes.heat.network.contrailV2.VLANSubInterface
59       properties:
60         virtual_machine_interface_refs:
61         - get_input: p1
62         name:
63           str_replace:
64             template: $NAME$VLAN
65             params:
66               $NAME:
67                 get_input: subinterface_name_prefix
68               $VLAN:
69                 get_input:
70                 - vlan_ids
71                 - get_input: subinterface_instance_index
72         virtual_network_refs:
73         - get_input: net1
74         virtual_machine_interface_properties:
75           sub_interface_vlan_tag:
76             get_input: lb_st_vlan_type_oam
77         virtual_machine_interface_allowed_address_pairs:
78           allowed_address_pair:
79           - address_mode: active-standby
80             ip:
81               ip_prefix:
82                 get_input: virtual_ip_address
83               ip_prefix_len: 32
84             mac:
85               get_input: mac_address
86           - address_mode: active-standby
87             ip:
88               ip_prefix:
89                 get_input: virtual_ipv6_address
90               ip_prefix_len: 128
91             mac:
92               get_input: mac_address
93         virtual_machine_interface_mac_addresses:
94           mac_address:
95           - get_input: mac_address
96   groups:
97     nested_group:
98       type: org.openecomp.groups.heat.HeatStack
99       properties:
100         heat_file: ../Artifacts/nested.yml
101         description: cmaui server template for vMMSC
102       members:
103       - template_Vlan_vmi_1
104   substitution_mappings:
105     node_type: org.openecomp.resource.abstract.nodes.heat.subinterface.nested
106     capabilities:
107       feature_template_Vlan_vmi_1:
108       - template_Vlan_vmi_1
109       - feature
110     requirements:
111       link_template_Vlan_vmi_1:
112       - template_Vlan_vmi_1
113       - link
114       dependency_template_Vlan_vmi_1:
115       - template_Vlan_vmi_1
116       - dependency
117       binding_template_Vlan_vmi_1:
118       - template_Vlan_vmi_1
119       - binding