blob: e801ccf823e2fac5522f40c13e5bac1132d83596 [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 Scandolo979695d2018-06-08 17:47:01 -070075 onos_app#cord-config:
Andy Baviere3023282018-05-12 06:35:13 -070076 type: tosca.nodes.ONOSApp
Andy Baviere3023282018-05-12 06:35:13 -070077 properties:
Matteo Scandolo979695d2018-06-08 17:47:01 -070078 name: cord-config
79 url: {{ .cordConfigAppURL }}
80 version: 1.4.0
81 requirements:
82 - owner:
83 node: service#ONOS_CORD
84 relationship: tosca.relationships.BelongsToOne
Andy Baviere3023282018-05-12 06:35:13 -070085
Matteo Scandolo979695d2018-06-08 17:47:01 -070086 onos_app#vtn:
87 type: tosca.nodes.ONOSApp
88 properties:
89 name: vtn
90 url: {{ .vtnAppURL }}
91 version: 1.6.0
92 requirements:
93 - owner:
94 node: service#ONOS_CORD
95 relationship: tosca.relationships.BelongsToOne
Andy Baviere3023282018-05-12 06:35:13 -070096{{- end -}}
Matteo Scandoloa772b3c2018-06-11 17:38:42 -070097
98{{- define "onos-service.volthaOnosTosca" -}}
99tosca_definitions_version: tosca_simple_yaml_1_0
100
101imports:
102 - custom_types/onosapp.yaml
103 - custom_types/onosservice.yaml
104 - custom_types/serviceinstanceattribute.yaml
105
106description: Configures the VTN ONOS service
107
108topology_template:
109 node_templates:
110
111 service#ONOS_CORD:
112 type: tosca.nodes.ONOSService
113 properties:
114 name: ONOS_VOLTHA
115 kind: platform
116 rest_hostname: onos-voltha-ui.voltha.svc.cluster.local
117 rest_port: 8181
118
119 onos_app#olt:
120 type: tosca.nodes.ONOSApp
121 properties:
122 name: org.opencord.olt
123 app_id: org.opencord.olt
124 version: 1.4.0
125 requirements:
126 - owner:
127 node: service#ONOS_CORD
128 relationship: tosca.relationships.BelongsToOne
129
130 # CORD-Configuration
131 cord-config-attr:
132 type: tosca.nodes.ServiceInstanceAttribute
133 properties:
134 name: /onos/v1/network/configuration/apps/org.opencord.olt
135 value: >
136 {
137 "kafka" : {
138 "bootstrapServers" : "cord-kafka-kafka.default.svc.cluster.local:9092"
139 }
140 }
141 requirements:
142 - service_instance:
143 node: onos_app#olt
144 relationship: tosca.relationships.BelongsToOne
145{{- end -}}