Add output in vRNC for substitution mappings
[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
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     attributes:
46       private_ip_of_MM:
47         type: string
48         description: IP of master MM
49       private_ip_of_CM:
50         type: string
51         description: IP of master CM
52       private_ip_of_DM:
53         type: string
54         description: IP of master DM
55       private_ip_of_LB:
56         type: string
57         description: IP of master LB
58     requirements:
59       - virtualLink_VNFM:
60           capability: tosca.capabilities.nfv.VirtualLinkable
61           relationship: tosca.relationships.nfv.VirtualLinksTo
62           node: rnc.nodes.VL
63       - virtualLink_EMS:
64           capability: tosca.capabilities.nfv.VirtualLinkable
65           relationship: tosca.relationships.nfv.VirtualLinksTo
66           node: rnc.nodes.VL
67       - virtualLink_TRAFFIC:
68           capability: tosca.capabilities.nfv.VirtualLinkable
69           relationship: tosca.relationships.nfv.VirtualLinksTo
70           node: rnc.nodes.VL
71
72   rnc.nodes.compute.MM:
73     derived_from: tosca.nodes.nfv.VDU
74     properties:
75       activestatus:
76         type: integer
77         required: false
78         description: 1 for active or 0 for passive
79         constraints:
80             - valid_values: [ 0, 1 ]
81       id:
82         type: string
83         defaule: MM
84         required: false
85         description: >
86           A identifier of this VDU within the scope of the VNFD,
87           including version functional description and other
88           identification information.
89
90   rnc.nodes.compute.CM:
91     derived_from: tosca.nodes.nfv.VDU
92     properties:
93       activestatus:
94         type: integer
95         required: false
96         description: 1 for active or 0 for passive
97         constraints:
98           - valid_values: [ 0, 1 ]
99
100   rnc.nodes.compute.DM:
101     derived_from: tosca.nodes.nfv.VDU
102
103   rnc.nodes.compute.LB:
104     derived_from: tosca.nodes.nfv.VDU
105
106   rnc.nodes.BlockStorage:
107     derived_from: tosca.nodes.BlockStorage
108
109   rnc.nodes.VL:
110     derived_from: tosca.nodes.nfv.VL
111
112   rnc.nodes.CP:
113     derived_from: tosca.nodes.nfv.CP
114
115   rnc.nodes.CP.MM:
116     derived_from: tosca.nodes.nfv.CP
117     # It's ok here because of the weakly validation.
118
119   rnc.nodes.CP.CM:
120     derived_from: tosca.nodes.nfv.CP
121     requirements:
122       - virtualLink:
123           capability: tosca.capabilities.nfv.VirtualLinkable
124           relationship: tosca.relationships.nfv.VirtualLinksTo
125           node: rnc.nodes.VL
126       - virtualBinding:
127           capability: tosca.capabilities.nfv.VirtualBindable
128           relationship: tosca.relationships.nfv.VirtualBindsTo
129           node: rnc.nodes.compute.CM
130
131   rnc.nodes.CP.DM:
132     derived_from: tosca.nodes.nfv.CP
133     requirements:
134       - virtualLink:
135           capability: tosca.capabilities.nfv.VirtualLinkable
136           relationship: tosca.relationships.nfv.VirtualLinksTo
137           node: rnc.nodes.VL
138       - virtualBinding:
139           capability: tosca.capabilities.nfv.VirtualBindable
140           relationship: tosca.relationships.nfv.VirtualBindsTo
141           node: rnc.nodes.compute.DM
142
143   rnc.nodes.CP.LB:
144     derived_from: tosca.nodes.nfv.CP
145     requirements:
146       - virtualLink:
147           capability: tosca.capabilities.nfv.VirtualLinkable
148           relationship: tosca.relationships.nfv.VirtualLinksTo
149           node: rnc.nodes.VL
150       - virtualBinding:
151           capability: tosca.capabilities.nfv.VirtualBindable
152           relationship: tosca.relationships.nfv.VirtualBindsTo
153           node: rnc.nodes.compute.LB
154
155 # list of capability type definitions
156 capability_types:
157   rnc.capabilities.Container:
158     derived_from: tosca.capabilities.Container
159     properties:
160       swap:
161         type: scalar-unit.size
162         description: swap info
163         required: false
164         default: 0
165         constraints:
166             - greater_or_equal: 0 MB
167       iops:
168         type: integer
169         description: IOPS for disk
170         required: false
171         default: 0
172         constraints:
173           - greater_than: 0