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
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
|
module qos-profile-1-0 {
yang-version 1.1;
namespace "urn:onf:yang:qos-profile-1-0";
prefix qos-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: QosProfile@openBackhaul.com
Editor : Thorsten Heinze
Email : Thorsten.Heinze@openBackhaul.com";
description
"Copyright 2019 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 2020-01-24 {
description
"Model for the Transport SDN Pilot at Telefonica Germany.
Please view https://github.com/openBackhaul/qosProfile/issues for changes.";
reference
"https://github.com/openBackhaul/qosProfile/tree/tsp: Model definition
https://github.com/openBackhaul/onfCoreIm/tree/tsp: ONF TR-512 Core IM incl. Profile and enhanced Equipment definition";
}
revision 2019-07-12 {
description
"Model for the Transport SDN Pilot at Telefonica Germany.
Please view https://github.com/openBackhaul/qosProfile/issues for changes.";
reference
"https://github.com/openBackhaul/qosProfile/tree/tsp: Model definition
https://github.com/openBackhaul/onfCoreIm/tree/tsp: ONF TR-512 Core IM incl. Profile and enhanced Equipment definition";
}
identity PROFILE_NAME_TYPE_QOS_PROFILE {
base core-model:PROFILE_NAME_TYPE;
description
"none";
}
augment "/core-model:control-construct/core-model:profile-collection/core-model:profile" {
when "derived-from-or-self(./core-model:profile-name, 'qos-profile:PROFILE_NAME_TYPE_QOS_PROFILE')";
uses qos-profile-spec;
description
"none";
}
/****************************************
* package notifications
**************************************/
notification object-creation-notification {
uses object-creation-notification;
description
"none";
}
grouping object-creation-notification {
leaf counter {
type int32;
default "-1";
config false;
description
"Counts object creation notifications.";
}
leaf timestamp {
type yang:date-and-time;
default "2010-11-20T14:00:00+01:00";
config false;
description
"none";
}
leaf object-id-ref {
type leafref {
path "/core-model:control-construct/core-model:profile-collection/core-model:profile/core-model:uuid";
require-instance false;
}
config false;
description
"none";
}
leaf object-type {
type string;
default "Type of created object not specified.";
config false;
description
"none";
}
description
"none";
}
notification object-deletion-notification {
uses object-deletion-notification;
description
"none";
}
grouping object-deletion-notification {
leaf counter {
type int32;
default "-1";
config false;
description
"Counts object deletion notifications.";
}
leaf timestamp {
type yang:date-and-time;
default "2010-11-20T14:00:00+01:00";
config false;
description
"none";
}
leaf object-id-ref {
type leafref {
path "/core-model:control-construct/core-model:profile-collection/core-model:profile/core-model:uuid";
require-instance false;
}
config false;
description
"none";
}
description
"none";
}
/****************************************
* grouping statements for object classes
**************************************/
grouping qos-profile-spec {
container qos-profile-pac {
uses qos-profile-pac;
description
"none";
}
description
"none";
}
grouping qos-profile-pac {
container qos-profile-capability {
config false;
uses qos-profile-capability;
description
"none";
}
container qos-profile-configuration {
config false;
uses qos-profile-configuration;
description
"none";
}
description
"none";
}
grouping qos-profile-capability {
leaf profile-naming-is-avail {
type boolean;
default "false";
config false;
description
"1 = There is a free text field available for naming the profile.";
}
leaf-list available-queue-list {
type queue-name-type;
config false;
min-elements 1;
max-elements 8;
description
"List of queues, which are available at the physical interface.";
}
leaf drop-precedence-at-be-queue-is-avail {
type boolean;
default "false";
config false;
description
"1 = Configuration of the drop precedence is available at the best effort queue.";
}
leaf drop-precedence-at-af-queues-is-avail {
type boolean;
default "false";
config false;
description
"1 = Configuration of the drop precedence is available at the assured forwarding queues.";
}
leaf drop-precedence-at-prio-queues-is-avail {
type boolean;
default "false";
config false;
description
"1 = Configuration of the drop precedence is available at the priority queues.";
}
leaf available-qos-profile-kind-list {
type qos-profile-kind-type;
default "QOS_PROFILE_KIND_TYPE_NOT_YET_DEFINED";
config false;
description
"List of header information that are supported to be base of the QoS definition.";
}
description
"none";
}
grouping qos-profile-configuration {
leaf profile-name {
type string;
default "Name of profile not yet defined.";
description
"Identifier of the profile. Could be a name, could be a number. Free text field to be filled by the operator.";
}
leaf qos-profile-kind {
type qos-profile-kind-type;
default "QOS_PROFILE_KIND_TYPE_NOT_YET_DEFINED";
description
"Defines whether the sorting into queues is done based on VLAN, MPLS or IP header information.";
}
list ingress-8021p-to-per-hop-behavior-mapping-list {
key "queue-name drop-precedence-inside-queue";
min-elements 8;
max-elements 8;
uses per-hop-behavior-type;
description
"Only relevant when qosProfileKind == IEEE8021P. Associates the value of the three p-bits of the VLAN header with a per hop behavior at the physical interface. First entry in the list [0] relates to p-bit value '0'. Last entry in the list [7] relates to p-bit value '7'.";
}
list ingress-exp-to-per-hop-behavior-mapping-list {
key "queue-name drop-precedence-inside-queue";
min-elements 8;
max-elements 8;
uses per-hop-behavior-type;
description
"Only relevant when qosProfileKind == MPLS_EXP. Associates the value of the three p-bits of the MPLS header with a per hop behavior at the physical interface. First entry in the list [0] relates to p-bit value '0'. Last entry in the list [7] relates to p-bit value '7'.";
}
list ingress-ip-dscp-to-per-hop-behavior-mapping-list {
key "queue-name drop-precedence-inside-queue";
min-elements 64;
max-elements 64;
uses per-hop-behavior-type;
description
"Only relevant when qosProfileKind == IP_DSCP. Associates the value of the 8 dscp bits of the IP header with a per hop behavior at the physical interface. First entry in the list [0] relates to dscp value '0'. Last entry in the list [63] relates to dscp value '63'.";
}
leaf writing-per-hop-behavior-into-8021p-is-on {
type boolean;
default "false";
description
"1 = Original content of 802.1p bits is overwritten with local per hop behavior.";
}
list egress-per-hop-behavior-to-8021p-mapping-list {
key "mapping-number";
max-elements 24;
uses egress-per-hop-behavior-to-priority-bits-mapping-type;
description
"Only relevant if (writingPerHopBehaviorInto8021pIsOn==1). Translates (queue and drop precedence) into values of the three p-bits of the VLAN header.";
}
leaf writing-per-hop-behavior-into-mpls-exp-is-on {
type boolean;
default "false";
description
"1 = Original content of MPLS EXP bits is overwritten with local per hop behavior.";
}
list egress-per-hop-behavior-to-mpls-exp-mapping-list {
key "mapping-number";
max-elements 24;
uses egress-per-hop-behavior-to-priority-bits-mapping-type;
description
"Only relevant if (writingPerHopBehaviorIntoMplsExpIsOn==1). Translates (queue and drop precedence) into values of the three p-bits of the MPLS header.";
}
leaf writing-per-hop-behavior-into-ip-dscp-is-on {
type boolean;
default "false";
description
"1 = Original content of IP DSCP bits is overwritten with local per hop behavior.";
}
list egress-per-hop-behavior-to-ip-dscp-mapping-list {
key "mapping-number";
max-elements 24;
uses egress-per-hop-behavior-to-priority-bits-mapping-type;
description
"Only relevant if (writingPerHopBehaviorIntoIpDscpIsOn==1). Translates (queue and drop precedence) into values of the six dscp bits of the IP header.";
}
description
"Defines the profile that will be used for mapping between header information and queues (next hop behavior).";
}
/****************************************
* typedef statements
**************************************/
typedef severity-type {
type identityref {
base SEVERITY_TYPE;
}
description
"none";
}
typedef qos-profile-kind-type {
type identityref {
base QOS_PROFILE_KIND_TYPE;
}
description
"none";
}
typedef queue-name-type {
type identityref {
base QUEUE_NAME_TYPE;
}
description
"none";
}
typedef drop-precedence-type {
type identityref {
base DROP_PRECEDENCE_TYPE;
}
description
"none";
}
/*********************************************
* grouping statements for complex data types
*******************************************/
identity SEVERITY_TYPE {
description
"none";
}
identity SEVERITY_TYPE_NON-ALARMED {
base SEVERITY_TYPE;
description
"none";
}
identity SEVERITY_TYPE_WARNING {
base SEVERITY_TYPE;
description
"none";
}
identity SEVERITY_TYPE_MAJOR {
base SEVERITY_TYPE;
description
"none";
}
identity SEVERITY_TYPE_MINOR {
base SEVERITY_TYPE;
description
"none";
}
identity QOS_PROFILE_KIND_TYPE {
description
"none";
}
identity QOS_PROFILE_KIND_TYPE_NONE {
base QOS_PROFILE_KIND_TYPE;
description
"none";
}
identity QOS_PROFILE_KIND_TYPE_IEEE8021P {
base QOS_PROFILE_KIND_TYPE;
description
"none";
}
identity QOS_PROFILE_KIND_TYPE_MPLS_EXP {
base QOS_PROFILE_KIND_TYPE;
description
"none";
}
identity QOS_PROFILE_KIND_TYPE_IP_DSCP {
base QOS_PROFILE_KIND_TYPE;
description
"none";
}
identity QOS_PROFILE_KIND_TYPE_NOT_YET_DEFINED {
base QOS_PROFILE_KIND_TYPE;
description
"none";
}
identity QUEUE_NAME_TYPE {
description
"none";
}
identity QUEUE_NAME_TYPE_BEST_EFFORT_QUEUE {
base QUEUE_NAME_TYPE;
description
"Queue 0.";
}
identity QUEUE_NAME_TYPE_ASSURED_FORWARDING_QUEUE1 {
base QUEUE_NAME_TYPE;
description
"Queue 1.";
}
identity QUEUE_NAME_TYPE_ASSURED_FORWARDING_QUEUE2 {
base QUEUE_NAME_TYPE;
description
"Queue 2.";
}
identity QUEUE_NAME_TYPE_ASSURED_FORWARDING_QUEUE3 {
base QUEUE_NAME_TYPE;
description
"Queue 3.";
}
identity QUEUE_NAME_TYPE_ASSURED_FORWARDING_QUEUE4 {
base QUEUE_NAME_TYPE;
description
"Queue 4.";
}
identity QUEUE_NAME_TYPE_EXPEDITED_FORWARDING_QUEUE {
base QUEUE_NAME_TYPE;
description
"Queue 5.";
}
identity QUEUE_NAME_TYPE_CLASS_SELECTOR_QUEUE6 {
base QUEUE_NAME_TYPE;
description
"Queue 6.";
}
identity QUEUE_NAME_TYPE_CLASS_SELECTOR_QUEUE7 {
base QUEUE_NAME_TYPE;
description
"Queue 7.";
}
identity QUEUE_NAME_TYPE_NOT_YET_DEFINED {
base QUEUE_NAME_TYPE;
description
"none";
}
identity DROP_PRECEDENCE_TYPE {
description
"none";
}
identity DROP_PRECEDENCE_TYPE_NONE {
base DROP_PRECEDENCE_TYPE;
description
"none";
}
identity DROP_PRECEDENCE_TYPE_LOW {
base DROP_PRECEDENCE_TYPE;
description
"Would be equal to GREEN.";
}
identity DROP_PRECEDENCE_TYPE_MEDIUM {
base DROP_PRECEDENCE_TYPE;
description
"Would be equal to YELLOW.";
}
identity DROP_PRECEDENCE_TYPE_HIGH {
base DROP_PRECEDENCE_TYPE;
description
"Would be equal to RED.";
}
identity DROP_PRECEDENCE_TYPE_NOT_YET_DEFINED {
base DROP_PRECEDENCE_TYPE;
description
"none";
}
grouping per-hop-behavior-type {
leaf queue-name {
type queue-name-type;
description
"Name of the queue.";
}
leaf drop-precedence-inside-queue {
type drop-precedence-type;
description
"(if dropPrecedenceAt*QueueIsAvail for the referenced queue == 0) default value shall be kept and configuration attempts shall be ignored.";
}
description
"none";
}
grouping egress-per-hop-behavior-to-priority-bits-mapping-type {
leaf mapping-number {
type int16;
description
"none";
}
container per-hop-behavior {
uses per-hop-behavior-type;
description
"Per hop behavior, which is to be translated into a p-bit entry in the VLAN, MPLS or IP header.";
}
leaf value-of-priority-bits {
type int8;
default "-1";
description
"Associated value of the three, three or six p-bits of the VLAN, MPLS or IP header.";
}
description
"none";
}
}
|