blob: efc347118da0377e48eb6df8f465b93d2e533eb8 [file] [log] [blame]
Matteo Scandolofcf842e2017-08-08 13:05:25 -07001
2# Copyright 2017-present Open Networking Foundation
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
16
Matteo Scandolo770c49f2016-09-23 15:07:38 -070017tosca_definitions_version: tosca_simple_yaml_1_0
18
19# compile this with "m4 metronet.m4 > metronet.yaml"
20
21# include macros
22# Note: Tosca derived_from isn't working the way I think it should, it's not
23# inheriting from the parent template. Until we get that figured out, use
24# m4 macros do our inheritance
25
26
27# Service
28
29
30# Subscriber
31
32
33
34
35# end m4 macros
36
37
38
39node_types:
Andrea Campanellae92c9092017-03-17 10:44:37 +010040
41 tosca.nodes.VNodGlobalService:
42 description: >
43 CORD: The MetroNet Service.
44 derived_from: tosca.nodes.Root
45 capabilities:
46 scalable:
47 type: tosca.capabilities.Scalable
48 service:
49 type: tosca.capabilities.xos.Service
50 properties:
51 no-delete:
52 type: boolean
53 default: false
54 description: Do not allow Tosca to delete this object
55 no-create:
56 type: boolean
57 default: false
58 description: Do not allow Tosca to create this object
59 no-update:
60 type: boolean
61 default: false
62 description: Do not allow Tosca to update this object
63 replaces:
64 type: string
65 required: false
66 descrption: Replaces/renames this object
67 kind:
68 type: string
69 default: generic
70 description: Type of service.
71 view_url:
72 type: string
73 required: false
74 description: URL to follow when icon is clicked in the Service Directory.
75 icon_url:
76 type: string
77 required: false
78 description: ICON to display in the Service Directory.
79 enabled:
80 type: boolean
81 default: true
82 published:
83 type: boolean
84 default: true
85 description: If True then display this Service in the Service Directory.
86 public_key:
87 type: string
88 required: false
89 description: Public key to install into Instances to allows Services to SSH into them.
90 private_key_fn:
91 type: string
92 required: false
93 description: Location of private key file
94 versionNumber:
95 type: string
96 required: false
97 description: Version number of Service.
98
99 tosca.nodes.MetroNetworkSystem:
Matteo Scandolo770c49f2016-09-23 15:07:38 -0700100 derived_from: tosca.nodes.Root
101 description: >
102 CORD: The Metro Network Service.
103 capabilities:
104 scalable:
105 type: tosca.capabilities.Scalable
106 service:
107 type: tosca.capabilities.xos.Service
108 properties:
109 no-delete:
110 type: boolean
111 default: false
112 description: Do not allow Tosca to delete this object
113 no-create:
114 type: boolean
115 default: false
116 description: Do not allow Tosca to create this object
117 no-update:
118 type: boolean
119 default: false
120 description: Do not allow Tosca to update this object
121 replaces:
122 type: string
123 required: false
124 descrption: Replaces/renames this object
Andrea Campanellae92c9092017-03-17 10:44:37 +0100125 kind:
126 type: string
127 default: generic
128 description: Type of service.
129 view_url:
130 type: string
131 required: false
132 description: URL to follow when icon is clicked in the Service Directory.
133 icon_url:
134 type: string
135 required: false
136 description: ICON to display in the Service Directory.
137 enabled:
138 type: boolean
139 default: true
140 published:
141 type: boolean
142 default: true
143 description: If True then display this Service in the Service Directory.
144 public_key:
145 type: string
146 required: false
147 description: Public key to install into Instances to allows Services to SSH into them.
148 private_key_fn:
149 type: string
150 required: false
151 description: Location of private key file
152 versionNumber:
153 type: string
154 required: false
155 description: Version number of Service.
Matteo Scandolo9563aeb2016-09-28 16:07:58 -0700156 administrativeState:
Matteo Scandolo770c49f2016-09-23 15:07:38 -0700157 type: string
Matteo Scandolo9563aeb2016-09-28 16:07:58 -0700158 required: true
159 restUrl:
Matteo Scandolo770c49f2016-09-23 15:07:38 -0700160 type: string
161 required: false
Matteo Scandolo9563aeb2016-09-28 16:07:58 -0700162
Matteo Scandoloddce4ec2016-09-26 13:11:03 -0700163
Andrea Campanellae92c9092017-03-17 10:44:37 +0100164 tosca.nodes.MetroNetworkDevice:
Matteo Scandoloddce4ec2016-09-26 13:11:03 -0700165 derived_from: tosca.nodes.Root
166 description: >
167 CORD: The Metro Network Device.
168 properties:
169 no-delete:
170 type: boolean
171 default: false
172 description: Do not allow Tosca to delete this object
173 no-create:
174 type: boolean
175 default: false
176 description: Do not allow Tosca to create this object
177 no-update:
178 type: boolean
179 default: false
180 description: Do not allow Tosca to update this object
181 replaces:
182 type: string
183 required: false
184 descrption: Replaces/renames this object
185 restCtrlUrl:
186 type: string
187 required: true
188 username:
189 type: string
190 required: true
191 password:
192 type: string
193 required: true
194 administrativeState:
195 type: string
196 required: true
197 authType:
198 type: string
199 required: false
Matteo Scandolo9563aeb2016-09-28 16:07:58 -0700200 id:
201 type: string
202 required: true
Andrea Campanellae92c9092017-03-17 10:44:37 +0100203
204 tosca.nodes.EcordBandwidthProfile:
205 derived_from: tosca.nodes.Root
206 description: >
207 CORD: The ecord bandwith profile.
208 capabilities:
Andrea Campanellae92c9092017-03-17 10:44:37 +0100209 properties:
210 no-delete:
211 type: boolean
212 default: false
213 description: Do not allow Tosca to delete this object
214 no-create:
215 type: boolean
216 default: false
217 description: Do not allow Tosca to create this object
218 no-update:
219 type: boolean
220 default: false
221 description: Do not allow Tosca to update this object
222 replaces:
223 type: string
224 required: false
225 descrption: Replaces/renames this object
226 bwpcfgcbs:
227 type: integer
228 required: false
229 bwpcfgebs:
230 type: integer
231 required: false
232 bwpcfgcir:
233 type: integer
234 required: false
235 bwpcfgeir:
236 type: integer
237 required: false
238 name:
239 type: string
240 required: true
241
Andrea Campanella11237552017-03-21 17:21:20 +0100242 tosca.nodes.EcordUserNetworkInterface:
243 derived_from: tosca.nodes.Root
244 description: >
245 CORD: The ecord user netowrk interface
246 capabilities:
247 properties:
248 no-delete:
249 type: boolean
250 default: false
251 description: Do not allow Tosca to delete this object
252 no-create:
253 type: boolean
254 default: false
255 description: Do not allow Tosca to create this object
256 no-update:
257 type: boolean
258 default: false
259 description: Do not allow Tosca to update this object
260 replaces:
261 type: string
262 required: false
263 descrption: Replaces/renames this object
264 enabled:
265 type: boolean
266 required: false
267 capacity:
268 type: integer
269 required: false
270 bw_used:
271 type: integer
272 required: false
273 vlanIds:
274 type: string
275 required: false
276 name:
277 type: string
278 required: true
279 location:
280 type: string
281 required: false
282 latlng:
283 type: string
284 required: false
285
Andrea Campanellae92c9092017-03-17 10:44:37 +0100286 tosca.relationships.UsesBandwidthProfile:
287 derived_from: tosca.relationships.Root
288 valid_target_types: [ tosca.capabilities.xos.EcordBandwidthProfile ]