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 | */}} |
| 17 | {{- define "onos-service.fabricAppTosca" -}} |
| 18 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 19 | imports: |
| 20 | - custom_types/onosapp.yaml |
| 21 | - custom_types/onosservice.yaml |
| 22 | description: ONOS service and app for fabric |
| 23 | topology_template: |
| 24 | node_templates: |
| 25 | service#ONOS_Fabric: |
| 26 | type: tosca.nodes.ONOSService |
| 27 | properties: |
| 28 | name: ONOS_Fabric |
| 29 | kind: platform |
Andy Bavier | e302328 | 2018-05-12 06:35:13 -0700 | [diff] [blame] | 30 | rest_hostname: onos-fabric-ui |
| 31 | rest_port: 8181 |
| 32 | |
Matteo Scandolo | 979695d | 2018-06-08 17:47:01 -0700 | [diff] [blame] | 33 | onos_app#segmentrouting: |
Andy Bavier | e302328 | 2018-05-12 06:35:13 -0700 | [diff] [blame] | 34 | type: tosca.nodes.ONOSApp |
Andy Bavier | e302328 | 2018-05-12 06:35:13 -0700 | [diff] [blame] | 35 | properties: |
Matteo Scandolo | a772b3c | 2018-06-11 17:38:42 -0700 | [diff] [blame] | 36 | name: org.onosproject.segmentrouting |
Matteo Scandolo | 979695d | 2018-06-08 17:47:01 -0700 | [diff] [blame] | 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: |
Matteo Scandolo | a772b3c | 2018-06-11 17:38:42 -0700 | [diff] [blame] | 46 | name: org.onosproject.vrouter |
Matteo Scandolo | 979695d | 2018-06-08 17:47:01 -0700 | [diff] [blame] | 47 | app_id: org.onosproject.vrouter |
| 48 | requirements: |
| 49 | - owner: |
| 50 | node: service#ONOS_Fabric |
| 51 | relationship: tosca.relationships.BelongsToOne |
Andy Bavier | e302328 | 2018-05-12 06:35:13 -0700 | [diff] [blame] | 52 | {{- end -}} |
| 53 | |
| 54 | {{- define "onos-service.vtnAppTosca" -}} |
| 55 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 56 | |
| 57 | imports: |
| 58 | - custom_types/onosapp.yaml |
| 59 | - custom_types/onosservice.yaml |
| 60 | - custom_types/serviceinstanceattribute.yaml |
| 61 | |
| 62 | description: Configures the VTN ONOS service |
| 63 | |
| 64 | topology_template: |
| 65 | node_templates: |
| 66 | |
| 67 | service#ONOS_CORD: |
| 68 | type: tosca.nodes.ONOSService |
| 69 | properties: |
| 70 | name: ONOS_CORD |
| 71 | kind: platform |
Andy Bavier | e302328 | 2018-05-12 06:35:13 -0700 | [diff] [blame] | 72 | rest_hostname: onos-cord-ui |
| 73 | rest_port: 8181 |
| 74 | |
Matteo Scandolo | 979695d | 2018-06-08 17:47:01 -0700 | [diff] [blame] | 75 | onos_app#cord-config: |
Andy Bavier | e302328 | 2018-05-12 06:35:13 -0700 | [diff] [blame] | 76 | type: tosca.nodes.ONOSApp |
Andy Bavier | e302328 | 2018-05-12 06:35:13 -0700 | [diff] [blame] | 77 | properties: |
Matteo Scandolo | 979695d | 2018-06-08 17:47:01 -0700 | [diff] [blame] | 78 | 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 Bavier | e302328 | 2018-05-12 06:35:13 -0700 | [diff] [blame] | 85 | |
Matteo Scandolo | 979695d | 2018-06-08 17:47:01 -0700 | [diff] [blame] | 86 | 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 Bavier | e302328 | 2018-05-12 06:35:13 -0700 | [diff] [blame] | 96 | {{- end -}} |
Matteo Scandolo | a772b3c | 2018-06-11 17:38:42 -0700 | [diff] [blame] | 97 | |
| 98 | {{- define "onos-service.volthaOnosTosca" -}} |
| 99 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 100 | |
| 101 | imports: |
| 102 | - custom_types/onosapp.yaml |
| 103 | - custom_types/onosservice.yaml |
| 104 | - custom_types/serviceinstanceattribute.yaml |
| 105 | |
| 106 | description: Configures the VTN ONOS service |
| 107 | |
| 108 | topology_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 -}} |