Matteo Scandolo | 3896c47 | 2017-08-01 13:31:42 -0700 | [diff] [blame] | 1 | {# |
| 2 | Copyright 2017-present Open Networking Foundation |
| 3 | |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | #} |
| 16 | |
Zack Williams | a276311 | 2017-01-03 11:38:38 -0700 | [diff] [blame] | 17 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 18 | |
| 19 | imports: |
Matteo Scandolo | 1ed76b8 | 2017-12-05 13:58:22 -0800 | [diff] [blame] | 20 | - custom_types/onosapp.yaml |
| 21 | - custom_types/onosservice.yaml |
| 22 | - custom_types/serviceinstanceattribute.yaml |
| 23 | - custom_types/serviceinstancelink.yaml |
| 24 | - custom_types/vtnservice.yaml |
Zack Williams | a276311 | 2017-01-03 11:38:38 -0700 | [diff] [blame] | 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 |
Zack Williams | a276311 | 2017-01-03 11:38:38 -0700 | [diff] [blame] | 33 | properties: |
Matteo Scandolo | 1ed76b8 | 2017-12-05 13:58:22 -0800 | [diff] [blame] | 34 | name: ONOS_CORD |
| 35 | kind: platform |
Zack Williams | a276311 | 2017-01-03 11:38:38 -0700 | [diff] [blame] | 36 | no_container: true |
Zack Williams | f31df5d | 2017-11-27 22:48:43 -0700 | [diff] [blame] | 37 | rest_hostname: onos-cord.{{ site_suffix }} |
Zack Williams | a276311 | 2017-01-03 11:38:38 -0700 | [diff] [blame] | 38 | rest_port: 8182 |
Zack Williams | a276311 | 2017-01-03 11:38:38 -0700 | [diff] [blame] | 39 | |
| 40 | service#vtn: |
| 41 | type: tosca.nodes.VTNService |
| 42 | properties: |
Matteo Scandolo | 1ed76b8 | 2017-12-05 13:58:22 -0800 | [diff] [blame] | 43 | name: vtn |
| 44 | kind: platform |
Zack Williams | a276311 | 2017-01-03 11:38:38 -0700 | [diff] [blame] | 45 | view_url: /admin/vtn/vtnservice/$id$/ |
| 46 | privateGatewayMac: 00:00:00:00:00:01 |
| 47 | localManagementIp: {{ management_network_ip }} |
| 48 | ovsdbPort: 6641 |
| 49 | sshUser: root |
| 50 | sshKeyFile: /root/node_key |
| 51 | sshPort: 22 |
Zack Williams | f31df5d | 2017-11-27 22:48:43 -0700 | [diff] [blame] | 52 | xosEndpoint: xos-chameleon.{{ site_suffix }}:{{ xos_chameleon_port }} |
Zack Williams | a276311 | 2017-01-03 11:38:38 -0700 | [diff] [blame] | 53 | xosUser: {{ xos_admin_user }} |
| 54 | xosPassword: {{ xos_admin_pass }} |
Zack Williams | a276311 | 2017-01-03 11:38:38 -0700 | [diff] [blame] | 55 | vtnAPIVersion: 2 |
Zack Williams | f31df5d | 2017-11-27 22:48:43 -0700 | [diff] [blame] | 56 | controllerPort: onos-cord.{{ site_suffix }}:6654 |
Matteo Scandolo | 1ed76b8 | 2017-12-05 13:58:22 -0800 | [diff] [blame] | 57 | resync: false |
Zack Williams | a276311 | 2017-01-03 11:38:38 -0700 | [diff] [blame] | 58 | |
| 59 | VTN_ONOS_app: |
Matteo Scandolo | 1ed76b8 | 2017-12-05 13:58:22 -0800 | [diff] [blame] | 60 | type: tosca.nodes.ONOSApp |
Zack Williams | a276311 | 2017-01-03 11:38:38 -0700 | [diff] [blame] | 61 | requirements: |
Matteo Scandolo | 1ed76b8 | 2017-12-05 13:58:22 -0800 | [diff] [blame] | 62 | - owner: |
Zack Williams | a276311 | 2017-01-03 11:38:38 -0700 | [diff] [blame] | 63 | node: service#ONOS_CORD |
Matteo Scandolo | 1ed76b8 | 2017-12-05 13:58:22 -0800 | [diff] [blame] | 64 | relationship: tosca.relationships.BelongsToOne |
Zack Williams | a276311 | 2017-01-03 11:38:38 -0700 | [diff] [blame] | 65 | properties: |
Matteo Scandolo | 1ed76b8 | 2017-12-05 13:58:22 -0800 | [diff] [blame] | 66 | name: VTN_ONOS_app |
Zack Williams | f31df5d | 2017-11-27 22:48:43 -0700 | [diff] [blame] | 67 | install_dependencies: {{ onos_mavenrepo_url }}/repository/org/opencord/cord-config/{{ cord_config_app_version }}/cord-config-{{ cord_config_app_version }}.oar, {{ onos_mavenrepo_url }}/repository/org/opencord/vtn/{{ cord_vtn_app_version }}/vtn-{{ cord_vtn_app_version }}.oar |
Zack Williams | a276311 | 2017-01-03 11:38:38 -0700 | [diff] [blame] | 68 | dependencies: org.onosproject.drivers, org.onosproject.drivers.ovsdb, org.onosproject.openflow-base, org.onosproject.ovsdb-base, org.onosproject.dhcp |
Matteo Scandolo | 1ed76b8 | 2017-12-05 13:58:22 -0800 | [diff] [blame] | 69 | # autogenerate: vtn-network-cfg |
| 70 | |
| 71 | VTN_ONOS_app_autogenerate: |
| 72 | type: tosca.nodes.ServiceInstanceAttribute |
| 73 | requirements: |
| 74 | - service_instance: |
| 75 | node: VTN_ONOS_app |
| 76 | relationship: tosca.relationships.BelongsToOne |
| 77 | properties: |
| 78 | name: autogenerate |
| 79 | value: vtn-network-cfg |
| 80 | |
| 81 | VTN_ONOS_app_VTN_Service: |
| 82 | type: tosca.nodes.ServiceInstanceLink |
| 83 | requirements: |
| 84 | - provider_service_instance: |
| 85 | node: VTN_ONOS_app |
| 86 | relationship: tosca.relationships.BelongsToOne |
| 87 | - subscriber_service: |
| 88 | node: service#vtn |
| 89 | relationship: tosca.relationships.BelongsToOne |
Zack Williams | a276311 | 2017-01-03 11:38:38 -0700 | [diff] [blame] | 90 | |