-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscheduler-profile-1-0.yang
361 lines (323 loc) · 9.49 KB
/
scheduler-profile-1-0.yang
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
module scheduler-profile-1-0 {
yang-version 1.1;
namespace "urn:onf:yang:scheduler-profile-1-0";
prefix scheduler-profile;
import ietf-yang-types {
prefix yang;
}
import core-model-1-4 {
prefix core-model;
}
organization
"openBackhaul.com proposal to Open Networking Foundation (ONF)";
contact
"WG Web : https://github.com/openBackhaul/Overview
WG List: [email protected]
Editor : Thorsten Heinze
Email : [email protected]";
description
"Technology specific definition for scheduler profiles that can be referenced by multiple interface instances.
Copyright 2024 openBackhaul.com
Licensed under the Apache License, Version 2.0 (the 'License');
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an 'AS IS' BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.";
revision 2024-01-04 {
description
"Model for the Transport SDN Introduction at Telefonica Germany
Please view https://github.com/openBackhaul/schedulerProfile/issues for changes.";
reference
"https://github.com/openBackhaul/schedulerProfile/tree/tsi: Model definition
https://github.com/openBackhaul/onfCoreIm/tree/tsi: ONF TR-512 Core IM incl. Profile and enhanced Equipment definition";
}
revision 2022-03-31 {
description
"Model for the Transport SDN Pilot at Telefonica Germany
Please view https://github.com/openBackhaul/schedulerProfile/issues for changes.";
reference
"https://github.com/openBackhaul/schedulerProfile/tree/tsi: Model definition
https://github.com/openBackhaul/onfCoreIm/tree/tsi: ONF TR-512 Core IM incl. Profile and enhanced Equipment definition";
}
identity PROFILE_NAME_TYPE_SCHEDULER_PROFILE {
base core-model:PROFILE_NAME_TYPE;
description
"none";
}
/*********************************************
* grouping statements for complex data types
*******************************************/
identity QUEUE_NAME_TYPE {
description
"none";
}
identity QUEUE_NAME_TYPE_BEST_EFFORT_QUEUE {
base QUEUE_NAME_TYPE;
description
"QueueNumber=0;";
}
identity QUEUE_NAME_TYPE_ASSURED_FORWARDING_QUEUE1 {
base QUEUE_NAME_TYPE;
description
"QueueNumber=1;";
}
identity QUEUE_NAME_TYPE_ASSURED_FORWARDING_QUEUE2 {
base QUEUE_NAME_TYPE;
description
"QueueNumber=2;";
}
identity QUEUE_NAME_TYPE_ASSURED_FORWARDING_QUEUE3 {
base QUEUE_NAME_TYPE;
description
"QueueNumber=3;";
}
identity QUEUE_NAME_TYPE_ASSURED_FORWARDING_QUEUE4 {
base QUEUE_NAME_TYPE;
description
"QueueNumber=4;";
}
identity QUEUE_NAME_TYPE_EXPEDITED_FORWARDING_QUEUE {
base QUEUE_NAME_TYPE;
description
"QueueNumber=5;";
}
identity QUEUE_NAME_TYPE_CLASS_SELECTOR_QUEUE6 {
base QUEUE_NAME_TYPE;
description
"QueueNumber=6;";
}
identity QUEUE_NAME_TYPE_CLASS_SELECTOR_QUEUE7 {
base QUEUE_NAME_TYPE;
description
"QueueNumber=7;";
}
identity QUEUE_NAME_TYPE_QUEUENAME_NOT_YET_DEFINED {
base QUEUE_NAME_TYPE;
description
"none";
}
identity SCHEDULER_KIND_TYPE {
description
"none";
}
identity SCHEDULER_KIND_TYPE_STRICT {
base SCHEDULER_KIND_TYPE;
description
"Strict Priority";
}
identity SCHEDULER_KIND_TYPE_WFQ {
base SCHEDULER_KIND_TYPE;
description
"Weighted-Fair-Queuing";
}
identity SCHEDULER_KIND_TYPE_WRR {
base SCHEDULER_KIND_TYPE;
description
"Weighted Round Robin";
}
identity SCHEDULER_KIND_TYPE_DWRR {
base SCHEDULER_KIND_TYPE;
description
"Deficit Weighted Round Robin";
}
identity SCHEDULER_KIND_TYPE_NOT_YET_DEFINED {
base SCHEDULER_KIND_TYPE;
description
"none";
}
/****************************************
* typedef statements
**************************************/
typedef queue-name-type {
type identityref {
base QUEUE_NAME_TYPE;
}
description
"none";
}
typedef scheduler-kind-type {
type identityref {
base SCHEDULER_KIND_TYPE;
}
description
"none";
}
/****************************************
* grouping statements for object classes
**************************************/
grouping scheduler-profile-spec {
description
"none";
container scheduler-profile-pac {
description
"none";
uses scheduler-profile-pac;
}
}
grouping scheduler-profile-pac {
description
"none";
container scheduler-profile-capability {
config false;
description
"none";
uses scheduler-profile-capability;
}
container scheduler-profile-configuration {
config false;
description
"none";
uses scheduler-profile-configuration;
}
}
grouping scheduler-profile-capability {
description
"none";
leaf scheduler-kind-configuration-is-avail {
type boolean;
default "false";
config false;
description
"This attribute has to be set on 'true', if the kind of scheduler can be configured for a profile, which can be referenced by several interfaces.";
}
list available-queue-list {
key "queue-name";
config false;
min-elements 1;
max-elements 8;
description
"List of queues, which are available at the physical interface.";
uses available-queue-type;
}
}
grouping scheduler-profile-configuration {
description
"none";
list queue-behavior-list {
key "queue-name";
config false;
min-elements 1;
max-elements 8;
description
"Defines scheduling and dropping behavior of all queues.";
uses queue-behavior-type;
}
}
grouping available-queue-type {
description
"none";
leaf queue-name {
type queue-name-type;
config false;
mandatory true;
description
"Name of the queue.";
}
leaf-list available-scheduling-kind-list {
type scheduler-kind-type;
default "SCHEDULER_KIND_TYPE_NOT_YET_DEFINED";
config false;
description
"Lists the available types of scheduling.";
}
}
grouping queue-behavior-type {
description
"none";
leaf queue-name {
type queue-name-type;
mandatory true;
description
"Name of the queue.";
}
leaf scheduler-kind {
type scheduler-kind-type;
default "SCHEDULER_KIND_TYPE_NOT_YET_DEFINED";
description
"Type of scheduler to be used for this queue.";
}
leaf weighting {
type int8;
units "%";
default "-1";
description
"Only relevant if (schedulerKind==WFQ) OR (schedulerKind==DWRR) OR (schedulerKind==WRR). Serving rate for this weighted fair queueing queue as a percentage value.";
}
}
/****************************************
* package interfaces
**************************************/
rpc create-scheduler-profile {
description
"none";
input {
leaf base-scheduler-profile {
type leafref {
path "/core-model:control-construct/core-model:profile-collection/core-model:profile/core-model:uuid";
require-instance false;
}
description
"If filled with an UUID of an existing instance of SchedulerProfile, the RPC shall create a duplicate of the existing instance.";
}
}
output {
leaf created-scheduler-profile {
type leafref {
path "/core-model:control-construct/core-model:profile-collection/core-model:profile/core-model:uuid";
require-instance false;
}
mandatory true;
description
"UUID of the instance of SchedulerProfile that has been newly created.";
}
}
}
rpc modify-scheduler-profile {
description
"none";
input {
leaf existing-scheduler-profile {
type leafref {
path "/core-model:control-construct/core-model:profile-collection/core-model:profile/core-model:uuid";
require-instance false;
}
mandatory true;
description
"UUID of the instance of SchedulerProfile that shall be modified.";
}
list affected-queue-list {
key "queue-name";
min-elements 1;
max-elements 8;
description
"List of queues that shall be subject to modifications. queueName to be used as key attribute for identifying the queue that shall be modified.";
uses queue-behavior-type;
}
}
}
rpc delete-scheduler-profile {
description
"none";
input {
leaf obsolete-scheduler-profile {
type leafref {
path "/core-model:control-construct/core-model:profile-collection/core-model:profile/core-model:uuid";
require-instance false;
}
mandatory true;
description
"UUID of the instance of SchedulerProfile that shall be deleted.";
}
}
}
augment "/core-model:control-construct/core-model:profile-collection/core-model:profile" {
when "derived-from-or-self(./core-model:profile-name, 'scheduler-profile:PROFILE_NAME_TYPE_SCHEDULER_PROFILE')";
description
"none";
uses scheduler-profile-spec;
}
}