summaryrefslogtreecommitdiffstats
path: root/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/catalogInstances/computewithtwosameporttypes/in/base_vIECCF_volume.yml
blob: 073b102c6d03c505ea54d5839c753db34ab55642 (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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
heat_template_version: 2014-10-16

description: Volume creation template for vCCF

## Note: Nokia Volume HOT file for vCCF
## Copyright: Nokia 2016
## Name: "base_vIECCF_volume.yml"
## Date: 20 Dec 2016
## Juno Version
## Version History
##     12/20/2016 
##         - Initial version for IECCF R30.3.3
##     01/06/2017
##         - Updated vCCF package to address removal of shared volume for IO VMs
##     01/19/2017
##         - Updated vCCF package to address ICE feedback reviewed on 1/13/2017
##         - Updated to remove Nokia related values and match AT&T environment
##     02/17/2017
##         - Updated vCCF package from Nokia
##     09/27/2017
##         - Updated for mini instance in DPA2a - vol reduction to match number of VMs

parameters:
    vnf_name:
        type: string
        description: Unique name for this VF instance
        
    plt_servicedata1_volume_size_0:
        type: number
        description: Size of Service Data 1 Volume for plt VMs
        constraints:
          - range: { min: 1, max: 9999 }
            description: "Must be between 1 and 9999 GB"
            
    plt_servicedata2_volume_size_0:
        type: number
        description: Size of Service Data 2 Volume for plt VMs
        constraints:
          - range: { min: 1, max: 9999 }
            description: "Must be between 1 and 9999 GB"
            
    app_volume_size_0: 
        type: number
        description: Size of Service Data 1 Volume for app VMs
        constraints:
          - range: { min: 1, max: 9999 }
            description: "Must be between 1 and 9999 GB"

resources:
    plt_volume_shared_0:
        type: OS::Cinder::Volume
        properties:
            size: { get_param: plt_servicedata2_volume_size_0 }
            name: 
                str_replace:
                    template: $vnf_name-plt_volume_shared_0
                    params:
                        $vnf_name:
                            get_param: vnf_name

    plt_volume_0:
        type: OS::Cinder::Volume
        properties:
            size: { get_param: plt_servicedata1_volume_size_0 }
            name: 
                str_replace:
                    template: $vnf_name-plt_volume_0
                    params:
                        $vnf_name:
                            get_param: vnf_name

    plt_volume_1:
        type: OS::Cinder::Volume
        properties:
            size: { get_param: plt_servicedata1_volume_size_0 }
            name: 
                str_replace:
                    template: $vnf_name-plt_volume_1
                    params:
                        $vnf_name:
                            get_param: vnf_name

    app_volume_0:
        type: OS::Cinder::Volume
        properties:
            size: { get_param: app_volume_size_0 }
            name: 
                str_replace:
                    template: $vnf_name-app_volume_0
                    params:
                        $vnf_name:
                            get_param: vnf_name

    app_volume_1:
        type: OS::Cinder::Volume
        properties:
            size: { get_param: app_volume_size_0 }
            name: 
                str_replace:
                    template: $vnf_name-app_volume_1
                    params:
                        $vnf_name:
                            get_param: vnf_name

    app_volume_2:
        type: OS::Cinder::Volume
        properties:
            size: { get_param: app_volume_size_0 }
            name: 
                str_replace:
                    template: $vnf_name-app_volume_2
                    params:
                        $vnf_name:
                            get_param: vnf_name

outputs:
    plt_volume_shared_id_0:
        description: ServiceData2 volume for plt VMs
        value: {get_resource: plt_volume_shared_0}

    plt_volume_id_0:
        description: ServiceData1 volume for first plt VM
        value: {get_resource: plt_volume_0}

    plt_volume_id_1:
        description: ServiceData1 volume for second plt VM
        value: {get_resource: plt_volume_1}

    app_volume_id_0:
        description: ServiceData1 volume for first app VM
        value: {get_resource: app_volume_0}

    app_volume_id_1:
        description: ServiceData1 volume for second app VM
        value: {get_resource: app_volume_1}

    app_volume_id_2:
        description: ServiceData1 volume for third app VM
        value: {get_resource: app_volume_2}