aboutsummaryrefslogtreecommitdiffstats
path: root/openecomp-be/lib/openecomp-heat-lib/src/test/resources/mock/model/base_cscf_volume.yaml
blob: 145f82e9ec5ef58731de5df56fb4eb4434d35a86 (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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
## Name: "base_cscf_volume.yaml"
## Date: 20 Mar 2017
## Kilo Version
heat_template_version: 2015-04-30

description: Volume template for CFX

parameters:
  vnf_name:
    type: string
    description: Unique name for this VF instance

  vcscf_name_delimeter:
    type: string
    description: 'delimeter used in concatenating different words while naming (ex: "-","_",".",...)'
    constraints:
      - allowed_values: [ '-', '', '_', '.']

  availability_zone_0:
    type: string
    description: Storage availability zone for volume of first vm

  availability_zone_1:
    type: string
    description: Storage availability zone for volume of second vm

  cif_volume_size_0:
    type: number
    description: Size of Volume for cif VMs
    constraints:
      - range: { min: 1, max: 300 }

  oam_volume_size_0:
    type: number
    description: Size of Volume for oam VMs
    constraints:
      - range: { min: 1, max: 300 }

resources:
  cif_volume_0:
    type: OS::Cinder::Volume
    properties:
      size: { get_param: cif_volume_size_0 }
      availability_zone: { get_param: availability_zone_0}
      name:
        str_replace:
          template: "$VNF$DELcif$DELvolume$DEL0"
          params:
            $VNF: { get_param: vnf_name }
            $DEL: { get_param: vcscf_name_delimeter }

  cif_volume_1:
    type: OS::Cinder::Volume
    properties:
      availability_zone: { get_param: availability_zone_1}
      size: { get_param: cif_volume_size_0 }
      name:
        str_replace:
          template: "$VNF$DELcif$DELvolume$DEL1"
          params:
            $VNF: { get_param: vnf_name }
            $DEL: { get_param: vcscf_name_delimeter }

  oam_volume_0:
    type: OS::Cinder::Volume
    properties:
      size: { get_param: oam_volume_size_0 }
      availability_zone: { get_param: availability_zone_0}
      name:
        str_replace:
          template: "$VNF$DELoam$DELvolume$DEL0"
          params:
            $VNF: { get_param: vnf_name }
            $DEL: { get_param: vcscf_name_delimeter }

  oam_volume_1:
    type: OS::Cinder::Volume
    properties:
      size: { get_param: oam_volume_size_0 }
      availability_zone: { get_param: availability_zone_1}
      name:
        str_replace:
          template: "$VNF$DELoam$DELvolume$DEL1"
          params:
            $VNF: { get_param: vnf_name }
            $DEL: { get_param: vcscf_name_delimeter }

outputs:
  cif_volume_id_0:
    description: volume id for first cif
    value: {get_resource: cif_volume_0}

  cif_volume_id_1:
    description: volume id for second cif
    value: {get_resource: cif_volume_1}

  oam_volume_id_0:
    description: volume id for first oam
    value: {get_resource: oam_volume_0}

  oam_volume_id_1:
    description: volume id for second oam
    value: {get_resource: oam_volume_1}