blob: 17bd85a28cf824b34fff36c9d02de7a1d0186d63 [file] [log] [blame]
Andy Baviere3023282018-05-12 06:35:13 -07001{{/* vim: set filetype=mustache: */}}
2{{/*
3Copyright 2018-present Open Networking Foundation
4
5Licensed under the Apache License, Version 2.0 (the "License");
6you may not use this file except in compliance with the License.
7You may obtain a copy of the License at
8
9http://www.apache.org/licenses/LICENSE-2.0
10
11Unless required by applicable law or agreed to in writing, software
12distributed under the License is distributed on an "AS IS" BASIS,
13WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14See the License for the specific language governing permissions and
15limitations under the License.
16*/}}
17{{- define "onos-service.fabricAppTosca" -}}
18tosca_definitions_version: tosca_simple_yaml_1_0
19imports:
20 - custom_types/onosapp.yaml
21 - custom_types/onosservice.yaml
22description: ONOS service and app for fabric
23topology_template:
24 node_templates:
25 service#ONOS_Fabric:
26 type: tosca.nodes.ONOSService
27 properties:
28 name: ONOS_Fabric
29 kind: platform
Andy Bavierebfcfeb2018-07-13 13:04:13 -070030 rest_hostname: {{ .onosFabricRestService | quote }}
Andy Baviere3023282018-05-12 06:35:13 -070031 rest_port: 8181
32
Matteo Scandolo979695d2018-06-08 17:47:01 -070033 onos_app#segmentrouting:
Andy Baviere3023282018-05-12 06:35:13 -070034 type: tosca.nodes.ONOSApp
Andy Baviere3023282018-05-12 06:35:13 -070035 properties:
Matteo Scandoloa772b3c2018-06-11 17:38:42 -070036 name: org.onosproject.segmentrouting
Matteo Scandolo979695d2018-06-08 17:47:01 -070037 app_id: org.onosproject.segmentrouting
38 requirements:
39 - owner:
40 node: service#ONOS_Fabric
41 relationship: tosca.relationships.BelongsToOne
42
43 onos_app#vrouter:
44 type: tosca.nodes.ONOSApp
45 properties:
Matteo Scandoloa772b3c2018-06-11 17:38:42 -070046 name: org.onosproject.vrouter
Matteo Scandolo979695d2018-06-08 17:47:01 -070047 app_id: org.onosproject.vrouter
48 requirements:
49 - owner:
50 node: service#ONOS_Fabric
51 relationship: tosca.relationships.BelongsToOne
Matteo Scandolo3ce88142018-06-15 14:09:21 -070052
Matteo Scandolo3ce88142018-06-15 14:09:21 -070053 onos_app#netcfghostprovider:
54 type: tosca.nodes.ONOSApp
55 properties:
56 name: org.onosproject.netcfghostprovider
57 app_id: org.onosproject.netcfghostprovider
58 requirements:
59 - owner:
60 node: service#ONOS_Fabric
61 relationship: tosca.relationships.BelongsToOne
62
Matteo Scandolo9a48ca02018-06-22 15:15:39 -070063 onos_app#openflow:
Matteo Scandolo3ce88142018-06-15 14:09:21 -070064 type: tosca.nodes.ONOSApp
65 properties:
Matteo Scandolo9a48ca02018-06-22 15:15:39 -070066 name: org.onosproject.openflow
67 app_id: org.onosproject.openflow
Matteo Scandolo3ce88142018-06-15 14:09:21 -070068 requirements:
69 - owner:
70 node: service#ONOS_Fabric
71 relationship: tosca.relationships.BelongsToOne
Andy Baviere3023282018-05-12 06:35:13 -070072{{- end -}}
73
74{{- define "onos-service.vtnAppTosca" -}}
75tosca_definitions_version: tosca_simple_yaml_1_0
76
77imports:
78 - custom_types/onosapp.yaml
79 - custom_types/onosservice.yaml
80 - custom_types/serviceinstanceattribute.yaml
81
82description: Configures the VTN ONOS service
83
84topology_template:
85 node_templates:
86
87 service#ONOS_CORD:
88 type: tosca.nodes.ONOSService
89 properties:
90 name: ONOS_CORD
91 kind: platform
Andy Bavierebfcfeb2018-07-13 13:04:13 -070092 rest_hostname: {{ .onosCordRestService | quote }}
Andy Baviere3023282018-05-12 06:35:13 -070093 rest_port: 8181
94
Matteo Scandolo9a48ca02018-06-22 15:15:39 -070095 onos_app#openflow:
Matteo Scandolo19f71f82018-06-13 16:14:08 -070096 type: tosca.nodes.ONOSApp
97 properties:
Matteo Scandolo9a48ca02018-06-22 15:15:39 -070098 name: org.onosproject.openflow
99 app_id: org.onosproject.openflow
Matteo Scandolo19f71f82018-06-13 16:14:08 -0700100 requirements:
101 - owner:
102 node: service#ONOS_CORD
103 relationship: tosca.relationships.BelongsToOne
104
105 onos_app#dhcp:
106 type: tosca.nodes.ONOSApp
107 properties:
108 name: org.onosproject.dhcp
109 app_id: org.onosproject.dhcp
110 requirements:
111 - owner:
112 node: service#ONOS_CORD
113 relationship: tosca.relationships.BelongsToOne
114
Matteo Scandolo979695d2018-06-08 17:47:01 -0700115 onos_app#cord-config:
Andy Baviere3023282018-05-12 06:35:13 -0700116 type: tosca.nodes.ONOSApp
Andy Baviere3023282018-05-12 06:35:13 -0700117 properties:
Matteo Scandolo979695d2018-06-08 17:47:01 -0700118 name: cord-config
Matteo Scandolo28ff9422018-06-25 14:52:46 -0700119 app_id: org.opencord.cord-config
Matteo Scandolo979695d2018-06-08 17:47:01 -0700120 url: {{ .cordConfigAppURL }}
121 version: 1.4.0
Matteo Scandolo9a48ca02018-06-22 15:15:39 -0700122 dependencies: org.onosproject.openflow, org.onosproject.dhcp
Matteo Scandolo979695d2018-06-08 17:47:01 -0700123 requirements:
124 - owner:
125 node: service#ONOS_CORD
126 relationship: tosca.relationships.BelongsToOne
Andy Baviere3023282018-05-12 06:35:13 -0700127
Matteo Scandolo979695d2018-06-08 17:47:01 -0700128 onos_app#vtn:
129 type: tosca.nodes.ONOSApp
130 properties:
131 name: vtn
Matteo Scandolo28ff9422018-06-25 14:52:46 -0700132 app_id: org.opencord.vtn
Matteo Scandolo979695d2018-06-08 17:47:01 -0700133 url: {{ .vtnAppURL }}
134 version: 1.6.0
Matteo Scandolof7d9d742018-06-28 14:06:42 -0700135 dependencies: org.opencord.cord-config
Matteo Scandolo979695d2018-06-08 17:47:01 -0700136 requirements:
137 - owner:
138 node: service#ONOS_CORD
139 relationship: tosca.relationships.BelongsToOne
Andy Baviere3023282018-05-12 06:35:13 -0700140{{- end -}}
Matteo Scandoloa772b3c2018-06-11 17:38:42 -0700141
142{{- define "onos-service.volthaOnosTosca" -}}
143tosca_definitions_version: tosca_simple_yaml_1_0
144
145imports:
146 - custom_types/onosapp.yaml
147 - custom_types/onosservice.yaml
148 - custom_types/serviceinstanceattribute.yaml
149
Andy Bavierebfcfeb2018-07-13 13:04:13 -0700150description: Configures the VOLTHA ONOS service
Matteo Scandoloa772b3c2018-06-11 17:38:42 -0700151
152topology_template:
153 node_templates:
154
Andy Bavierebfcfeb2018-07-13 13:04:13 -0700155 service#ONOS_VOLTHA:
Matteo Scandoloa772b3c2018-06-11 17:38:42 -0700156 type: tosca.nodes.ONOSService
157 properties:
158 name: ONOS_VOLTHA
159 kind: platform
Andy Bavierebfcfeb2018-07-13 13:04:13 -0700160 rest_hostname: {{ .onosVolthaRestService | quote }}
Matteo Scandoloa772b3c2018-06-11 17:38:42 -0700161 rest_port: 8181
162
Jonathan Hart5c3e5292018-08-06 11:22:52 -0700163 onos_app#cord-config:
164 type: tosca.nodes.ONOSApp
165 properties:
166 name: cord-config
167 app_id: org.opencord.config
168 url: {{ .cordConfigAppURL }}
169 version: 1.4.0
170 requirements:
171 - owner:
172 node: service#ONOS_VOLTHA
173 relationship: tosca.relationships.BelongsToOne
174
Matteo Scandoloa772b3c2018-06-11 17:38:42 -0700175 onos_app#olt:
176 type: tosca.nodes.ONOSApp
177 properties:
Jonathan Hart5c3e5292018-08-06 11:22:52 -0700178 name: olt
Matteo Scandoloa772b3c2018-06-11 17:38:42 -0700179 app_id: org.opencord.olt
Jonathan Hart5c3e5292018-08-06 11:22:52 -0700180 url: {{ .oltAppUrl }}
181 version: 2.0.0.SNAPSHOT
182 requirements:
183 - owner:
184 node: service#ONOS_VOLTHA
185 relationship: tosca.relationships.BelongsToOne
186
187 onos_app#sadis:
188 type: tosca.nodes.ONOSApp
189 properties:
190 name: sadis
191 app_id: org.opencord.sadis
192 url: {{ .sadisAppUrl }}
193 version: 2.1.0
Jonathan Hartc2be1a42018-07-17 18:45:45 -0700194 requirements:
195 - owner:
Matteo Scandoloc34abd32018-07-25 11:38:21 -0700196 node: service#ONOS_VOLTHA
Jonathan Hartc2be1a42018-07-17 18:45:45 -0700197 relationship: tosca.relationships.BelongsToOne
198
199 onos_app#dhcpl2relay:
200 type: tosca.nodes.ONOSApp
201 properties:
Jonathan Hart5c3e5292018-08-06 11:22:52 -0700202 name: dhcpl2relay
Jonathan Hartc2be1a42018-07-17 18:45:45 -0700203 app_id: org.opencord.dhcpl2relay
Jonathan Hart5c3e5292018-08-06 11:22:52 -0700204 url: {{ .dhcpl2relayAppUrl }}
205 version: 1.5.0.SNAPSHOT
Matteo Scandoloa772b3c2018-06-11 17:38:42 -0700206 requirements:
207 - owner:
Matteo Scandoloc34abd32018-07-25 11:38:21 -0700208 node: service#ONOS_VOLTHA
Jonathan Hartc2be1a42018-07-17 18:45:45 -0700209 relationship: tosca.relationships.BelongsToOne
210
211 onos_app#aaa:
212 type: tosca.nodes.ONOSApp
213 properties:
Jonathan Hart5c3e5292018-08-06 11:22:52 -0700214 name: aaa
Jonathan Hartc2be1a42018-07-17 18:45:45 -0700215 app_id: org.opencord.aaa
Jonathan Hart5c3e5292018-08-06 11:22:52 -0700216 url: {{ .aaaAppUrl }}
217 version: 1.8.0.SNAPSHOT
218 requirements:
219 - owner:
220 node: service#ONOS_VOLTHA
221 relationship: tosca.relationships.BelongsToOne
222
223 onos_app#kafka:
224 type: tosca.nodes.ONOSApp
225 properties:
226 name: kafka
227 app_id: org.opencord.kafka
228 url: {{ .kafkaAppUrl }}
229 version: 1.0.0.SNAPSHOT
Jonathan Hartc2be1a42018-07-17 18:45:45 -0700230 requirements:
231 - owner:
Andy Bavierebfcfeb2018-07-13 13:04:13 -0700232 node: service#ONOS_VOLTHA
Matteo Scandoloa772b3c2018-06-11 17:38:42 -0700233 relationship: tosca.relationships.BelongsToOne
234
235 # CORD-Configuration
236 cord-config-attr:
237 type: tosca.nodes.ServiceInstanceAttribute
238 properties:
Jonathan Hartc2be1a42018-07-17 18:45:45 -0700239 name: /onos/v1/network/configuration/apps/org.opencord.kafka
Matteo Scandoloa772b3c2018-06-11 17:38:42 -0700240 value: >
241 {
242 "kafka" : {
Andy Bavierebfcfeb2018-07-13 13:04:13 -0700243 "bootstrapServers" : {{ .kafkaService | quote }}
Matteo Scandoloa772b3c2018-06-11 17:38:42 -0700244 }
245 }
246 requirements:
247 - service_instance:
248 node: onos_app#olt
249 relationship: tosca.relationships.BelongsToOne
Jonathan Hart97cd0dd2018-07-17 10:27:46 -0700250
251 olt-config-attr:
252 type: tosca.nodes.ServiceInstanceAttribute
253 properties:
254 name: /onos/v1/configuration/org.opencord.olt.impl.Olt?preset=true
255 value: >
256 {
Jonathan Harta5c23f42018-08-06 13:14:31 -0700257 "enableDhcpOnProvisioning" : true
Jonathan Hart97cd0dd2018-07-17 10:27:46 -0700258 }
259 requirements:
260 - service_instance:
261 node: onos_app#olt
262 relationship: tosca.relationships.BelongsToOne
Jonathan Hartc2be1a42018-07-17 18:45:45 -0700263
264 dhcpl2relay-config-attr:
265 type: tosca.nodes.ServiceInstanceAttribute
266 properties:
267 name: /onos/v1/network/configuration/apps/org.opencord.dhcpl2relay
268 value: >
269 {
270 "dhcpl2relay" : {
271 "useOltUplinkForServerPktInOut" : true
272 }
273 }
274 requirements:
275 - service_instance:
276 node: onos_app#dhcpl2relay
277 relationship: tosca.relationships.BelongsToOne
278
279 aaa-config-attr:
280 type: tosca.nodes.ServiceInstanceAttribute
281 properties:
282 name: /onos/v1/network/configuration/apps/org.opencord.aaa
283 value: >
284 {
285 "AAA" : {
286 "radiusConnectionType" : "socket",
287 "radiusHost" : "freeradius",
288 "radiusServerPort" : "1812",
289 "radiusSecret" : "SECRET"
290 }
291 }
292 requirements:
293 - service_instance:
294 node: onos_app#aaa
295 relationship: tosca.relationships.BelongsToOne
Jonathan Hart97cd0dd2018-07-17 10:27:46 -0700296{{- end -}}