blob: ecaf9640eb729ccdf14cbb5f9534466da840cc2d [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 Scandolo979695d2018-06-08 17:47:01 -070036 name: segmentrouting
37 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:
46 name: vrouter
47 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 -}}