[VVP] adding subnet_uuid to nested parameter check
[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   subnet_uuid:
108     type: string
109     description: njsaf
110
111 resources:
112
113   fw_0_oam_protected_vmi_0_IP_0:
114     type: OS::ContrailV2::InstanceIp
115     properties:
116       instance_ip_address: { get_param: instance_ip_address }
117       subnet_uuid: { get_param: subnet_uuid }
118
119   fw_0_oam_vmi_0:
120     type: OS::ContrailV2::VirtualMachineInterface
121     properties:
122       virtual_network_refs:
123         - get_param: oam_net_fqdn
124         - get_param: oam2_net_fqdn
125       virtual_machine_interface_allowed_address_pairs:
126         {
127           virtual_machine_interface_allowed_address_pairs_allowed_address_pair:
128             [{
129               virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip:
130                 {
131                   virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip_ip_prefix: { get_param: mycontrailip },
132                   virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip_ip_prefix_len: "fasdfas",
133                 },
134               virtual_machine_interface_allowed_address_pairs_allowed_address_pair_mac: "test123",
135               virtual_machine_interface_allowed_address_pairs_allowed_address_pair_address_mode: "asdfasdf",
136             }],
137         }
138
139   stark_0_dummy_port_0:
140     type: OS::Neutron::Port
141     properties:
142       network: { get_param: dummy_net_id }
143       fixed_ips:
144         - subnet: { get_param: dummy_subnet_id }
145           ip_address: { get_param: [stark_dummy_ips, { get_param: index }] }
146       allowed_address_pairs:
147         - ip_address: { get_param: stark_dummy_floating_ip }
148
149   stark_0_int_mummy_port_0:
150     type: OS::Neutron::Port
151     properties:
152       network: { get_param: int_mummy_net_id }
153       fixed_ips:
154         - subnet: { get_param: int_mummy_subnet_id }
155           ip_address: { get_param: [stark_int_mummy_ips, { get_param: index }] }
156
157   stark_server_0:
158     type: OS::Nova::Server
159     properties:
160       name: { get_param: [stark_names, { get_param: index }] }
161       image: { get_param: stark_image_name}
162       flavor: { get_param: stark_flavor_name }
163       networks:
164         - port: { get_resource: stark_0_dummy_port_0 }
165         - port: { get_resource: stark_0_int_mummy_port_0 }
166       metadata: 
167         vnf_id: {get_param: vnf_id}
168         vnf_name: {get_param: vnf_name}
169         vf_module_id: {get_param: vf_module_id}
170         vf_module_index: {get_param: vf_module_index}
171         vf_module_name:   {get_param: vf_module_name}
172         vm_role: {get_param: vm_role}
173         workload_context: {get_param: workload_context }
174         environment_context: {get_param: environment_context }
175
176   stark_volume_attachment_0:
177     type: OS::Cinder::VolumeAttachment
178     properties:
179       instance_uuid: {get_resource: stark_server_0 }
180       volume_id: {get_param: [stark_volumes, { get_param: index }] }