Andy Bavier | e6478b2 | 2017-12-21 13:17:56 -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 | |
| 17 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 18 | |
| 19 | imports: |
| 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 |
| 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 |
| 33 | properties: |
| 34 | name: ONOS_CORD |
| 35 | kind: platform |
| 36 | no_container: true |
| 37 | rest_hostname: onos-cord.{{ site_suffix }} |
| 38 | rest_port: 8182 |
| 39 | |
| 40 | service#vtn: |
| 41 | type: tosca.nodes.VTNService |
| 42 | properties: |
| 43 | name: vtn |
| 44 | kind: platform |
| 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 |
| 52 | xosEndpoint: xos-chameleon.{{ site_suffix }}:{{ xos_chameleon_port }} |
| 53 | xosUser: {{ xos_admin_user }} |
| 54 | xosPassword: {{ xos_admin_pass }} |
| 55 | vtnAPIVersion: 2 |
| 56 | controllerPort: onos-cord.{{ site_suffix }}:6654 |
| 57 | resync: false |
| 58 | |
| 59 | VTN_ONOS_app: |
| 60 | type: tosca.nodes.ONOSApp |
| 61 | requirements: |
| 62 | - owner: |
| 63 | node: service#ONOS_CORD |
| 64 | relationship: tosca.relationships.BelongsToOne |
| 65 | properties: |
| 66 | name: VTN_ONOS_app |
| 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 |
| 68 | dependencies: org.onosproject.drivers, org.onosproject.drivers.ovsdb, org.onosproject.openflow-base, org.onosproject.ovsdb-base, org.onosproject.dhcp |
| 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 |
| 90 | |