[VVP] Removing unnecessary trademark lines
[vvp/validation-scripts.git] / ice_validator / tests / fixtures / test_port_resource_ids / fail / wrong_port_attached_to_nova_server_get_resource_uppercase.yaml
1 # -*- coding: utf8 -*-
2 # ============LICENSE_START=======================================================
3 # org.onap.vvp/validation-scripts
4 # ===================================================================
5 # Copyright © 2017 AT&T Intellectual Property. All rights reserved.
6 # ===================================================================
7 #
8 # Unless otherwise specified, all software contained herein is licensed
9 # under the Apache License, Version 2.0 (the "License");
10 # you may not use this software except in compliance with the License.
11 # You may obtain a copy of the License at
12 #
13 #             http://www.apache.org/licenses/LICENSE-2.0
14 #
15 # Unless required by applicable law or agreed to in writing, software
16 # distributed under the License is distributed on an "AS IS" BASIS,
17 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 # See the License for the specific language governing permissions and
19 # limitations under the License.
20 #
21 #
22 #
23 # Unless otherwise specified, all documentation contained herein is licensed
24 # under the Creative Commons License, Attribution 4.0 Intl. (the "License");
25 # you may not use this documentation except in compliance with the License.
26 # You may obtain a copy of the License at
27 #
28 #             https://creativecommons.org/licenses/by/4.0/
29 #
30 # Unless required by applicable law or agreed to in writing, documentation
31 # distributed under the License is distributed on an "AS IS" BASIS,
32 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
33 # See the License for the specific language governing permissions and
34 # limitations under the License.
35 #
36 # ============LICENSE_END============================================
37 #
38 #
39 ---
40 heat_template_version: 2015-04-30
41
42 description: Heat template description
43
44 parameters:
45
46   vnf_id:
47     type: string
48     description: Unique ID for this VNF instance
49
50   vf_module_id:
51     type: string
52     description: Unique ID for this VF module
53
54   vnf_name:
55     type: string
56     description: Unique name for this VNF instance
57
58   admin_names:
59     type: comma_delimited_list
60     description: Names attribute for the VMs
61
62   db_names:
63     type: comma_delimited_list
64     description: Names attribute for the VMs
65
66   lb_names:
67     type: comma_delimited_list
68     description: Names attribute for the VMs
69
70   availability_zone_0:
71     type: string
72     description: availability zone to be used
73
74   admin_flavor_name:
75     type: string
76     description: flavor to be used to create this vm must be one of the following flavors
77
78   db_flavor_name:
79     type: string
80     description: flavor to be used to create this vm must be one of the following flavors
81
82   lb_flavor_name:
83     type: string
84     description: flavor to be used to create this vm must be one of the following flavors
85
86   exnet_net_name:
87     type: string
88     description: network name for the external network extnet
89
90   exnet_net_id:
91     type: string
92     description: network id for the external network extnet
93
94   int_vpnnet_net_id:
95     type: string
96     description: network id for the internal network vpnnet 
97
98 resources:
99
100   admin_server_0:
101     type: OS::Nova::Server
102     properties:
103       availability_zone: { get_param: availability_zone_0 }
104       name: { get_param: [admin_names, 0]  }
105       flavor: { get_param: admin_flavor_name}
106       networks:
107         - port: { get_resource: admin_0_exnet_0_port }
108         - port: { get_resource: admin_0_int_vpnnet_0_port }
109       metadata:
110         vnf_name: { get_param: vnf_name }
111         vnf_id: { get_param: vnf_id }
112         vf_module_id: { get_param: vf_module_id }
113
114   admin_server_1:
115     type: OS::Nova::Server
116     properties:
117       availability_zone: { get_param: availability_zone_0 }
118       name: { get_param: [admin_names, 1]  }
119       flavor: { get_param: admin_flavor_name}
120       metadata:
121         vnf_name: { get_param: vnf_name }
122         vnf_id: { get_param: vnf_id }
123         vf_module_id: { get_param: vf_module_id }
124
125   lb_server_0:
126     type: OS::Nova::Server
127     properties:
128       availability_zone: { get_param: availability_zone_0 }
129       name: { get_param: [lb_names, 0]  }
130       flavor: { get_param: lb_flavor_name}
131       networks:
132         - port: { get_resource: ADMIN_1_EXTNET_0_PORT }
133         - port: { get_resource: ADMIN_1_EXTNET_1_PORT }
134       metadata:
135         vnf_name: { get_param: vnf_name }
136         vnf_id: { get_param: vnf_id }
137         vf_module_id: { get_param: vf_module_id }
138
139   admin_0_exnet_0_port:
140       type: OS::Neutron::Port
141       properties:
142         network: { get_param: exnet_net_name }
143
144   admin_0_int_vpnnet_0_port:
145       type: OS::Neutron::Port
146       properties:
147           network: { get_param: int_vpnnet_net_id }
148
149   ADMIN_1_EXTNET_0_PORT:
150       type: OS::Neutron::Port
151       properties:
152         network: { get_param: extnet_net_name }
153
154   ADMIN_1_EXTNET_1_PORT:
155       type: OS::Neutron::Port
156       properties:
157         network: { get_param: extnet_net_id }