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 | 19f71f8 | 2018-06-13 16:14:08 -0700 | [diff] [blame] | 75 | onos_app#openflow-base: |
| 76 | type: tosca.nodes.ONOSApp |
| 77 | properties: |
| 78 | name: org.onosproject.openflow-base |
| 79 | app_id: org.onosproject.openflow-base |
| 80 | requirements: |
| 81 | - owner: |
| 82 | node: service#ONOS_CORD |
| 83 | relationship: tosca.relationships.BelongsToOne |
| 84 | |
| 85 | onos_app#dhcp: |
| 86 | type: tosca.nodes.ONOSApp |
| 87 | properties: |
| 88 | name: org.onosproject.dhcp |
| 89 | app_id: org.onosproject.dhcp |
| 90 | requirements: |
| 91 | - owner: |
| 92 | node: service#ONOS_CORD |
| 93 | relationship: tosca.relationships.BelongsToOne |
| 94 | |
Matteo Scandolo | 979695d | 2018-06-08 17:47:01 -0700 | [diff] [blame] | 95 | onos_app#cord-config: |
Andy Bavier | e302328 | 2018-05-12 06:35:13 -0700 | [diff] [blame] | 96 | type: tosca.nodes.ONOSApp |
Andy Bavier | e302328 | 2018-05-12 06:35:13 -0700 | [diff] [blame] | 97 | properties: |
Matteo Scandolo | 979695d | 2018-06-08 17:47:01 -0700 | [diff] [blame] | 98 | name: cord-config |
| 99 | url: {{ .cordConfigAppURL }} |
| 100 | version: 1.4.0 |
Matteo Scandolo | 19f71f8 | 2018-06-13 16:14:08 -0700 | [diff] [blame] | 101 | dependencies: org.onosproject.openflow-base, org.onosproject.dhcp |
Matteo Scandolo | 979695d | 2018-06-08 17:47:01 -0700 | [diff] [blame] | 102 | requirements: |
| 103 | - owner: |
| 104 | node: service#ONOS_CORD |
| 105 | relationship: tosca.relationships.BelongsToOne |
Andy Bavier | e302328 | 2018-05-12 06:35:13 -0700 | [diff] [blame] | 106 | |
Matteo Scandolo | 979695d | 2018-06-08 17:47:01 -0700 | [diff] [blame] | 107 | onos_app#vtn: |
| 108 | type: tosca.nodes.ONOSApp |
| 109 | properties: |
| 110 | name: vtn |
| 111 | url: {{ .vtnAppURL }} |
| 112 | version: 1.6.0 |
| 113 | requirements: |
| 114 | - owner: |
| 115 | node: service#ONOS_CORD |
| 116 | relationship: tosca.relationships.BelongsToOne |
Andy Bavier | e302328 | 2018-05-12 06:35:13 -0700 | [diff] [blame] | 117 | {{- end -}} |
Matteo Scandolo | a772b3c | 2018-06-11 17:38:42 -0700 | [diff] [blame] | 118 | |
| 119 | {{- define "onos-service.volthaOnosTosca" -}} |
| 120 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 121 | |
| 122 | imports: |
| 123 | - custom_types/onosapp.yaml |
| 124 | - custom_types/onosservice.yaml |
| 125 | - custom_types/serviceinstanceattribute.yaml |
| 126 | |
| 127 | description: Configures the VTN ONOS service |
| 128 | |
| 129 | topology_template: |
| 130 | node_templates: |
| 131 | |
| 132 | service#ONOS_CORD: |
| 133 | type: tosca.nodes.ONOSService |
| 134 | properties: |
| 135 | name: ONOS_VOLTHA |
| 136 | kind: platform |
| 137 | rest_hostname: onos-voltha-ui.voltha.svc.cluster.local |
| 138 | rest_port: 8181 |
| 139 | |
| 140 | onos_app#olt: |
| 141 | type: tosca.nodes.ONOSApp |
| 142 | properties: |
| 143 | name: org.opencord.olt |
| 144 | app_id: org.opencord.olt |
| 145 | version: 1.4.0 |
| 146 | requirements: |
| 147 | - owner: |
| 148 | node: service#ONOS_CORD |
| 149 | relationship: tosca.relationships.BelongsToOne |
| 150 | |
| 151 | # CORD-Configuration |
| 152 | cord-config-attr: |
| 153 | type: tosca.nodes.ServiceInstanceAttribute |
| 154 | properties: |
| 155 | name: /onos/v1/network/configuration/apps/org.opencord.olt |
| 156 | value: > |
| 157 | { |
| 158 | "kafka" : { |
| 159 | "bootstrapServers" : "cord-kafka-kafka.default.svc.cluster.local:9092" |
| 160 | } |
| 161 | } |
| 162 | requirements: |
| 163 | - service_instance: |
| 164 | node: onos_app#olt |
| 165 | relationship: tosca.relationships.BelongsToOne |
| 166 | {{- end -}} |