blob: 67438b46bd4bb8932acb39b99363a58df2c29441 [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
30 no_container: true
31 rest_hostname: onos-fabric-ui
32 rest_port: 8181
33
34 Fabric_ONOS_app:
35 type: tosca.nodes.ONOSApp
36 requirements:
37 - owner:
38 node: service#ONOS_Fabric
39 relationship: tosca.relationships.BelongsToOne
40 properties:
41 name: Fabric_ONOS_app
42 dependencies: org.onosproject.drivers, org.onosproject.openflow, org.onosproject.netcfghostprovider, org.onosproject.segmentrouting, org.onosproject.vrouter
43{{- end -}}
44
45{{- define "onos-service.vtnAppTosca" -}}
46tosca_definitions_version: tosca_simple_yaml_1_0
47
48imports:
49 - custom_types/onosapp.yaml
50 - custom_types/onosservice.yaml
51 - custom_types/serviceinstanceattribute.yaml
52
53description: Configures the VTN ONOS service
54
55topology_template:
56 node_templates:
57
58 service#ONOS_CORD:
59 type: tosca.nodes.ONOSService
60 properties:
61 name: ONOS_CORD
62 kind: platform
63 no_container: true
64 rest_hostname: onos-cord-ui
65 rest_port: 8181
66
67 VTN_ONOS_app:
68 type: tosca.nodes.ONOSApp
69 requirements:
70 - owner:
71 node: service#ONOS_CORD
72 relationship: tosca.relationships.BelongsToOne
73 properties:
74 name: VTN_ONOS_app
75 install_dependencies: https://repo.maven.apache.org/maven2/org/opencord/cord-config/1.3.1/cord-config-1.3.1.oar, https://repo.maven.apache.org/maven2/org/opencord/vtn/1.5.0/vtn-1.5.0.oar
76 dependencies: org.onosproject.drivers, org.onosproject.drivers.ovsdb, org.onosproject.openflow-base, org.onosproject.ovsdb-base, org.onosproject.dhcp
77
78 VTN_ONOS_app_autogenerate:
79 type: tosca.nodes.ServiceInstanceAttribute
80 requirements:
81 - service_instance:
82 node: VTN_ONOS_app
83 relationship: tosca.relationships.BelongsToOne
84 properties:
85 name: autogenerate
86 value: vtn-network-cfg
87{{- end -}}