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 |
Matteo Scandolo | 6a07ee7 | 2018-08-07 11:00:16 -0700 | [diff] [blame] | 29 | kind: data |
Andy Bavier | ebfcfeb | 2018-07-13 13:04:13 -0700 | [diff] [blame] | 30 | rest_hostname: {{ .onosFabricRestService | quote }} |
Andy Bavier | e302328 | 2018-05-12 06:35:13 -0700 | [diff] [blame] | 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 |
Matteo Scandolo | 3ce8814 | 2018-06-15 14:09:21 -0700 | [diff] [blame] | 52 | |
Matteo Scandolo | 3ce8814 | 2018-06-15 14:09:21 -0700 | [diff] [blame] | 53 | onos_app#netcfghostprovider: |
| 54 | type: tosca.nodes.ONOSApp |
| 55 | properties: |
| 56 | name: org.onosproject.netcfghostprovider |
| 57 | app_id: org.onosproject.netcfghostprovider |
| 58 | requirements: |
| 59 | - owner: |
| 60 | node: service#ONOS_Fabric |
| 61 | relationship: tosca.relationships.BelongsToOne |
| 62 | |
Matteo Scandolo | 9a48ca0 | 2018-06-22 15:15:39 -0700 | [diff] [blame] | 63 | onos_app#openflow: |
Matteo Scandolo | 3ce8814 | 2018-06-15 14:09:21 -0700 | [diff] [blame] | 64 | type: tosca.nodes.ONOSApp |
| 65 | properties: |
Matteo Scandolo | 9a48ca0 | 2018-06-22 15:15:39 -0700 | [diff] [blame] | 66 | name: org.onosproject.openflow |
| 67 | app_id: org.onosproject.openflow |
Matteo Scandolo | 3ce8814 | 2018-06-15 14:09:21 -0700 | [diff] [blame] | 68 | requirements: |
| 69 | - owner: |
| 70 | node: service#ONOS_Fabric |
| 71 | relationship: tosca.relationships.BelongsToOne |
Andy Bavier | e302328 | 2018-05-12 06:35:13 -0700 | [diff] [blame] | 72 | {{- end -}} |
| 73 | |
| 74 | {{- define "onos-service.vtnAppTosca" -}} |
| 75 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 76 | |
| 77 | imports: |
| 78 | - custom_types/onosapp.yaml |
| 79 | - custom_types/onosservice.yaml |
| 80 | - custom_types/serviceinstanceattribute.yaml |
| 81 | |
| 82 | description: Configures the VTN ONOS service |
| 83 | |
| 84 | topology_template: |
| 85 | node_templates: |
| 86 | |
| 87 | service#ONOS_CORD: |
| 88 | type: tosca.nodes.ONOSService |
| 89 | properties: |
| 90 | name: ONOS_CORD |
Matteo Scandolo | 6a07ee7 | 2018-08-07 11:00:16 -0700 | [diff] [blame] | 91 | kind: data |
Andy Bavier | ebfcfeb | 2018-07-13 13:04:13 -0700 | [diff] [blame] | 92 | rest_hostname: {{ .onosCordRestService | quote }} |
Andy Bavier | e302328 | 2018-05-12 06:35:13 -0700 | [diff] [blame] | 93 | rest_port: 8181 |
| 94 | |
Matteo Scandolo | 9a48ca0 | 2018-06-22 15:15:39 -0700 | [diff] [blame] | 95 | onos_app#openflow: |
Matteo Scandolo | 19f71f8 | 2018-06-13 16:14:08 -0700 | [diff] [blame] | 96 | type: tosca.nodes.ONOSApp |
| 97 | properties: |
Matteo Scandolo | 9a48ca0 | 2018-06-22 15:15:39 -0700 | [diff] [blame] | 98 | name: org.onosproject.openflow |
| 99 | app_id: org.onosproject.openflow |
Matteo Scandolo | 19f71f8 | 2018-06-13 16:14:08 -0700 | [diff] [blame] | 100 | requirements: |
| 101 | - owner: |
| 102 | node: service#ONOS_CORD |
| 103 | relationship: tosca.relationships.BelongsToOne |
| 104 | |
| 105 | onos_app#dhcp: |
| 106 | type: tosca.nodes.ONOSApp |
| 107 | properties: |
| 108 | name: org.onosproject.dhcp |
| 109 | app_id: org.onosproject.dhcp |
| 110 | requirements: |
| 111 | - owner: |
| 112 | node: service#ONOS_CORD |
| 113 | relationship: tosca.relationships.BelongsToOne |
| 114 | |
Matteo Scandolo | 979695d | 2018-06-08 17:47:01 -0700 | [diff] [blame] | 115 | onos_app#cord-config: |
Andy Bavier | e302328 | 2018-05-12 06:35:13 -0700 | [diff] [blame] | 116 | type: tosca.nodes.ONOSApp |
Andy Bavier | e302328 | 2018-05-12 06:35:13 -0700 | [diff] [blame] | 117 | properties: |
Matteo Scandolo | 979695d | 2018-06-08 17:47:01 -0700 | [diff] [blame] | 118 | name: cord-config |
Matteo Scandolo | 28ff942 | 2018-06-25 14:52:46 -0700 | [diff] [blame] | 119 | app_id: org.opencord.cord-config |
Matteo Scandolo | 979695d | 2018-06-08 17:47:01 -0700 | [diff] [blame] | 120 | url: {{ .cordConfigAppURL }} |
| 121 | version: 1.4.0 |
Matteo Scandolo | 9a48ca0 | 2018-06-22 15:15:39 -0700 | [diff] [blame] | 122 | dependencies: org.onosproject.openflow, org.onosproject.dhcp |
Matteo Scandolo | 979695d | 2018-06-08 17:47:01 -0700 | [diff] [blame] | 123 | requirements: |
| 124 | - owner: |
| 125 | node: service#ONOS_CORD |
| 126 | relationship: tosca.relationships.BelongsToOne |
Andy Bavier | e302328 | 2018-05-12 06:35:13 -0700 | [diff] [blame] | 127 | |
Matteo Scandolo | 979695d | 2018-06-08 17:47:01 -0700 | [diff] [blame] | 128 | onos_app#vtn: |
| 129 | type: tosca.nodes.ONOSApp |
| 130 | properties: |
| 131 | name: vtn |
Matteo Scandolo | 28ff942 | 2018-06-25 14:52:46 -0700 | [diff] [blame] | 132 | app_id: org.opencord.vtn |
Matteo Scandolo | 979695d | 2018-06-08 17:47:01 -0700 | [diff] [blame] | 133 | url: {{ .vtnAppURL }} |
| 134 | version: 1.6.0 |
Matteo Scandolo | f7d9d74 | 2018-06-28 14:06:42 -0700 | [diff] [blame] | 135 | dependencies: org.opencord.cord-config |
Matteo Scandolo | 979695d | 2018-06-08 17:47:01 -0700 | [diff] [blame] | 136 | requirements: |
| 137 | - owner: |
| 138 | node: service#ONOS_CORD |
| 139 | relationship: tosca.relationships.BelongsToOne |
Andy Bavier | e302328 | 2018-05-12 06:35:13 -0700 | [diff] [blame] | 140 | {{- end -}} |
Matteo Scandolo | a772b3c | 2018-06-11 17:38:42 -0700 | [diff] [blame] | 141 | |
| 142 | {{- define "onos-service.volthaOnosTosca" -}} |
| 143 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 144 | |
| 145 | imports: |
| 146 | - custom_types/onosapp.yaml |
| 147 | - custom_types/onosservice.yaml |
| 148 | - custom_types/serviceinstanceattribute.yaml |
| 149 | |
Andy Bavier | ebfcfeb | 2018-07-13 13:04:13 -0700 | [diff] [blame] | 150 | description: Configures the VOLTHA ONOS service |
Matteo Scandolo | a772b3c | 2018-06-11 17:38:42 -0700 | [diff] [blame] | 151 | |
| 152 | topology_template: |
| 153 | node_templates: |
| 154 | |
Andy Bavier | ebfcfeb | 2018-07-13 13:04:13 -0700 | [diff] [blame] | 155 | service#ONOS_VOLTHA: |
Matteo Scandolo | a772b3c | 2018-06-11 17:38:42 -0700 | [diff] [blame] | 156 | type: tosca.nodes.ONOSService |
| 157 | properties: |
| 158 | name: ONOS_VOLTHA |
Matteo Scandolo | 6a07ee7 | 2018-08-07 11:00:16 -0700 | [diff] [blame] | 159 | kind: data |
Andy Bavier | ebfcfeb | 2018-07-13 13:04:13 -0700 | [diff] [blame] | 160 | rest_hostname: {{ .onosVolthaRestService | quote }} |
Matteo Scandolo | a772b3c | 2018-06-11 17:38:42 -0700 | [diff] [blame] | 161 | rest_port: 8181 |
| 162 | |
Jonathan Hart | 76b8301 | 2018-08-07 15:25:38 -0700 | [diff] [blame] | 163 | onos_app#openflow-base: |
| 164 | type: tosca.nodes.ONOSApp |
| 165 | properties: |
| 166 | name: openflow-base |
| 167 | app_id: org.onosproject.openflow-base |
| 168 | requirements: |
| 169 | - owner: |
| 170 | node: service#ONOS_VOLTHA |
| 171 | relationship: tosca.relationships.BelongsToOne |
| 172 | |
| 173 | onos_app#hostprovider: |
| 174 | type: tosca.nodes.ONOSApp |
| 175 | properties: |
| 176 | name: hostprovider |
| 177 | app_id: org.onosproject.hostprovider |
| 178 | requirements: |
| 179 | - owner: |
| 180 | node: service#ONOS_VOLTHA |
| 181 | relationship: tosca.relationships.BelongsToOne |
| 182 | |
Jonathan Hart | 5c3e529 | 2018-08-06 11:22:52 -0700 | [diff] [blame] | 183 | onos_app#cord-config: |
| 184 | type: tosca.nodes.ONOSApp |
| 185 | properties: |
| 186 | name: cord-config |
| 187 | app_id: org.opencord.config |
| 188 | url: {{ .cordConfigAppURL }} |
| 189 | version: 1.4.0 |
| 190 | requirements: |
| 191 | - owner: |
| 192 | node: service#ONOS_VOLTHA |
| 193 | relationship: tosca.relationships.BelongsToOne |
| 194 | |
Matteo Scandolo | a772b3c | 2018-06-11 17:38:42 -0700 | [diff] [blame] | 195 | onos_app#olt: |
| 196 | type: tosca.nodes.ONOSApp |
| 197 | properties: |
Jonathan Hart | 5c3e529 | 2018-08-06 11:22:52 -0700 | [diff] [blame] | 198 | name: olt |
Matteo Scandolo | a772b3c | 2018-06-11 17:38:42 -0700 | [diff] [blame] | 199 | app_id: org.opencord.olt |
Jonathan Hart | 5c3e529 | 2018-08-06 11:22:52 -0700 | [diff] [blame] | 200 | url: {{ .oltAppUrl }} |
| 201 | version: 2.0.0.SNAPSHOT |
Jonathan Hart | 76b8301 | 2018-08-07 15:25:38 -0700 | [diff] [blame] | 202 | dependencies: org.opencord.config |
Jonathan Hart | 5c3e529 | 2018-08-06 11:22:52 -0700 | [diff] [blame] | 203 | requirements: |
| 204 | - owner: |
| 205 | node: service#ONOS_VOLTHA |
| 206 | relationship: tosca.relationships.BelongsToOne |
| 207 | |
| 208 | onos_app#sadis: |
| 209 | type: tosca.nodes.ONOSApp |
| 210 | properties: |
| 211 | name: sadis |
| 212 | app_id: org.opencord.sadis |
| 213 | url: {{ .sadisAppUrl }} |
| 214 | version: 2.1.0 |
Jonathan Hart | c2be1a4 | 2018-07-17 18:45:45 -0700 | [diff] [blame] | 215 | requirements: |
| 216 | - owner: |
Matteo Scandolo | c34abd3 | 2018-07-25 11:38:21 -0700 | [diff] [blame] | 217 | node: service#ONOS_VOLTHA |
Jonathan Hart | c2be1a4 | 2018-07-17 18:45:45 -0700 | [diff] [blame] | 218 | relationship: tosca.relationships.BelongsToOne |
| 219 | |
| 220 | onos_app#dhcpl2relay: |
| 221 | type: tosca.nodes.ONOSApp |
| 222 | properties: |
Jonathan Hart | 5c3e529 | 2018-08-06 11:22:52 -0700 | [diff] [blame] | 223 | name: dhcpl2relay |
Jonathan Hart | c2be1a4 | 2018-07-17 18:45:45 -0700 | [diff] [blame] | 224 | app_id: org.opencord.dhcpl2relay |
Jonathan Hart | 5c3e529 | 2018-08-06 11:22:52 -0700 | [diff] [blame] | 225 | url: {{ .dhcpl2relayAppUrl }} |
| 226 | version: 1.5.0.SNAPSHOT |
Jonathan Hart | 76b8301 | 2018-08-07 15:25:38 -0700 | [diff] [blame] | 227 | dependencies: org.opencord.sadis |
Matteo Scandolo | a772b3c | 2018-06-11 17:38:42 -0700 | [diff] [blame] | 228 | requirements: |
| 229 | - owner: |
Matteo Scandolo | c34abd3 | 2018-07-25 11:38:21 -0700 | [diff] [blame] | 230 | node: service#ONOS_VOLTHA |
Jonathan Hart | c2be1a4 | 2018-07-17 18:45:45 -0700 | [diff] [blame] | 231 | relationship: tosca.relationships.BelongsToOne |
| 232 | |
| 233 | onos_app#aaa: |
| 234 | type: tosca.nodes.ONOSApp |
| 235 | properties: |
Jonathan Hart | 5c3e529 | 2018-08-06 11:22:52 -0700 | [diff] [blame] | 236 | name: aaa |
Jonathan Hart | c2be1a4 | 2018-07-17 18:45:45 -0700 | [diff] [blame] | 237 | app_id: org.opencord.aaa |
Jonathan Hart | 5c3e529 | 2018-08-06 11:22:52 -0700 | [diff] [blame] | 238 | url: {{ .aaaAppUrl }} |
| 239 | version: 1.8.0.SNAPSHOT |
Jonathan Hart | 76b8301 | 2018-08-07 15:25:38 -0700 | [diff] [blame] | 240 | dependencies: org.opencord.sadis |
Jonathan Hart | 5c3e529 | 2018-08-06 11:22:52 -0700 | [diff] [blame] | 241 | requirements: |
| 242 | - owner: |
| 243 | node: service#ONOS_VOLTHA |
| 244 | relationship: tosca.relationships.BelongsToOne |
| 245 | |
| 246 | onos_app#kafka: |
| 247 | type: tosca.nodes.ONOSApp |
| 248 | properties: |
| 249 | name: kafka |
| 250 | app_id: org.opencord.kafka |
| 251 | url: {{ .kafkaAppUrl }} |
| 252 | version: 1.0.0.SNAPSHOT |
Jonathan Hart | 76b8301 | 2018-08-07 15:25:38 -0700 | [diff] [blame] | 253 | dependencies: org.opencord.olt,org.opencord.aaa,org.opencord.dhcpl2relay |
Jonathan Hart | c2be1a4 | 2018-07-17 18:45:45 -0700 | [diff] [blame] | 254 | requirements: |
| 255 | - owner: |
Andy Bavier | ebfcfeb | 2018-07-13 13:04:13 -0700 | [diff] [blame] | 256 | node: service#ONOS_VOLTHA |
Matteo Scandolo | a772b3c | 2018-06-11 17:38:42 -0700 | [diff] [blame] | 257 | relationship: tosca.relationships.BelongsToOne |
| 258 | |
| 259 | # CORD-Configuration |
| 260 | cord-config-attr: |
| 261 | type: tosca.nodes.ServiceInstanceAttribute |
| 262 | properties: |
Jonathan Hart | c2be1a4 | 2018-07-17 18:45:45 -0700 | [diff] [blame] | 263 | name: /onos/v1/network/configuration/apps/org.opencord.kafka |
Matteo Scandolo | a772b3c | 2018-06-11 17:38:42 -0700 | [diff] [blame] | 264 | value: > |
| 265 | { |
| 266 | "kafka" : { |
Andy Bavier | ebfcfeb | 2018-07-13 13:04:13 -0700 | [diff] [blame] | 267 | "bootstrapServers" : {{ .kafkaService | quote }} |
Matteo Scandolo | a772b3c | 2018-06-11 17:38:42 -0700 | [diff] [blame] | 268 | } |
| 269 | } |
| 270 | requirements: |
| 271 | - service_instance: |
| 272 | node: onos_app#olt |
| 273 | relationship: tosca.relationships.BelongsToOne |
Jonathan Hart | 97cd0dd | 2018-07-17 10:27:46 -0700 | [diff] [blame] | 274 | |
| 275 | olt-config-attr: |
| 276 | type: tosca.nodes.ServiceInstanceAttribute |
| 277 | properties: |
| 278 | name: /onos/v1/configuration/org.opencord.olt.impl.Olt?preset=true |
| 279 | value: > |
| 280 | { |
Jonathan Hart | a5c23f4 | 2018-08-06 13:14:31 -0700 | [diff] [blame] | 281 | "enableDhcpOnProvisioning" : true |
Jonathan Hart | 97cd0dd | 2018-07-17 10:27:46 -0700 | [diff] [blame] | 282 | } |
| 283 | requirements: |
| 284 | - service_instance: |
| 285 | node: onos_app#olt |
| 286 | relationship: tosca.relationships.BelongsToOne |
Jonathan Hart | c2be1a4 | 2018-07-17 18:45:45 -0700 | [diff] [blame] | 287 | |
| 288 | dhcpl2relay-config-attr: |
| 289 | type: tosca.nodes.ServiceInstanceAttribute |
| 290 | properties: |
| 291 | name: /onos/v1/network/configuration/apps/org.opencord.dhcpl2relay |
| 292 | value: > |
| 293 | { |
| 294 | "dhcpl2relay" : { |
| 295 | "useOltUplinkForServerPktInOut" : true |
| 296 | } |
| 297 | } |
| 298 | requirements: |
| 299 | - service_instance: |
| 300 | node: onos_app#dhcpl2relay |
| 301 | relationship: tosca.relationships.BelongsToOne |
| 302 | |
| 303 | aaa-config-attr: |
| 304 | type: tosca.nodes.ServiceInstanceAttribute |
| 305 | properties: |
| 306 | name: /onos/v1/network/configuration/apps/org.opencord.aaa |
| 307 | value: > |
| 308 | { |
| 309 | "AAA" : { |
| 310 | "radiusConnectionType" : "socket", |
Jonathan Hart | f55334b | 2018-08-07 13:21:38 -0700 | [diff] [blame] | 311 | "radiusHost" : "freeradius.voltha.svc.cluster.local", |
Jonathan Hart | c2be1a4 | 2018-07-17 18:45:45 -0700 | [diff] [blame] | 312 | "radiusServerPort" : "1812", |
| 313 | "radiusSecret" : "SECRET" |
| 314 | } |
| 315 | } |
| 316 | requirements: |
| 317 | - service_instance: |
| 318 | node: onos_app#aaa |
| 319 | relationship: tosca.relationships.BelongsToOne |
Jonathan Hart | 97cd0dd | 2018-07-17 10:27:46 -0700 | [diff] [blame] | 320 | {{- end -}} |