blob: 5ec02fd7e50fbf27ace2d8f080f582e7ea7d6041 [file] [log] [blame]
Matteo Scandolofcf842e2017-08-08 13:05:25 -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 Scandolo770c49f2016-09-23 15:07:38 -070017tosca_definitions_version: tosca_simple_yaml_1_0
18
19# compile this with "m4 metronet.m4 > metronet.yaml"
20
21# include macros
22include(macros.m4)
23
24node_types:
Andrea Campanellae92c9092017-03-17 10:44:37 +010025
26 tosca.nodes.VNodGlobalService:
27 description: >
28 CORD: The MetroNet Service.
29 derived_from: tosca.nodes.Root
30 capabilities:
31 xos_base_service_caps
32 properties:
33 xos_base_props
34 xos_base_service_props
35
36 tosca.nodes.MetroNetworkSystem:
Matteo Scandolo770c49f2016-09-23 15:07:38 -070037 derived_from: tosca.nodes.Root
38 description: >
39 CORD: The Metro Network Service.
40 capabilities:
41 xos_base_service_caps
42 properties:
43 xos_base_props
Andrea Campanellae92c9092017-03-17 10:44:37 +010044 xos_base_service_props
Matteo Scandolo9563aeb2016-09-28 16:07:58 -070045 administrativeState:
46 type: string
47 required: true
48 restUrl:
49 type: string
50 required: false
51
Matteo Scandoloddce4ec2016-09-26 13:11:03 -070052
Andrea Campanellae92c9092017-03-17 10:44:37 +010053 tosca.nodes.MetroNetworkDevice:
Matteo Scandoloddce4ec2016-09-26 13:11:03 -070054 derived_from: tosca.nodes.Root
55 description: >
56 CORD: The Metro Network Device.
57 properties:
58 xos_base_props
59 restCtrlUrl:
60 type: string
61 required: true
62 username:
63 type: string
64 required: true
65 password:
66 type: string
67 required: true
68 administrativeState:
69 type: string
70 required: true
71 authType:
72 type: string
73 required: false
Matteo Scandolo9563aeb2016-09-28 16:07:58 -070074 id:
75 type: string
76 required: true
Andrea Campanellae92c9092017-03-17 10:44:37 +010077
78 tosca.nodes.EcordBandwidthProfile:
79 derived_from: tosca.nodes.Root
80 description: >
81 CORD: The ecord bandwith profile.
82 capabilities:
Andrea Campanellae92c9092017-03-17 10:44:37 +010083 properties:
84 xos_base_props
85 bwpcfgcbs:
86 type: integer
87 required: false
88 bwpcfgebs:
89 type: integer
90 required: false
91 bwpcfgcir:
92 type: integer
93 required: false
94 bwpcfgeir:
95 type: integer
96 required: false
97 name:
98 type: string
99 required: true
100
Andrea Campanella11237552017-03-21 17:21:20 +0100101 tosca.nodes.EcordUserNetworkInterface:
102 derived_from: tosca.nodes.Root
103 description: >
104 CORD: The ecord user netowrk interface
105 capabilities:
106 properties:
107 xos_base_props
108 enabled:
109 type: boolean
110 required: false
111 capacity:
112 type: integer
113 required: false
114 bw_used:
115 type: integer
116 required: false
117 vlanIds:
118 type: string
119 required: false
120 name:
121 type: string
122 required: true
123 location:
124 type: string
125 required: false
126 latlng:
127 type: string
128 required: false
129
Andrea Campanellae92c9092017-03-17 10:44:37 +0100130 tosca.relationships.UsesBandwidthProfile:
131 derived_from: tosca.relationships.Root
132 valid_target_types: [ tosca.capabilities.xos.EcordBandwidthProfile ]