blob: 6a2dbd636204b797e6c4d719b87f63b700bbab71 [file] [log] [blame]
Matteo Scandolo3896c472017-08-01 13:31:42 -07001{#
2Copyright 2017-present Open Networking Foundation
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15#}
16
Zack Williamsa2763112017-01-03 11:38:38 -070017tosca_definitions_version: tosca_simple_yaml_1_0
18
19imports:
Matteo Scandolo1ed76b82017-12-05 13:58:22 -080020 - 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 Williamsa2763112017-01-03 11:38:38 -070025
26description: Configures the VTN ONOS service
27
28topology_template:
29 node_templates:
30
31 service#ONOS_CORD:
32 type: tosca.nodes.ONOSService
Zack Williamsa2763112017-01-03 11:38:38 -070033 properties:
Matteo Scandolo1ed76b82017-12-05 13:58:22 -080034 name: ONOS_CORD
35 kind: platform
Zack Williamsa2763112017-01-03 11:38:38 -070036 no_container: true
Zack Williamsf31df5d2017-11-27 22:48:43 -070037 rest_hostname: onos-cord.{{ site_suffix }}
Zack Williamsa2763112017-01-03 11:38:38 -070038 rest_port: 8182
Zack Williamsa2763112017-01-03 11:38:38 -070039
40 service#vtn:
41 type: tosca.nodes.VTNService
42 properties:
Matteo Scandolo1ed76b82017-12-05 13:58:22 -080043 name: vtn
44 kind: platform
Zack Williamsa2763112017-01-03 11:38:38 -070045 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 Williamsf31df5d2017-11-27 22:48:43 -070052 xosEndpoint: xos-chameleon.{{ site_suffix }}:{{ xos_chameleon_port }}
Zack Williamsa2763112017-01-03 11:38:38 -070053 xosUser: {{ xos_admin_user }}
54 xosPassword: {{ xos_admin_pass }}
Zack Williamsa2763112017-01-03 11:38:38 -070055 vtnAPIVersion: 2
Zack Williamsf31df5d2017-11-27 22:48:43 -070056 controllerPort: onos-cord.{{ site_suffix }}:6654
Matteo Scandolo1ed76b82017-12-05 13:58:22 -080057 resync: false
Zack Williamsa2763112017-01-03 11:38:38 -070058
59 VTN_ONOS_app:
Matteo Scandolo1ed76b82017-12-05 13:58:22 -080060 type: tosca.nodes.ONOSApp
Zack Williamsa2763112017-01-03 11:38:38 -070061 requirements:
Matteo Scandolo1ed76b82017-12-05 13:58:22 -080062 - owner:
Zack Williamsa2763112017-01-03 11:38:38 -070063 node: service#ONOS_CORD
Matteo Scandolo1ed76b82017-12-05 13:58:22 -080064 relationship: tosca.relationships.BelongsToOne
Zack Williamsa2763112017-01-03 11:38:38 -070065 properties:
Matteo Scandolo1ed76b82017-12-05 13:58:22 -080066 name: VTN_ONOS_app
Zack Williamsf31df5d2017-11-27 22:48:43 -070067 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 Williamsa2763112017-01-03 11:38:38 -070068 dependencies: org.onosproject.drivers, org.onosproject.drivers.ovsdb, org.onosproject.openflow-base, org.onosproject.ovsdb-base, org.onosproject.dhcp
Matteo Scandolo1ed76b82017-12-05 13:58:22 -080069 # 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 Williamsa2763112017-01-03 11:38:38 -070090