[VVP] Generated completed preload from env files
[vvp/validation-scripts.git] / ice_validator / app_tests / preload_tests / sample_heat / nested_svc.yaml
1 heat_template_version: 2015-04-30
2
3 description: Base Module of Sample VNF
4
5 parameters:
6
7   # ONAP Assigned Parameters
8   workload_context:
9     type: string
10     description: Unique ID for this VNF instance
11
12   environment_context:
13     type: string
14     description: Unique ID for this VNF instance
15
16   vnf_id:
17     type: string
18     description: Unique ID for this VNF instance
19
20   vf_module_id:
21     type: string
22     description: Unique ID for this VNF module instance
23
24
25   vnf_name:
26     type: string
27     description: Unique name for this VNF instance
28
29
30   # Availability Zones
31   availability_zone_0:
32     type: string
33     description: Primary Availability Zone
34
35
36   # Server Inputs: Services
37   svc_names:
38     type: comma_delimited_list
39     description: Service VM Names
40
41   svc_image_name:
42     type: string
43     description: Service VM Image
44
45   svc_flavor_name:
46     type: string
47     description: Service VM Flavor
48
49   index:
50     type: number
51     description: Number of services to create
52   
53   int_private_net_id:
54     type: string
55     description: Network ID of internal private network
56
57   int_private_subnet_id:
58     type: string
59     description: Subnet ID of internal private network
60
61 resources:
62
63   svc_server_0:
64     type: OS::Nova::Server
65     properties:
66       image: { get_param: svc_image_name }
67       flavor: { get_param: svc_flavor_name }
68       name: { get_param: [svc_names, {get_param: index}] }
69       metadata:
70         vnf_id: { get_param: vnf_id }
71         vf_module_id: { get_param: vf_module_id }
72         vnf_name: { get_param: vnf_name }
73         workload_context: { get_param: workload_context }
74         environment_context: { get_param: environment_context }
75       networks:
76         - port: {get_resource: svc_0_int_private_port_0}
77       availability_zone: { get_param: availability_zone_0 }
78
79   svc_0_int_private_port_0:
80     type: OS::Neutron::Port
81     properties:
82       network: { get_param: int_private_net_id }
83       fixed_ips: 
84         - subnet: { get_param: int_private_subnet_id  }