Merge "The artifacttype's parent_type definition is error"
[parser.git] / tosca2heat / tosca-parser / toscaparser / extensions / nfv / tests / data / vRNC / Definitions / 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
33 # list of node type definitions
34 node_types:
35   rnc.nodes.VNF:
36     derived_from: tosca.nodes.nfv.VNF
37     properties:
38       vnftype:
39         type: string
40         description: type of the RNC
41         default:  UMTS
42         required: false
43         constraints:
44           - valid_values: [ TDS-CDMA, UMTS, CDMA ]
45     requirements:
46       - virtualLink_VNFM:
47           capability: tosca.capabilities.nfv.VirtualLinkable
48           relationship: tosca.relationships.nfv.VirtualLinksTo
49           node: rnc.nodes.VL
50       - virtualLink_EMS:
51           capability: tosca.capabilities.nfv.VirtualLinkable
52           relationship: tosca.relationships.nfv.VirtualLinksTo
53           node: rnc.nodes.VL
54       - virtualLink_TRAFFIC:
55           capability: tosca.capabilities.nfv.VirtualLinkable
56           relationship: tosca.relationships.nfv.VirtualLinksTo
57           node: rnc.nodes.VL
58
59   rnc.nodes.compute.MM:
60     derived_from: tosca.nodes.nfv.VDU
61     properties:
62       activestatus:
63         type: integer
64         description: 1 for active or 0 for passive
65         constraints:
66             - valid_values: [ 0, 1 ]
67       id:
68         type: string
69         defaule: MM
70         description: >
71           A identifier of this VDU within the scope of the VNFD,
72           including version functional description and other
73           identification information.
74
75   rnc.nodes.compute.CM:
76     derived_from: tosca.nodes.nfv.VDU
77     properties:
78       activestatus:
79         type: integer
80         description: 1 for active or 0 for passive
81         constraints:
82           - valid_values: [ 0, 1 ]
83
84   rnc.nodes.compute.DM:
85     derived_from: tosca.nodes.nfv.VDU
86
87   rnc.nodes.compute.LB:
88     derived_from: tosca.nodes.nfv.VDU
89
90   rnc.nodes.BlockStorage:
91     derived_from: tosca.nodes.BlockStorage
92
93   rnc.nodes.VL:
94     derived_from: tosca.nodes.nfv.VL
95
96   rnc.nodes.CP:
97     derived_from: tosca.nodes.nfv.CP
98
99   rnc.nodes.CP.MM:
100     derived_from: tosca.nodes.nfv.CP
101     # It's ok here because of the weakly validation.
102
103   rnc.nodes.CP.CM:
104     derived_from: tosca.nodes.nfv.CP
105     requirements:
106       - virtualLink:
107           capability: tosca.capabilities.nfv.VirtualLinkable
108           relationship: tosca.relationships.nfv.VirtualLinksTo
109           node: rnc.nodes.VL
110       - virtualBinding:
111           capability: tosca.capabilities.nfv.VirtualBindable
112           relationship: tosca.relationships.nfv.VirtualBindsTo
113           node: rnc.nodes.compute.CM
114
115   rnc.nodes.CP.DM:
116     derived_from: tosca.nodes.nfv.CP
117     requirements:
118       - virtualLink:
119           capability: tosca.capabilities.nfv.VirtualLinkable
120           relationship: tosca.relationships.nfv.VirtualLinksTo
121           node: rnc.nodes.VL
122       - virtualBinding:
123           capability: tosca.capabilities.nfv.VirtualBindable
124           relationship: tosca.relationships.nfv.VirtualBindsTo
125           node: rnc.nodes.compute.DM
126
127   rnc.nodes.CP.LB:
128     derived_from: tosca.nodes.nfv.CP
129     requirements:
130       - virtualLink:
131           capability: tosca.capabilities.nfv.VirtualLinkable
132           relationship: tosca.relationships.nfv.VirtualLinksTo
133           node: rnc.nodes.VL
134       - virtualBinding:
135           capability: tosca.capabilities.nfv.VirtualBindable
136           relationship: tosca.relationships.nfv.VirtualBindsTo
137           node: rnc.nodes.compute.LB
138
139 # list of capability type definitions
140 capability_types:
141   rnc.capabilities.Container:
142     derived_from: tosca.capabilities.Container
143     properties:
144       swap:
145         type: scalar-unit.size
146         description: swap info
147         required: false
148         default: 0
149         constraints:
150             - greater_or_equal: 0 MB
151       iops:
152         type: integer
153         description: IOPS for disk
154         required: false
155         default: 0
156         constraints:
157           - greater_than: 0