blob: ddffea6921f18f1e978ae5c8e59ee48ce166d377 [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 Baviere3023282018-05-12 06:35:13 -070030 rest_hostname: onos-fabric-ui
31 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
53 onos_app#hostprovider:
54 type: tosca.nodes.ONOSApp
55 properties:
56 name: org.onosproject.hostprovider
57 app_id: org.onosproject.hostprovider
58 requirements:
59 - owner:
60 node: service#ONOS_Fabric
61 relationship: tosca.relationships.BelongsToOne
62
63 onos_app#netcfghostprovider:
64 type: tosca.nodes.ONOSApp
65 properties:
66 name: org.onosproject.netcfghostprovider
67 app_id: org.onosproject.netcfghostprovider
68 requirements:
69 - owner:
70 node: service#ONOS_Fabric
71 relationship: tosca.relationships.BelongsToOne
72
73 onos_app#openflow-base:
74 type: tosca.nodes.ONOSApp
75 properties:
76 name: org.onosproject.openflow-base
77 app_id: org.onosproject.openflow-base
78 requirements:
79 - owner:
80 node: service#ONOS_Fabric
81 relationship: tosca.relationships.BelongsToOne
Andy Baviere3023282018-05-12 06:35:13 -070082{{- end -}}
83
84{{- define "onos-service.vtnAppTosca" -}}
85tosca_definitions_version: tosca_simple_yaml_1_0
86
87imports:
88 - custom_types/onosapp.yaml
89 - custom_types/onosservice.yaml
90 - custom_types/serviceinstanceattribute.yaml
91
92description: Configures the VTN ONOS service
93
94topology_template:
95 node_templates:
96
97 service#ONOS_CORD:
98 type: tosca.nodes.ONOSService
99 properties:
100 name: ONOS_CORD
101 kind: platform
Andy Baviere3023282018-05-12 06:35:13 -0700102 rest_hostname: onos-cord-ui
103 rest_port: 8181
104
Matteo Scandolo19f71f82018-06-13 16:14:08 -0700105 onos_app#openflow-base:
106 type: tosca.nodes.ONOSApp
107 properties:
108 name: org.onosproject.openflow-base
109 app_id: org.onosproject.openflow-base
110 requirements:
111 - owner:
112 node: service#ONOS_CORD
113 relationship: tosca.relationships.BelongsToOne
114
115 onos_app#dhcp:
116 type: tosca.nodes.ONOSApp
117 properties:
118 name: org.onosproject.dhcp
119 app_id: org.onosproject.dhcp
120 requirements:
121 - owner:
122 node: service#ONOS_CORD
123 relationship: tosca.relationships.BelongsToOne
124
Matteo Scandolo979695d2018-06-08 17:47:01 -0700125 onos_app#cord-config:
Andy Baviere3023282018-05-12 06:35:13 -0700126 type: tosca.nodes.ONOSApp
Andy Baviere3023282018-05-12 06:35:13 -0700127 properties:
Matteo Scandolo979695d2018-06-08 17:47:01 -0700128 name: cord-config
129 url: {{ .cordConfigAppURL }}
130 version: 1.4.0
Matteo Scandolo19f71f82018-06-13 16:14:08 -0700131 dependencies: org.onosproject.openflow-base, org.onosproject.dhcp
Matteo Scandolo979695d2018-06-08 17:47:01 -0700132 requirements:
133 - owner:
134 node: service#ONOS_CORD
135 relationship: tosca.relationships.BelongsToOne
Andy Baviere3023282018-05-12 06:35:13 -0700136
Matteo Scandolo979695d2018-06-08 17:47:01 -0700137 onos_app#vtn:
138 type: tosca.nodes.ONOSApp
139 properties:
140 name: vtn
141 url: {{ .vtnAppURL }}
142 version: 1.6.0
143 requirements:
144 - owner:
145 node: service#ONOS_CORD
146 relationship: tosca.relationships.BelongsToOne
Andy Baviere3023282018-05-12 06:35:13 -0700147{{- end -}}
Matteo Scandoloa772b3c2018-06-11 17:38:42 -0700148
149{{- define "onos-service.volthaOnosTosca" -}}
150tosca_definitions_version: tosca_simple_yaml_1_0
151
152imports:
153 - custom_types/onosapp.yaml
154 - custom_types/onosservice.yaml
155 - custom_types/serviceinstanceattribute.yaml
156
157description: Configures the VTN ONOS service
158
159topology_template:
160 node_templates:
161
162 service#ONOS_CORD:
163 type: tosca.nodes.ONOSService
164 properties:
165 name: ONOS_VOLTHA
166 kind: platform
167 rest_hostname: onos-voltha-ui.voltha.svc.cluster.local
168 rest_port: 8181
169
170 onos_app#olt:
171 type: tosca.nodes.ONOSApp
172 properties:
173 name: org.opencord.olt
174 app_id: org.opencord.olt
175 version: 1.4.0
176 requirements:
177 - owner:
178 node: service#ONOS_CORD
179 relationship: tosca.relationships.BelongsToOne
180
181 # CORD-Configuration
182 cord-config-attr:
183 type: tosca.nodes.ServiceInstanceAttribute
184 properties:
185 name: /onos/v1/network/configuration/apps/org.opencord.olt
186 value: >
187 {
188 "kafka" : {
Scott Bakerf5601352018-06-18 14:27:43 -0700189 "bootstrapServers" : "cord-kafka.default.svc.cluster.local:9092"
Matteo Scandoloa772b3c2018-06-11 17:38:42 -0700190 }
191 }
192 requirements:
193 - service_instance:
194 node: onos_app#olt
195 relationship: tosca.relationships.BelongsToOne
196{{- end -}}