blob: a9a890188e395adfcdeebefedbe4b84954177b96 [file] [log] [blame]
Matteo Scandolod02b73b2017-08-08 13:05:26 -07001
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
Matteo Scandoloa4e6e9a2016-08-23 12:04:45 -070017tosca_definitions_version: tosca_simple_yaml_1_0
18
19description: Just enough Tosca to get the vSG slice running on the CORD POD
20
21imports:
22 - custom_types/xos.yaml
23 - custom_types/vrouter.yaml
24
25topology_template:
26 node_templates:
27
28 service#vRouterSample:
29 type: tosca.nodes.VRouterService
30 properties:
31 view_url: /admin/vrouter/vrouterservice/$id$/
32 rest_hostname: 10.0.2.2
33 rest_port: 8181
34 rest_user: onos
35 rest_pass: rocks
36
37 device#switch:
38 type: tosca.nodes.VRouterDevice
39 properties:
40 openflow_id: of:000000000001
41 driver: softrouter
42 # config_key: basic
43 requirements:
44 - service#vRouterSample:
45 node: service#vRouterSample
46 relationship: tosca.relationships.MemberOfService
47
48 port#sample_port:
49 type: tosca.nodes.VRouterPort
50 properties:
51 openflow_id: of:000000000001/1
52 requirements:
53 - device#switch:
54 node: device#switch
55 relationship: tosca.relationships.PortOfDevice
56 - service#vRouterSample:
57 node: service#vRouterSample
58 relationship: tosca.relationships.MemberOfService
59
60 interface#b1-1:
61 type: tosca.nodes.VRouterInterface
62 properties:
63 name: b1-1
64 mac: 00:00:00:00:00:01
65 vlan: 100
66 requirements:
67 - port#sample_port:
68 node: port#sample_port
69 relationship: tosca.relationships.InterfaceOfPort
70
71 vrouter_ips:
72 type: tosca.nodes.VRouterIp
73 properties:
74 ip: 10.0.4.2/24
75 requirements:
76 - interface#b1-1:
77 node: interface#b1-1
78 relationship: tosca.relationships.IpOfInterface
79
80 app#vrouterApp:
81 type: tosca.nodes.VRouterApp
82 properties:
83 name: org.onosproject.router
84 # can we use a relation to specify the connect point port?
85 control_plane_connect_point: of:00000000000000b1/5
86 ospf_enabled: true
87 requirements:
88 - service#vRouterSample:
89 node: service#vRouterSample
90 relationship: tosca.relationships.MemberOfService