summaryrefslogtreecommitdiffstats
path: root/docs/tosca2heat/simple_rnc_definition/Simple_RNC_definition.yaml
blob: 921da0dc184b55bed7799d3ad460b44891fc9b20 (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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
# Required TOSCA Definitions version string
tosca_definitions_version: tosca_simple_yaml_1_0

metadata:
  template_name: tosca_simple_profile_for_nfv
  template_author: opnfv_parser_project
  template_version: tosca_simple_profile_for_nfv_1_0

# Optional description of the definitions inside the file.
description: >
  NFV TOSCA simple profile for RNC types
    1, Compute Node MM, CM, DM, LB...
       1.1 MM: MaintainModule;
       1.2 CM: Control Module;
       1.3 DM: Data Module;
       1.4 LB: LineCard Module
    2, Network Node VL and CP

imports:
  - TOSCA_nfv_definition_1_0.yaml

# list of node type definitions
node_types:
  rnc.nodes.VNF:
    derived_from: tosca.nodes.nfv.VNF
    properties:
      vnftype:
        type: string
        description: type of the vnf
        default:  UMTS
        required: false
        constraints:
          - valid_values: [ TD, UMTS ]
    requirements:
      - virtualLink_VNFM:
          capability: tosca.capabilities.nfv.VirtualLinkable
      - virtualLink_EMS:
          capability: tosca.capabilities.nfv.VirtualLinkable
      - virtualLink_TRAFFIC:
          capability: tosca.capabilities.nfv.VirtualLinkable
          
  rnc.nodes.compute.MM:
    derived_from: tosca.nodes.nfv.VDU
    properties:
      activestatus:
        type: integer
        description: active or passive
        constraints:
            # 1 active, 0 passive
            - valid_values: [ 0, 1 ]
      id:
        type: string
        defaule: MM
        description: >
          A identifier of this VDU within the scope of the VNFD,
          including version functional description and other
          identification information.
    requirements:
      - host:
          capability: tosca.capabilities.Container
          node: rnc.nodes.compute.MM_Host
          relationship: tosca.relationships.HostedOn
          
  rnc.nodes.compute.MM_Host:
    derived_from: tosca.nodes.Compute
    capabilities:
      binding:
         type: tosca.capabilities.network.Bindable
      os:
         type: tosca.capabilities.OperatingSystem
      scalable:
         type: tosca.capabilities.Scalable
      host:
        type: rnc.capabilities.Container
        valid_source_types: [ tosca.nodes.SoftwareComponent ]
      storage:
        type: tosca.capabilities.nfv.Storage
        valid_source_types: [ tosca.nodes.SoftwareComponent ]
    attributes:
      ip_address:
        type: string

  rnc.nodes.compute.CM:
    derived_from: tosca.nodes.nfv.VDU
    properties:
      activestatus:
        type: integer
        description: 1 for active or 0 for passive
        constraints:
           # 1 active, 0 passive
           - valid_values: [ 0, 1 ]
    requirements:
      - host:
          capability: tosca.capabilities.Container
          node: rnc.nodes.compute.CM_Host
          relationship: tosca.relationships.HostedOn
          
  rnc.nodes.compute.CM_Host:
    derived_from: tosca.nodes.Compute
    capabilities:
      binding:
         type: tosca.capabilities.network.Bindable
      os:
         type: tosca.capabilities.OperatingSystem
      scalable:
         type: tosca.capabilities.Scalable
      host:
        type: rnc.capabilities.Container
        valid_source_types: [ tosca.nodes.SoftwareComponent ]
      cpu_extension:
        type: tosca.capabilities.nfv.CPU_extension
        valid_source_types: [ tosca.nodes.SoftwareComponent ]
      memory_extension:
        type: tosca.capabilities.nfv.Memory_extension
        valid_source_types: [ tosca.nodes.SoftwareComponent ]
      hypervisors:
        type: tosca.capabilities.nfv.Hypervisors
        valid_source_types: [ tosca.nodes.SoftwareComponent ]
      PCIe:
        type: tosca.capabilities.nfv.PCIe
        valid_source_types: [ tosca.nodes.SoftwareComponent ]
      interfaces:
        type: tosca.capabilities.nfv.network.Interfaces
        valid_source_types: [ tosca.nodes.SoftwareComponent ]
      virtual_switches:
        type: tosca.capabilities.nfv.network.Virtual_switches
        valid_source_types: [ tosca.nodes.SoftwareComponent ]
    attributes:
      ip_address:
        type: string

  rnc.nodes.compute.DM:
    derived_from: tosca.nodes.nfv.VDU
    requirements:
      - host:
          capability: tosca.capabilities.Container
          node: rnc.nodes.compute.DM_Host
          relationship: tosca.relationships.HostedOn

  rnc.nodes.compute.DM_Host:
    derived_from: tosca.nodes.Compute
    capabilities:
      binding:
         type: tosca.capabilities.network.Bindable
      os:
         type: tosca.capabilities.OperatingSystem
      scalable:
         type: tosca.capabilities.Scalable
      host:
        type: rnc.capabilities.Container
        valid_source_types: [ tosca.nodes.SoftwareComponent ]
      cpu_extension:
        type: tosca.capabilities.nfv.CPU_extension
        valid_source_types: [ tosca.nodes.SoftwareComponent ]
      memory_extension:
        type: tosca.capabilities.nfv.Memory_extension
        valid_source_types: [ tosca.nodes.SoftwareComponent ]
      hypervisors:
        type: tosca.capabilities.nfv.Hypervisors
        valid_source_types: [ tosca.nodes.SoftwareComponent ]
      PCIe:
        type: tosca.capabilities.nfv.PCIe
        valid_source_types: [ tosca.nodes.SoftwareComponent ]
      interfaces:
        type: tosca.capabilities.nfv.network.Interfaces
        valid_source_types: [ tosca.nodes.SoftwareComponent ]
      virtual_switches:
        type: tosca.capabilities.nfv.network.Virtual_switches
        valid_source_types: [ tosca.nodes.SoftwareComponent ]
    attributes:
      ip_address:
        type: string

  rnc.nodes.compute.LB:
    derived_from: tosca.nodes.nfv.VDU
    requirements:
      - host:
          capability: tosca.capabilities.Container
          node: rnc.nodes.compute.LB_Host
          relationship: tosca.relationships.HostedOn

  rnc.nodes.compute.LB_Host:
    derived_from: tosca.nodes.Compute
    capabilities:
      binding:
         type: tosca.capabilities.network.Bindable
      os:
         type: tosca.capabilities.OperatingSystem
      scalable:
         type: tosca.capabilities.Scalable
      host:
        type: rnc.capabilities.Container
        valid_source_types: [ tosca.nodes.SoftwareComponent ]
      interfaces:
        type: tosca.capabilities.nfv.network.Interfaces
        valid_source_types: [ tosca.nodes.SoftwareComponent ]
      virtual_switches:
        type: tosca.capabilities.nfv.network.Virtual_switches
        valid_source_types: [ tosca.nodes.SoftwareComponent ]
    attributes:
      ip_address:
        type: string

  rnc.nodes.BlockStorage:
    derived_from: tosca.nodes.BlockStorage

  rnc.nodes.VL:
    derived_from: tosca.nodes.nfv.VL.ELAN
    properties:
      ip_version:
        type: integer
        required: false
        default: 4
        constraints:
            - valid_values: [ 4, 6 ]
      cidr:
        type: string
        required: false
      network_name:
        type: string
        required: false
      dhcp_enabled:
        type: boolean
        required: false
        default: true
        description: >
          Indicates should DHCP service be enabled on the network or not.

  rnc.nodes.CP:
    derived_from: tosca.nodes.nfv.CP
    properties:
      ip_address:
        type: string
        required: false
      order:
        type: integer
        required: true
        default: 0
        constraints:
          - greater_or_equal: 0
      is_default:
        type: boolean
        required: false
        default: false

# list of capability type definitions
capability_types:
  rnc.capabilities.Container:
    derived_from: tosca.capabilities.Container
    properties:
      swap:
        type: scalar-unit.size
        description: swap info
        required: false
        default: 0
        constraints:
            - greater_or_equal: 0 MB
      iops:
        type: integer
        description: IOPS for disk
        required: false
        default: 0
        constraints:
          - greater_than: 0