blob: eab7961a9b1b3f4bd21ee8de5ba265e2910a7a85 [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:
20 - custom_types/xos.yaml
21
22description: Configures the VTN ONOS service
23
24topology_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 Williams7f933942017-11-27 22:48:43 -070034 rest_hostname: onos-cord.{{ site_suffix }}
Zack Williamsa2763112017-01-03 11:38:38 -070035 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 Williams7f933942017-11-27 22:48:43 -070048 xosEndpoint: xos-chameleon.{{ site_suffix }}:{{ xos_chameleon_port }}
Zack Williamsa2763112017-01-03 11:38:38 -070049 xosUser: {{ xos_admin_user }}
50 xosPassword: {{ xos_admin_pass }}
51 replaces: service_vtn
52 vtnAPIVersion: 2
Zack Williams7f933942017-11-27 22:48:43 -070053 controllerPort: onos-cord.{{ site_suffix }}:6654
Zack Williamsa2763112017-01-03 11:38:38 -070054
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 Williams7f933942017-11-27 22:48:43 -070065 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 -070066 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