aboutsummaryrefslogtreecommitdiffstats
path: root/openecomp-be/lib/openecomp-sdc-validation-lib/openecomp-sdc-validation-impl/src/test/resources/openecomp/org/validation/validators/heat_validator/network_policy_associated_with_attach_policy/input/hot-nimbus-pps_v1.0.yaml
blob: b2b91ec36d4427c7387dd9b4ee888f178d6d942e (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
heat_template_version: 2013-05-23

description: heat template that creates PCRF Policy Server stack

parameters:
  pcrf_pps_server_names:
    type: comma_delimited_list
    label: PCRF PS server names
    description: PCRF PS server names
  pcrf_pps_image_name:
    type: string
    label: PCRF PS image name
    description: PCRF PS image name
  pcrf_pps_flavor_name:
    type: string
    label: PCRF PS flavor name
    description: flavor name of PCRF PS 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

resources:
  used_server_pcrf_policy:
    type: OS::Contrail::NetworkPolicy
    properties:
      pcrf_pps_server_name: { get_param: [pcrf_pps_server_names, 0] }
      pcrf_pps_image_name: { get_param: pcrf_pps_image_name }

  not_used_server_pcrf_policy:
    type: OS::Contrail::NetworkPolicy
    properties:
      pcrf_pps_server_name: { get_param: [pcrf_pps_server_names, 0] }
      pcrf_pps_image_name: { get_param: pcrf_pps_image_name }

  server_pcrf_network:
    type: OS::Contrail::VirtualNetwork
    properties:
      pcrf_pps_server_name: { get_param: [pcrf_pps_server_names, 0] }
      pcrf_pps_image_name: { get_param: pcrf_pps_image_name }

  attach_policy_resource:
    type: OS::Contrail::AttachPolicy
    properties:
      network: { get_resource: server_pcrf_network }
      policy: { get_attr: [used_server_pcrf_policy, fq_name] }