blob: fd4ccf412bc08c625cbd02ae0fe98f951bc7a665 [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
19# compile this with "m4 vrouter.m4 > vrouter.yaml"
20
21# include macros
22include(macros.m4)
23
24node_types:
25
26 tosca.nodes.VRouterService:
27 derived_from: tosca.nodes.Root
28 description: >
29 CORD: The vRouter Service.
30 capabilities:
31 xos_base_service_caps
32 properties:
33 xos_base_props
34 xos_base_service_props
35 rest_hostname:
36 type: string
37 required: false
38 rest_port:
39 type: string
40 required: false
41 rest_user:
42 type: string
43 required: false
44 rest_pass:
45 type: string
46 required: false
47
48 tosca.nodes.VRouterDevice:
49 derived_from: tosca.nodes.Root
50 description: >
51 CORD: The vRouter Device.
52 capabilities:
53 xos_base_service_caps
54 properties:
55 xos_base_props
56 openflow_id:
57 type: string
58 required: true
59 config_key:
60 type: string
61 required: false
62 driver:
63 type: string
64 required: true
65
66 tosca.nodes.VRouterPort:
67 derived_from: tosca.nodes.Root
68 description: >
69 CORD: The vRouter Port.
70 capabilities:
71 xos_base_service_caps
72 properties:
73 xos_base_props
74 openflow_id:
75 type: string
76 required: true
77
78 tosca.nodes.VRouterInterface:
79 derived_from: tosca.nodes.Root
80 description: >
81 CORD: The vRouter Interface.
82 capabilities:
83 xos_base_service_caps
84 properties:
85 xos_base_props
86 name:
87 type: string
88 required: true
89 mac:
90 type: string
91 required: true
92 vlan:
93 type: string
94 required: false
95
96 tosca.nodes.VRouterIp:
97 derived_from: tosca.nodes.Root
98 description: >
99 CORD: The vRouter Ip.
100 capabilities:
101 xos_base_service_caps
102 properties:
103 xos_base_props
104 ip:
105 type: string
106 required: true
107
108 tosca.nodes.VRouterApp:
109 derived_from: tosca.nodes.Root
110 description: >
111 CORD: The vRouter ONOS App Config.
112 capabilities:
113 xos_base_service_caps
114 properties:
115 xos_base_props
116 name:
117 type: string
118 required: true
119 control_plane_connect_point:
120 type: string
121 required: true
122 ospf_enabled:
123 type: boolean
124 required: true
125
126 tosca.relationships.PortOfDevice:
127 derived_from: tosca.relationships.Root
128 valid_target_types: [ tosca.capabilities.xos.VRouterPort ]
129
130 tosca.relationships.InterfaceOfPort:
131 derived_from: tosca.relationships.Root
132 valid_target_types: [ tosca.capabilities.xos.VRouterInterface ]
133
134 tosca.relationships.IpOfInterface:
135 derived_from: tosca.relationships.Root
136 valid_target_types: [ tosca.capabilities.xos.VRouterIp ]