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 |
| 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" -}} |
| 46 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 47 | |
| 48 | imports: |
| 49 | - custom_types/onosapp.yaml |
| 50 | - custom_types/onosservice.yaml |
| 51 | - custom_types/serviceinstanceattribute.yaml |
| 52 | |
| 53 | description: Configures the VTN ONOS service |
| 54 | |
| 55 | topology_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 -}} |