blob: 6f65bbb23f78bac7d996a94b387d6da1465b4f23 [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*/}}
Andy Baviere3023282018-05-12 06:35:13 -070017
18{{- define "onos-service.vtnAppTosca" -}}
19tosca_definitions_version: tosca_simple_yaml_1_0
20
21imports:
22 - custom_types/onosapp.yaml
23 - custom_types/onosservice.yaml
24 - custom_types/serviceinstanceattribute.yaml
25
26description: Configures the VTN ONOS service
27
28topology_template:
29 node_templates:
30
31 service#ONOS_CORD:
32 type: tosca.nodes.ONOSService
33 properties:
34 name: ONOS_CORD
Matteo Scandolo6a07ee72018-08-07 11:00:16 -070035 kind: data
Andy Bavierebfcfeb2018-07-13 13:04:13 -070036 rest_hostname: {{ .onosCordRestService | quote }}
Andy Baviere3023282018-05-12 06:35:13 -070037 rest_port: 8181
38
Matteo Scandolo9a48ca02018-06-22 15:15:39 -070039 onos_app#openflow:
Matteo Scandolo19f71f82018-06-13 16:14:08 -070040 type: tosca.nodes.ONOSApp
41 properties:
Matteo Scandolo9a48ca02018-06-22 15:15:39 -070042 name: org.onosproject.openflow
43 app_id: org.onosproject.openflow
Matteo Scandolo19f71f82018-06-13 16:14:08 -070044 requirements:
45 - owner:
46 node: service#ONOS_CORD
47 relationship: tosca.relationships.BelongsToOne
48
49 onos_app#dhcp:
50 type: tosca.nodes.ONOSApp
51 properties:
52 name: org.onosproject.dhcp
53 app_id: org.onosproject.dhcp
54 requirements:
55 - owner:
56 node: service#ONOS_CORD
57 relationship: tosca.relationships.BelongsToOne
58
Matteo Scandolo979695d2018-06-08 17:47:01 -070059 onos_app#cord-config:
Andy Baviere3023282018-05-12 06:35:13 -070060 type: tosca.nodes.ONOSApp
Andy Baviere3023282018-05-12 06:35:13 -070061 properties:
Matteo Scandolo979695d2018-06-08 17:47:01 -070062 name: cord-config
Matteo Scandolo28ff9422018-06-25 14:52:46 -070063 app_id: org.opencord.cord-config
Matteo Scandolo979695d2018-06-08 17:47:01 -070064 url: {{ .cordConfigAppURL }}
65 version: 1.4.0
Matteo Scandolo9a48ca02018-06-22 15:15:39 -070066 dependencies: org.onosproject.openflow, org.onosproject.dhcp
Matteo Scandolo979695d2018-06-08 17:47:01 -070067 requirements:
68 - owner:
69 node: service#ONOS_CORD
70 relationship: tosca.relationships.BelongsToOne
Andy Baviere3023282018-05-12 06:35:13 -070071
Matteo Scandolo979695d2018-06-08 17:47:01 -070072 onos_app#vtn:
73 type: tosca.nodes.ONOSApp
74 properties:
75 name: vtn
Matteo Scandolo28ff9422018-06-25 14:52:46 -070076 app_id: org.opencord.vtn
Matteo Scandolo979695d2018-06-08 17:47:01 -070077 url: {{ .vtnAppURL }}
78 version: 1.6.0
Matteo Scandolof7d9d742018-06-28 14:06:42 -070079 dependencies: org.opencord.cord-config
Matteo Scandolo979695d2018-06-08 17:47:01 -070080 requirements:
81 - owner:
82 node: service#ONOS_CORD
83 relationship: tosca.relationships.BelongsToOne
Andy Baviere3023282018-05-12 06:35:13 -070084{{- end -}}