blob: 62fe105b1e12a452aaba04fcd97c7145f132e2dd [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
Andy Baviere3023282018-05-12 06:35:13 -070052{{- end -}}
53
54{{- define "onos-service.vtnAppTosca" -}}
55tosca_definitions_version: tosca_simple_yaml_1_0
56
57imports:
58 - custom_types/onosapp.yaml
59 - custom_types/onosservice.yaml
60 - custom_types/serviceinstanceattribute.yaml
61
62description: Configures the VTN ONOS service
63
64topology_template:
65 node_templates:
66
67 service#ONOS_CORD:
68 type: tosca.nodes.ONOSService
69 properties:
70 name: ONOS_CORD
71 kind: platform
Andy Baviere3023282018-05-12 06:35:13 -070072 rest_hostname: onos-cord-ui
73 rest_port: 8181
74
Matteo Scandolo19f71f82018-06-13 16:14:08 -070075 onos_app#openflow-base:
76 type: tosca.nodes.ONOSApp
77 properties:
78 name: org.onosproject.openflow-base
79 app_id: org.onosproject.openflow-base
80 requirements:
81 - owner:
82 node: service#ONOS_CORD
83 relationship: tosca.relationships.BelongsToOne
84
85 onos_app#dhcp:
86 type: tosca.nodes.ONOSApp
87 properties:
88 name: org.onosproject.dhcp
89 app_id: org.onosproject.dhcp
90 requirements:
91 - owner:
92 node: service#ONOS_CORD
93 relationship: tosca.relationships.BelongsToOne
94
Matteo Scandolo979695d2018-06-08 17:47:01 -070095 onos_app#cord-config:
Andy Baviere3023282018-05-12 06:35:13 -070096 type: tosca.nodes.ONOSApp
Andy Baviere3023282018-05-12 06:35:13 -070097 properties:
Matteo Scandolo979695d2018-06-08 17:47:01 -070098 name: cord-config
99 url: {{ .cordConfigAppURL }}
100 version: 1.4.0
Matteo Scandolo19f71f82018-06-13 16:14:08 -0700101 dependencies: org.onosproject.openflow-base, org.onosproject.dhcp
Matteo Scandolo979695d2018-06-08 17:47:01 -0700102 requirements:
103 - owner:
104 node: service#ONOS_CORD
105 relationship: tosca.relationships.BelongsToOne
Andy Baviere3023282018-05-12 06:35:13 -0700106
Matteo Scandolo979695d2018-06-08 17:47:01 -0700107 onos_app#vtn:
108 type: tosca.nodes.ONOSApp
109 properties:
110 name: vtn
111 url: {{ .vtnAppURL }}
112 version: 1.6.0
113 requirements:
114 - owner:
115 node: service#ONOS_CORD
116 relationship: tosca.relationships.BelongsToOne
Andy Baviere3023282018-05-12 06:35:13 -0700117{{- end -}}
Matteo Scandoloa772b3c2018-06-11 17:38:42 -0700118
119{{- define "onos-service.volthaOnosTosca" -}}
120tosca_definitions_version: tosca_simple_yaml_1_0
121
122imports:
123 - custom_types/onosapp.yaml
124 - custom_types/onosservice.yaml
125 - custom_types/serviceinstanceattribute.yaml
126
127description: Configures the VTN ONOS service
128
129topology_template:
130 node_templates:
131
132 service#ONOS_CORD:
133 type: tosca.nodes.ONOSService
134 properties:
135 name: ONOS_VOLTHA
136 kind: platform
137 rest_hostname: onos-voltha-ui.voltha.svc.cluster.local
138 rest_port: 8181
139
140 onos_app#olt:
141 type: tosca.nodes.ONOSApp
142 properties:
143 name: org.opencord.olt
144 app_id: org.opencord.olt
145 version: 1.4.0
146 requirements:
147 - owner:
148 node: service#ONOS_CORD
149 relationship: tosca.relationships.BelongsToOne
150
151 # CORD-Configuration
152 cord-config-attr:
153 type: tosca.nodes.ServiceInstanceAttribute
154 properties:
155 name: /onos/v1/network/configuration/apps/org.opencord.olt
156 value: >
157 {
158 "kafka" : {
159 "bootstrapServers" : "cord-kafka-kafka.default.svc.cluster.local:9092"
160 }
161 }
162 requirements:
163 - service_instance:
164 node: onos_app#olt
165 relationship: tosca.relationships.BelongsToOne
166{{- end -}}