Andy Bavier | e302328 | 2018-05-12 06:35:13 -0700 | [diff] [blame] | 1 | {{/* vim: set filetype=mustache: */}} |
| 2 | {{/* |
| 3 | Copyright 2018-present Open Networking Foundation |
| 4 | |
| 5 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | you may not use this file except in compliance with the License. |
| 7 | You may obtain a copy of the License at |
| 8 | |
| 9 | http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | |
| 11 | Unless required by applicable law or agreed to in writing, software |
| 12 | distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | See the License for the specific language governing permissions and |
| 15 | limitations under the License. |
| 16 | */}} |
Andy Bavier | e302328 | 2018-05-12 06:35:13 -0700 | [diff] [blame] | 17 | |
| 18 | {{- define "onos-service.vtnAppTosca" -}} |
| 19 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 20 | |
| 21 | imports: |
| 22 | - custom_types/onosapp.yaml |
| 23 | - custom_types/onosservice.yaml |
| 24 | - custom_types/serviceinstanceattribute.yaml |
| 25 | |
| 26 | description: Configures the VTN ONOS service |
| 27 | |
| 28 | topology_template: |
| 29 | node_templates: |
| 30 | |
| 31 | service#ONOS_CORD: |
| 32 | type: tosca.nodes.ONOSService |
| 33 | properties: |
| 34 | name: ONOS_CORD |
Matteo Scandolo | 6a07ee7 | 2018-08-07 11:00:16 -0700 | [diff] [blame] | 35 | kind: data |
Andy Bavier | ebfcfeb | 2018-07-13 13:04:13 -0700 | [diff] [blame] | 36 | rest_hostname: {{ .onosCordRestService | quote }} |
Andy Bavier | e302328 | 2018-05-12 06:35:13 -0700 | [diff] [blame] | 37 | rest_port: 8181 |
| 38 | |
Matteo Scandolo | 9a48ca0 | 2018-06-22 15:15:39 -0700 | [diff] [blame] | 39 | onos_app#openflow: |
Matteo Scandolo | 19f71f8 | 2018-06-13 16:14:08 -0700 | [diff] [blame] | 40 | type: tosca.nodes.ONOSApp |
| 41 | properties: |
Matteo Scandolo | 9a48ca0 | 2018-06-22 15:15:39 -0700 | [diff] [blame] | 42 | name: org.onosproject.openflow |
| 43 | app_id: org.onosproject.openflow |
Matteo Scandolo | 19f71f8 | 2018-06-13 16:14:08 -0700 | [diff] [blame] | 44 | requirements: |
| 45 | - owner: |
| 46 | node: service#ONOS_CORD |
| 47 | relationship: tosca.relationships.BelongsToOne |
| 48 | |
| 49 | onos_app#dhcp: |
| 50 | type: tosca.nodes.ONOSApp |
| 51 | properties: |
| 52 | name: org.onosproject.dhcp |
| 53 | app_id: org.onosproject.dhcp |
| 54 | requirements: |
| 55 | - owner: |
| 56 | node: service#ONOS_CORD |
| 57 | relationship: tosca.relationships.BelongsToOne |
| 58 | |
Matteo Scandolo | 979695d | 2018-06-08 17:47:01 -0700 | [diff] [blame] | 59 | onos_app#cord-config: |
Andy Bavier | e302328 | 2018-05-12 06:35:13 -0700 | [diff] [blame] | 60 | type: tosca.nodes.ONOSApp |
Andy Bavier | e302328 | 2018-05-12 06:35:13 -0700 | [diff] [blame] | 61 | properties: |
Matteo Scandolo | 979695d | 2018-06-08 17:47:01 -0700 | [diff] [blame] | 62 | name: cord-config |
Matteo Scandolo | 28ff942 | 2018-06-25 14:52:46 -0700 | [diff] [blame] | 63 | app_id: org.opencord.cord-config |
Matteo Scandolo | 979695d | 2018-06-08 17:47:01 -0700 | [diff] [blame] | 64 | url: {{ .cordConfigAppURL }} |
| 65 | version: 1.4.0 |
Matteo Scandolo | 9a48ca0 | 2018-06-22 15:15:39 -0700 | [diff] [blame] | 66 | dependencies: org.onosproject.openflow, org.onosproject.dhcp |
Matteo Scandolo | 979695d | 2018-06-08 17:47:01 -0700 | [diff] [blame] | 67 | requirements: |
| 68 | - owner: |
| 69 | node: service#ONOS_CORD |
| 70 | relationship: tosca.relationships.BelongsToOne |
Andy Bavier | e302328 | 2018-05-12 06:35:13 -0700 | [diff] [blame] | 71 | |
Matteo Scandolo | 979695d | 2018-06-08 17:47:01 -0700 | [diff] [blame] | 72 | onos_app#vtn: |
| 73 | type: tosca.nodes.ONOSApp |
| 74 | properties: |
| 75 | name: vtn |
Matteo Scandolo | 28ff942 | 2018-06-25 14:52:46 -0700 | [diff] [blame] | 76 | app_id: org.opencord.vtn |
Matteo Scandolo | 979695d | 2018-06-08 17:47:01 -0700 | [diff] [blame] | 77 | url: {{ .vtnAppURL }} |
| 78 | version: 1.6.0 |
Matteo Scandolo | f7d9d74 | 2018-06-28 14:06:42 -0700 | [diff] [blame] | 79 | dependencies: org.opencord.cord-config |
Matteo Scandolo | 979695d | 2018-06-08 17:47:01 -0700 | [diff] [blame] | 80 | requirements: |
| 81 | - owner: |
| 82 | node: service#ONOS_CORD |
| 83 | relationship: tosca.relationships.BelongsToOne |
Andy Bavier | e302328 | 2018-05-12 06:35:13 -0700 | [diff] [blame] | 84 | {{- end -}} |