b2ca9365ed52facb51cc9aa6f8ff7859f0d0f704
[vvp/validation-scripts.git] / ice_validator / tests / fixtures / test_nested_parameters / pass / stark_nested.yaml
1 heat_template_version: 2015-04-30
2
3 description: |
4   stark nested template
5
6 parameters:
7
8   stark_volumes:
9     type: comma_delimited_list
10     description: ndjsfka
11
12   index:
13     type: number
14     description: nsadlf
15
16   dummy_net_id:
17     type: string
18     description: nsdaljfnsak
19
20   dummy_subnet_id:
21     type: string
22     description: nsdaljfnsak
23
24   stark_dummy_ips:
25     type: comma_delimited_list
26     description: dsnafljsadnlfks
27
28   vnf_name:
29     label: VNF name
30     description: this name will also be used on VM server and other resources.
31     type: string
32
33   vnf_id:
34     label: VNF ID
35     description: 'This ID will be passed as metadata on all Nova Servers, Cinder Volumes, and any other resource that supports metadata'
36     type: string
37
38   vf_module_id:
39     type: string
40     description: Unique ID for this VF Module instance 
41
42   vf_module_name:
43     type: string
44     description: Unique name for this VF Module instance
45     
46   vm_role: 
47     type: string
48     description: role tagged to VM 
49   
50   stark_flavor_name:
51     label: VMs flavor
52     description: The JSON map containing the nova Flavors to be used for the VM Servers
53     type: string
54
55   stark_image_name:
56     type: string
57     description: "stark image name"
58     
59   stark_names:
60     type: comma_delimited_list
61     description: VM name for stark VM 1
62         
63   workload_context:
64     type: string
65     description: Workload Context for this VNF instance
66
67   environment_context:
68     type: string
69     description: Environment Context for this VNF instance     
70   
71   stark_dummy_floating_ip:
72     type: string
73     description: Test floating IP test
74
75   int_mummy_net_id:
76     type: string
77     description: Test floating IP test
78
79   int_mummy_subnet_id:
80     type: string
81     description: Test floating IP test
82
83   stark_int_mummy_ips:
84     type: comma_delimited_list
85     description: Test floating IP test
86
87   oam_net_fqdn:
88     type: string
89     description: nsdaklfnsaklfsdl
90
91   oam2_net_fqdn:
92     type: string
93     description: ndjfls
94
95   instance_ip_address:
96     type: string
97     description: nsdlfkn
98
99   mycontrailip:
100     type: string
101     description: njsaf
102
103 resources:
104
105   fw_0_oam_protected_vmi_0_IP_0:
106     type: OS::ContrailV2::InstanceIp
107     properties:
108       instance_ip_address: { get_param: instance_ip_address }
109
110   fw_0_oam_vmi_0:
111     type: OS::ContrailV2::VirtualMachineInterface
112     properties:
113       virtual_network_refs:
114         - get_param: oam_net_fqdn
115         - get_param: oam2_net_fqdn
116       virtual_machine_interface_allowed_address_pairs:
117         {
118           virtual_machine_interface_allowed_address_pairs_allowed_address_pair:
119             [{
120               virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip:
121                 {
122                   virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip_ip_prefix: { get_param: mycontrailip },
123                   virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip_ip_prefix_len: "fasdfas",
124                 },
125               virtual_machine_interface_allowed_address_pairs_allowed_address_pair_mac: "test123",
126               virtual_machine_interface_allowed_address_pairs_allowed_address_pair_address_mode: "asdfasdf",
127             }],
128         }
129
130   stark_0_dummy_port_0:
131     type: OS::Neutron::Port
132     properties:
133       network: { get_param: dummy_net_id }
134       fixed_ips:
135         - subnet: { get_param: dummy_subnet_id }
136           ip_address: { get_param: [stark_dummy_ips, { get_param: index }] }
137       allowed_address_pairs:
138         - ip_address: { get_param: stark_dummy_floating_ip }
139
140   stark_0_int_mummy_port_0:
141     type: OS::Neutron::Port
142     properties:
143       network: { get_param: int_mummy_net_id }
144       fixed_ips:
145         - subnet: { get_param: int_mummy_subnet_id }
146           ip_address: { get_param: [stark_int_mummy_ips, { get_param: index }] }
147
148   stark_server_0:
149     type: OS::Nova::Server
150     properties:
151       name: { get_param: [stark_names, { get_param: index }] }
152       image: { get_param: stark_image_name}
153       flavor: { get_param: stark_flavor_name }
154       networks:
155         - port: { get_resource: stark_0_dummy_port_0 }
156         - port: { get_resource: stark_0_int_mummy_port_0 }
157       metadata: 
158         vnf_id: {get_param: vnf_id}
159         vnf_name: {get_param: vnf_name}
160         vf_module_id: {get_param: vf_module_id}
161         vf_module_name:   {get_param: vf_module_name}
162         vm_role: {get_param: vm_role}
163         workload_context: {get_param: workload_context }
164         environment_context: {get_param: environment_context }
165
166   stark_volume_attachment_0:
167     type: OS::Cinder::VolumeAttachment
168     properties:
169       instance_uuid: {get_resource: stark_server_0 }
170       volume_id: {get_param: [stark_volumes, { get_param: index }] }