e6b328acd42763bdb7b192a7eb4f58c674472bda
[vvp/validation-scripts.git] / ice_validator / tests / fixtures / test_nested_parameters / fail / 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_index:
43     type: string
44     description: Unique ID for this VF Module instance 
45
46   vf_module_name:
47     type: string
48     description: Unique name for this VF Module instance
49     
50   vm_role: 
51     type: string
52     description: role tagged to VM 
53   
54   stark_flavor_name:
55     label: VMs flavor
56     description: The JSON map containing the nova Flavors to be used for the VM Servers
57     type: string
58
59   stark_image_name:
60     type: string
61     description: "stark image name"
62     
63   stark_names:
64     type: comma_delimited_list
65     description: VM name for stark VM 1
66         
67   workload_context:
68     type: string
69     description: Workload Context for this VNF instance
70
71   environment_context:
72     type: string
73     description: Environment Context for this VNF instance     
74   
75   stark_dummy_floating_ip:
76     type: string
77     description: Test floating IP test
78
79   int_mummy_net_id:
80     type: string
81     description: Test floating IP test
82
83   int_mummy_subnet_id:
84     type: string
85     description: Test floating IP test
86
87   stark_int_mummy_ips:
88     type: comma_delimited_list
89     description: Test floating IP test
90
91   oam_net_fqdn:
92     type: string
93     description: nsdaklfnsaklfsdl
94
95   oam2_net_fqdn:
96     type: string
97     description: ndjfls
98
99   instance_ip_address:
100     type: string
101     description: nsdlfkn
102
103   mycontrailip:
104     type: string
105     description: njsaf
106
107 resources:
108
109   fw_0_oam_protected_vmi_0_IP_0:
110     type: OS::ContrailV2::InstanceIp
111     properties:
112       instance_ip_address: { get_param: instance_ip_address }
113
114   fw_0_oam_vmi_0:
115     type: OS::ContrailV2::VirtualMachineInterface
116     properties:
117       virtual_network_refs:
118         - get_param: oam_net_fqdn
119         - get_param: oam2_net_fqdn
120       virtual_machine_interface_allowed_address_pairs:
121         {
122           virtual_machine_interface_allowed_address_pairs_allowed_address_pair:
123             [{
124               virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip:
125                 {
126                   virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip_ip_prefix: { get_param: mycontrailip },
127                   virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip_ip_prefix_len: "fasdfas",
128                 },
129               virtual_machine_interface_allowed_address_pairs_allowed_address_pair_mac: "test123",
130               virtual_machine_interface_allowed_address_pairs_allowed_address_pair_address_mode: "asdfasdf",
131             }],
132         }
133
134   stark_0_dummy_port_0:
135     type: OS::Neutron::Port
136     properties:
137       network: { get_param: dummy_net_id }
138       fixed_ips:
139         - subnet: { get_param: dummy_subnet_id }
140           ip_address: { get_param: [stark_dummy_ips, { get_param: index }] }
141       allowed_address_pairs:
142         - ip_address: { get_param: stark_dummy_floating_ip }
143
144   stark_0_int_mummy_port_0:
145     type: OS::Neutron::Port
146     properties:
147       network: { get_param: int_mummy_net_id }
148       fixed_ips:
149         - subnet: { get_param: int_mummy_subnet_id }
150           ip_address: { get_param: [stark_int_mummy_ips, { get_param: index }] }
151
152   stark_server_0:
153     type: OS::Nova::Server
154     properties:
155       name: { get_param: [stark_names, { get_param: index }] }
156       image: { get_param: stark_image_name}
157       flavor: { get_param: stark_flavor_name }
158       networks:
159         - port: { get_resource: stark_0_dummy_port_0 }
160         - port: { get_resource: stark_0_int_mummy_port_0 }
161       metadata: 
162         vnf_id: {get_param: vnf_id}
163         vnf_name: {get_param: vnf_name}
164         vf_module_id: {get_param: vf_module_id}
165         vf_module_index: {get_param: vf_module_index}
166         vf_module_name:   {get_param: vf_module_name}
167         vm_role: {get_param: vm_role}
168         workload_context: {get_param: workload_context }
169         environment_context: {get_param: environment_context }
170
171   stark_volume_attachment_0:
172     type: OS::Cinder::VolumeAttachment
173     properties:
174       instance_uuid: {get_resource: stark_server_0 }
175       volume_id: {get_param: [stark_volumes, { get_param: index }] }