blob: c0eb018e264ca7c70ac711b0b3fc63743ee1dbf2 [file] [log] [blame]
Matteo Scandolo770c49f2016-09-23 15:07:38 -07001tosca_definitions_version: tosca_simple_yaml_1_0
2
3# compile this with "m4 metronet.m4 > metronet.yaml"
4
5# include macros
6# Note: Tosca derived_from isn't working the way I think it should, it's not
7# inheriting from the parent template. Until we get that figured out, use
8# m4 macros do our inheritance
9
10
11# Service
12
13
14# Subscriber
15
16
17
18
19# end m4 macros
20
21
22
23node_types:
Andrea Campanellae92c9092017-03-17 10:44:37 +010024
25 tosca.nodes.VNodGlobalService:
26 description: >
27 CORD: The MetroNet Service.
28 derived_from: tosca.nodes.Root
29 capabilities:
30 scalable:
31 type: tosca.capabilities.Scalable
32 service:
33 type: tosca.capabilities.xos.Service
34 properties:
35 no-delete:
36 type: boolean
37 default: false
38 description: Do not allow Tosca to delete this object
39 no-create:
40 type: boolean
41 default: false
42 description: Do not allow Tosca to create this object
43 no-update:
44 type: boolean
45 default: false
46 description: Do not allow Tosca to update this object
47 replaces:
48 type: string
49 required: false
50 descrption: Replaces/renames this object
51 kind:
52 type: string
53 default: generic
54 description: Type of service.
55 view_url:
56 type: string
57 required: false
58 description: URL to follow when icon is clicked in the Service Directory.
59 icon_url:
60 type: string
61 required: false
62 description: ICON to display in the Service Directory.
63 enabled:
64 type: boolean
65 default: true
66 published:
67 type: boolean
68 default: true
69 description: If True then display this Service in the Service Directory.
70 public_key:
71 type: string
72 required: false
73 description: Public key to install into Instances to allows Services to SSH into them.
74 private_key_fn:
75 type: string
76 required: false
77 description: Location of private key file
78 versionNumber:
79 type: string
80 required: false
81 description: Version number of Service.
82
83 tosca.nodes.MetroNetworkSystem:
Matteo Scandolo770c49f2016-09-23 15:07:38 -070084 derived_from: tosca.nodes.Root
85 description: >
86 CORD: The Metro Network Service.
87 capabilities:
88 scalable:
89 type: tosca.capabilities.Scalable
90 service:
91 type: tosca.capabilities.xos.Service
92 properties:
93 no-delete:
94 type: boolean
95 default: false
96 description: Do not allow Tosca to delete this object
97 no-create:
98 type: boolean
99 default: false
100 description: Do not allow Tosca to create this object
101 no-update:
102 type: boolean
103 default: false
104 description: Do not allow Tosca to update this object
105 replaces:
106 type: string
107 required: false
108 descrption: Replaces/renames this object
Andrea Campanellae92c9092017-03-17 10:44:37 +0100109 kind:
110 type: string
111 default: generic
112 description: Type of service.
113 view_url:
114 type: string
115 required: false
116 description: URL to follow when icon is clicked in the Service Directory.
117 icon_url:
118 type: string
119 required: false
120 description: ICON to display in the Service Directory.
121 enabled:
122 type: boolean
123 default: true
124 published:
125 type: boolean
126 default: true
127 description: If True then display this Service in the Service Directory.
128 public_key:
129 type: string
130 required: false
131 description: Public key to install into Instances to allows Services to SSH into them.
132 private_key_fn:
133 type: string
134 required: false
135 description: Location of private key file
136 versionNumber:
137 type: string
138 required: false
139 description: Version number of Service.
Matteo Scandolo9563aeb2016-09-28 16:07:58 -0700140 administrativeState:
Matteo Scandolo770c49f2016-09-23 15:07:38 -0700141 type: string
Matteo Scandolo9563aeb2016-09-28 16:07:58 -0700142 required: true
143 restUrl:
Matteo Scandolo770c49f2016-09-23 15:07:38 -0700144 type: string
145 required: false
Matteo Scandolo9563aeb2016-09-28 16:07:58 -0700146
Matteo Scandoloddce4ec2016-09-26 13:11:03 -0700147
Andrea Campanellae92c9092017-03-17 10:44:37 +0100148 tosca.nodes.MetroNetworkDevice:
Matteo Scandoloddce4ec2016-09-26 13:11:03 -0700149 derived_from: tosca.nodes.Root
150 description: >
151 CORD: The Metro Network Device.
152 properties:
153 no-delete:
154 type: boolean
155 default: false
156 description: Do not allow Tosca to delete this object
157 no-create:
158 type: boolean
159 default: false
160 description: Do not allow Tosca to create this object
161 no-update:
162 type: boolean
163 default: false
164 description: Do not allow Tosca to update this object
165 replaces:
166 type: string
167 required: false
168 descrption: Replaces/renames this object
169 restCtrlUrl:
170 type: string
171 required: true
172 username:
173 type: string
174 required: true
175 password:
176 type: string
177 required: true
178 administrativeState:
179 type: string
180 required: true
181 authType:
182 type: string
183 required: false
Matteo Scandolo9563aeb2016-09-28 16:07:58 -0700184 id:
185 type: string
186 required: true
Andrea Campanellae92c9092017-03-17 10:44:37 +0100187
188 tosca.nodes.EcordBandwidthProfile:
189 derived_from: tosca.nodes.Root
190 description: >
191 CORD: The ecord bandwith profile.
192 capabilities:
193 scalable:
194 type: tosca.capabilities.Scalable
195 service:
196 type: tosca.capabilities.xos.Service
197 properties:
198 no-delete:
199 type: boolean
200 default: false
201 description: Do not allow Tosca to delete this object
202 no-create:
203 type: boolean
204 default: false
205 description: Do not allow Tosca to create this object
206 no-update:
207 type: boolean
208 default: false
209 description: Do not allow Tosca to update this object
210 replaces:
211 type: string
212 required: false
213 descrption: Replaces/renames this object
214 bwpcfgcbs:
215 type: integer
216 required: false
217 bwpcfgebs:
218 type: integer
219 required: false
220 bwpcfgcir:
221 type: integer
222 required: false
223 bwpcfgeir:
224 type: integer
225 required: false
226 name:
227 type: string
228 required: true
229
230 tosca.relationships.UsesBandwidthProfile:
231 derived_from: tosca.relationships.Root
232 valid_target_types: [ tosca.capabilities.xos.EcordBandwidthProfile ]