blob: d412ebbce63798aa143e075ecdca78f9802cb4b8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
heat_template_version: 2013-05-23
description: heat template that creates PCRF Session Manager stack
parameters:
pcrf_psm_server_names:
type: comma_delimited_list
label: PCRF SM server names
description: name of the PCRF SM instance
pcrf_psm_image_name:
type: string
label: PCRF SM image name
description: PCRF SM image name
pcrf_psm_flavor_name:
type: string
label: PCRF SM flavor name
description: flavor name of PCRF SM instance
availabilityzone_name:
type: string
label: availabilityzone name
description: availabilityzone name
pcrf_cps_net_name:
type: string
label: CPS network name
description: CPS network name
pcrf_cps_net_ips:
type: comma_delimited_list
label: CPS network ips
description: CPS network ips
pcrf_cps_net_mask:
type: string
label: CPS network mask
description: CPS network mask
pcrf_security_group_name:
type: string
label: security group name
description: the name of security group
pcrf_vnf_id:
type: string
label: PCRF VNF Id
description: PCRF VNF Id
vnf_id:
type: string
resources:
nova_server_1:
type: OS::Nova::Server
properties:
pcrf_psm_server_name: { get_param: [pcrf_psm_server_names, 0] }
image: { get_param: pcrf_psm_image_name }
flavor: { get_param: pcrf_psm_flavor_name }
availabilityzone_name: { get_param: availabilityzone_name }
networks:
- port: { get_resource: oam1_int_port }
fixed_ip: 10.0.0.0
floating_ip: 10.0.0.1
network: 100_1000_0011
port_extra_properties: {admin_state_up: true , allowed_address_pairs: 10}
subnet: 10.0.0.2
- port: { get_resource: oam1_mgmt_port }
metadata:
vnf_id: { get_param: vnf_id }
oam1_int_port:
type: OS::Neutron::Port
properties:
network: {get_param: pcrf_psm_server_names}
fixed_ips: [{"ip_address": {get_param: [pcrf_psm_image_name, 0]}}]
security_groups: [{get_param: pcrf_psm_image_name}]
replacement_policy: AUTO
oam2_int_port:
type: OS::Neutron::Port
properties:
network: {get_param: pcrf_psm_server_names}
fixed_ips: [{"ip_address": {get_param: [pcrf_psm_image_name, 0]}}]
security_groups: [{get_param: pcrf_psm_image_name}]
replacement_policy: AUTO
oam1_mgmt_port:
type: OS::Neutron::Port
properties:
network: {get_param: pcrf_psm_server_names}
fixed_ips: [{"ip_address": {get_param: [pcrf_psm_image_name, 0]}}]
security_groups: [{get_param: pcrf_psm_image_name}]
replacement_policy: AUTO
|