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: |
| 20 | - custom_types/xos.yaml |
| 21 | |
| 22 | description: Configures the VTN ONOS service |
| 23 | |
| 24 | topology_template: |
| 25 | node_templates: |
| 26 | |
| 27 | service#ONOS_CORD: |
| 28 | type: tosca.nodes.ONOSService |
| 29 | requirements: |
| 30 | properties: |
| 31 | kind: onos |
| 32 | view_url: /admin/onos/onosservice/$id$/ |
| 33 | no_container: true |
Zack Williams | f31df5d | 2017-11-27 22:48:43 -0700 | [diff] [blame] | 34 | rest_hostname: onos-cord.{{ site_suffix }} |
Zack Williams | a276311 | 2017-01-03 11:38:38 -0700 | [diff] [blame] | 35 | rest_port: 8182 |
| 36 | replaces: service_ONOS_CORD |
| 37 | |
| 38 | service#vtn: |
| 39 | type: tosca.nodes.VTNService |
| 40 | properties: |
| 41 | view_url: /admin/vtn/vtnservice/$id$/ |
| 42 | privateGatewayMac: 00:00:00:00:00:01 |
| 43 | localManagementIp: {{ management_network_ip }} |
| 44 | ovsdbPort: 6641 |
| 45 | sshUser: root |
| 46 | sshKeyFile: /root/node_key |
| 47 | sshPort: 22 |
Zack Williams | f31df5d | 2017-11-27 22:48:43 -0700 | [diff] [blame] | 48 | xosEndpoint: xos-chameleon.{{ site_suffix }}:{{ xos_chameleon_port }} |
Zack Williams | a276311 | 2017-01-03 11:38:38 -0700 | [diff] [blame] | 49 | xosUser: {{ xos_admin_user }} |
| 50 | xosPassword: {{ xos_admin_pass }} |
| 51 | replaces: service_vtn |
| 52 | vtnAPIVersion: 2 |
Zack Williams | f31df5d | 2017-11-27 22:48:43 -0700 | [diff] [blame] | 53 | controllerPort: onos-cord.{{ site_suffix }}:6654 |
Zack Williams | a276311 | 2017-01-03 11:38:38 -0700 | [diff] [blame] | 54 | |
| 55 | VTN_ONOS_app: |
| 56 | type: tosca.nodes.ONOSVTNApp |
| 57 | requirements: |
| 58 | - onos_tenant: |
| 59 | node: service#ONOS_CORD |
| 60 | relationship: tosca.relationships.TenantOfService |
| 61 | - vtn_service: |
| 62 | node: service#vtn |
| 63 | relationship: tosca.relationships.UsedByService |
| 64 | properties: |
Zack Williams | f31df5d | 2017-11-27 22:48:43 -0700 | [diff] [blame] | 65 | 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] | 66 | dependencies: org.onosproject.drivers, org.onosproject.drivers.ovsdb, org.onosproject.openflow-base, org.onosproject.ovsdb-base, org.onosproject.dhcp |
| 67 | autogenerate: vtn-network-cfg |
| 68 | |