Aligned test with updated R-610030
[vvp/validation-scripts.git] / ice_validator / tests / fixtures / test_port_resource_ids / pass / valid_template.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   int_oam_net_name:
98     type: string
99     description: name for the OAM network to be created in the resources section
100
101 resources:
102
103   admin_server_0:
104     type: OS::Nova::Server
105     properties:
106       availability_zone: { get_param: availability_zone_0 }
107       name: { get_param: [admin_names, 0]  }
108       flavor: { get_param: admin_flavor_name}
109       networks:
110         - port: { get_resource: admin_0_exnet_port_0 }
111         - port: { get_resource: admin_0_int_vpnnet_port_0 }
112       metadata:
113         vnf_name: { get_param: vnf_name }
114         vnf_id: { get_param: vnf_id }
115         vf_module_id: { get_param: vf_module_id }
116
117   admin_server_1:
118     type: OS::Nova::Server
119     properties:
120       availability_zone: { get_param: availability_zone_0 }
121       name: { get_param: [admin_names, 1]  }
122       flavor: { get_param: admin_flavor_name}
123       networks:
124         - port: { get_resource: ADMIN_1_EXTNET_PORT_0 }
125         - port: { get_resource: admin_1_extnet_port_1 }
126       metadata:
127         vnf_name: { get_param: vnf_name }
128         vnf_id: { get_param: vnf_id }
129         vf_module_id: { get_param: vf_module_id }
130
131   admin_server_2:
132     type: OS::Nova::Server
133     properties:
134       availability_zone: { get_param: availability_zone_0 }
135       name: { get_param: [admin_names, 2]  }
136       flavor: { get_param: admin_flavor_name}
137       networks:
138         - port: { get_resource: admin_2_int_oam_port_0 }
139       metadata:
140         vnf_name: { get_param: vnf_name }
141         vnf_id: { get_param: vnf_id }
142         vf_module_id: { get_param: vf_module_id }
143   lb_server_0:
144     type: OS::Nova::Server
145     properties:
146       availability_zone: { get_param: availability_zone_0 }
147       name: { get_param: [lb_names, 0]  }
148       flavor: { get_param: lb_flavor_name}
149       metadata:
150         vnf_name: { get_param: vnf_name }
151         vnf_id: { get_param: vnf_id }
152         vf_module_id: { get_param: vf_module_id }
153
154   admin_0_exnet_port_0:
155       type: OS::Neutron::Port
156       properties:
157         network: { get_param: exnet_net_name }
158
159   admin_0_int_vpnnet_port_0:
160       type: OS::Neutron::Port
161       properties:
162           network: { get_param: int_vpnnet_net_id }
163
164   ADMIN_1_EXTNET_PORT_0:
165       type: OS::Neutron::Port
166       properties:
167         network: { get_param: extnet_net_name }
168
169   admin_1_extnet_port_1:
170       type: OS::Neutron::Port
171       properties:
172         network: { get_param: extnet_net_id }
173
174   int_oam_network:
175         type: OS::Neutron::Net
176         properties:
177           name: { get_param: int_oam_net_name }
178
179   admin_2_int_oam_port_0:
180        type: OS::Neutron::Port
181        properties:
182          network: { get_resource: int_oam_network }
183          fixed_ips:
184             - ip_address: { get_param: [db_1_int_vpnnet_ips, 0] }