remove contributors
[parser.git] / docs / developer / design / examples / Simple_RNC_definition.yaml
1 ##    Licensed under the Apache License, Version 2.0 (the "License"); you may
2 ##    not use this file except in compliance with the License. You may obtain
3 ##    a copy of the License at
4 ##
5 ##         http://www.apache.org/licenses/LICENSE-2.0
6 ##
7 ##    Unless required by applicable law or agreed to in writing, software
8 ##    distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
9 ##    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
10 ##    License for the specific language governing permissions and limitations
11 ##    under the License.
12
13 tosca_definitions_version: tosca_simple_profile_for_nfv_1_0_0
14
15 #metadata:
16 #  template_name: tosca_simple_profile_for_nfv_vRNC
17 #  template_author: opnfv_parser_project_from_zte
18 #  template_version: tosca_simple_profile_for_nfv_1_0
19
20 # Optional description of the definitions inside the file.
21 description: >
22   NFV TOSCA simple profile for RNC types
23     1. Compute Node MM, CM, DM, LB...
24        1.1 MM: MaintainModule;
25        1.2 CM: Control Module;
26        1.3 DM: Data Module;
27        1.4 LB: LineCard Module.
28     2. Network Node VL and CP
29
30 # The import section shall be ignored if the value of tosca_definitions_version
31 # is tosca_simple_profile_for_nfv_1_0_0, otherwise will be needed.
32 #imports:
33 #  - TOSCA_nfv_definition_1_0.yaml
34
35 # list of node type definitions
36 node_types:
37   rnc.nodes.VNF:
38     derived_from: tosca.nodes.nfv.VNF
39     properties:
40       vnftype:
41         type: string
42         description: type of the RNC
43         default:  UMTS
44         required: false
45         constraints:
46           - valid_values: [ TDS-CDMA, UMTS, CDMA ]
47     requirements:
48       - virtualLink_VNFM:
49           capability: tosca.capabilities.nfv.VirtualLinkable
50           relationship: tosca.relationships.nfv.VirtualLinksTo
51           node: rnc.nodes.VL
52       - virtualLink_EMS:
53           capability: tosca.capabilities.nfv.VirtualLinkable
54           relationship: tosca.relationships.nfv.VirtualLinksTo
55           node: rnc.nodes.VL
56       - virtualLink_TRAFFIC:
57           capability: tosca.capabilities.nfv.VirtualLinkable
58           relationship: tosca.relationships.nfv.VirtualLinksTo
59           node: rnc.nodes.VL
60
61   rnc.nodes.compute.MM:
62     derived_from: tosca.nodes.nfv.VDU
63     properties:
64       activestatus:
65         type: integer
66         description: 1 for active or 0 for passive
67         constraints:
68             - valid_values: [ 0, 1 ]
69       id:
70         type: string
71         defaule: MM
72         description: >
73           A identifier of this VDU within the scope of the VNFD,
74           including version functional description and other
75           identification information.
76
77   rnc.nodes.compute.CM:
78     derived_from: tosca.nodes.nfv.VDU
79     properties:
80       activestatus:
81         type: integer
82         description: 1 for active or 0 for passive
83         constraints:
84           - valid_values: [ 0, 1 ]
85
86   rnc.nodes.compute.DM:
87     derived_from: tosca.nodes.nfv.VDU
88
89   rnc.nodes.compute.LB:
90     derived_from: tosca.nodes.nfv.VDU
91
92   rnc.nodes.BlockStorage:
93     derived_from: tosca.nodes.BlockStorage
94
95   rnc.nodes.VL:
96     derived_from: tosca.nodes.nfv.VL
97
98   rnc.nodes.CP:
99     derived_from: tosca.nodes.nfv.CP
100
101 # list of capability type definitions
102 capability_types:
103   rnc.capabilities.Container:
104     derived_from: tosca.capabilities.Container
105     properties:
106       swap:
107         type: scalar-unit.size
108         description: swap info
109         required: false
110         default: 0
111         constraints:
112             - greater_or_equal: 0 MB
113       iops:
114         type: integer
115         description: IOPS for disk
116         required: false
117         default: 0
118         constraints:
119           - greater_than: 0