blob: 4f5a419e2a3de13493a926b8635d5b06762d108d [file] [log] [blame]
Andy Baviere6478b22017-12-21 13:17:56 -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
17tosca_definitions_version: tosca_simple_yaml_1_0
18
19imports:
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
26description: Configures the VTN ONOS service
27
28topology_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
Zack Williams2c010532018-01-18 10:22:57 -070047 localManagementIp: {{ vtn_net_management_local_cidr | ipaddr('1') }}
Andy Baviere6478b22017-12-21 13:17:56 -070048 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