-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcommon-model.yang
647 lines (512 loc) · 11.4 KB
/
common-model.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
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
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
module common-model {
namespace "urn:opendaylight:capwap:common-model";
prefix "common-model";
import ietf-inet-types { prefix inet; revision-date 2010-09-24; }
contact "Navin Agrawal <[email protected]>";
description
"This module contains the base data model of a CAPWAP message types.
It rolls up the definitions contained in RFC5415.
This program and the accompanying materials are made available
under the terms of the Eclipse Public License v1.0 which
accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v10.html";
revision "2015-02-17" {
description
"Initial revision.";
reference "RFC5415";
}
typedef capwap-version {
type enumeration {
enum "default" {
value 0;
}
}
}
typedef vendor-id {
type uint32;
}
typedef capwap-pkt-type {
description "CAPWAP packet type";
type uint8 {
range "0..15";
}
}
typedef capwap-control-msg-type {
description "Values of CAPWAP Control Message Type";
type uint32 {
range "1..26";
}
}
typedef capwap-control-msg-element-type {
description "Values of CAPWAP Control Message Element Type";
type uint16 {
range "1..49";
}
}
grouping capwap-preamble {
reference "TBD";
description "Capwap Preamble";
leaf version {
type capwap-version;
}
leaf type {
type capwap-pkt-type;
}
}
typedef capwap-header-hlen {
description "CAPWAP Header HLEN";
type uint8 {
range "0..31";
}
}
typedef capwap-header-rid {
description "CAPWAP Header RID";
type uint8 {
range "0..31";
}
}
typedef capwap-header-wbid {
description "CAPWAP Header WBID";
type uint8 {
range "0..31";
}
}
typedef capwap-header-flag {
description "CAPWAP Header FLAG";
type uint8 {
range "0..7";
}
}
typedef capwap-header-fragmentoffset {
description "CAPWAP Header Fragment Offset";
type uint16 {
range "0..8191";
}
}
typedef capwap-header-rsvd {
description "CAPWAP Header RSVD";
type uint8 {
range "0..7";
}
}
grouping wireless-specific-info {
reference "TBD";
description "TBD";
leaf wsi-length {
type uint8;
}
leaf wsi-value {
type binary;
}
}
grouping msg-element-hdr {
reference "TBD";
description "TBD";
leaf length {
type uint8;
}
leaf value {
type binary;
}
}
grouping radio-mac-addr {
reference "TBD";
description "TBD";
leaf length {
type uint8;
}
leaf value {
type binary;
}
}
grouping capwap-header {
reference "TBD";
description "Capwap Header";
uses capwap-preamble;
leaf hlen {
type capwap-header-hlen;
mandatory true;
}
leaf rid {
type capwap-header-rid;
mandatory true;
}
leaf t-flag {
type boolean;
description "T Flag";
mandatory true;
}
leaf f-flag {
type boolean;
description "F Flag";
mandatory true;
}
leaf l-flag {
type boolean;
description "L Flag";
mandatory true;
}
leaf w-flag {
type boolean;
description "W Flag";
mandatory true;
}
leaf m-flag {
type boolean;
description "M Flag";
mandatory true;
}
leaf k-flag {
type boolean;
description "K Flag";
mandatory true;
}
leaf flag {
type capwap-header-flag;
mandatory true;
}
leaf fragmentid {
type uint16;
description "Fragment ID";
mandatory true;
}
leaf fo {
type capwap-header-fragmentoffset;
description "Fragment Offset";
mandatory true;
}
leaf rsvd {
type capwap-header-rsvd;
description "RSVD";
mandatory true;
}
container radio-mac-addr {
uses radio-mac-addr;
}
container wireless-specific-info {
uses wireless-specific-info;
}
leaf payload {
type binary;
description "Payload";
}
}
grouping capwap-control-header {
reference "TBD";
description "Capwap Control Header";
leaf message-type {
type uint32;
}
leaf seq-number {
type uint8;
}
leaf msg-elem-length {
type uint16;
}
leaf flags {
type uint8;
}
leaf message-elements {
type binary;
}
}
grouping ac-info-sub-element {
reference "TBD";
description "AC Information Sub-element";
leaf vendorid {
type vendor-id;
}
leaf type {
type uint16;
}
leaf length {
type uint16;
}
leaf data {
type binary;
}
}
grouping ac-descriptor-dtls-policy {
reference "TBD";
description "AC Descriptor DTLS Policy";
leaf rsvd {
type uint8 {
range "0..31";
}
}
leaf D {
type boolean;
}
leaf C {
type boolean;
}
leaf R {
type boolean;
}
}
grouping ac-descriptor {
reference "TBD";
description "AC Descriptor";
uses msg-element-hdr;
leaf stations {
type uint16;
}
leaf limit {
type uint16;
}
leaf active-wtp {
type uint16;
}
leaf max-wtp {
type uint16;
}
leaf security {
type uint8;
}
leaf r-mac-field {
type uint8;
}
leaf resvd1 {
type uint8;
}
uses ac-descriptor-dtls-policy;
leaf info-sub-elements {
type binary;
}
}
grouping wtp-board-data-se {
reference "TBD";
description "WTP Board Data Sub-Element";
leaf type {
type uint16 {
range "0..4";
}
}
leaf length {
type uint16 {
range "1..1024";
}
}
leaf value {
type binary;
}
}
grouping wtp-board-data {
reference "TBD";
description "WTP Board Data Message Element";
leaf vendorid {
type vendor-id;
}
uses wtp-board-data-se;
}
grouping wtp-descriptor-se {
reference "TBD";
description "WTP Descriptor Sub Element";
leaf vendorid {
type vendor-id;
}
leaf type {
type uint16 {
range 0..4;
}
}
leaf length {
type uint16 {
range 1..1024;
}
}
leaf value {
type binary;
}
}
grouping wtp-encryption-se {
reference "TBD";
description "WTP Encryption Sub Element";
leaf resvd {
type uint8 {
range 0..7;
}
}
leaf wbid {
type uint8 {
range 0..31;
}
}
leaf capabilities {
type uint16;
}
}
grouping wtp-descriptor {
reference "TBD";
description "WTP Descriptor Message Element";
leaf max-radios {
type uint8;
}
leaf radios-in-use {
type uint8;
}
leaf num-encrypt {
type uint8;
}
uses wtp-encryption-se;
uses wtp-descriptor-se;
}
grouping wtp-frame-tunnel-mode {
reference "TBD";
description "WTP Frame Tunnel Mode Message Element";
leaf rsvd {
type uint8 {
range "0..15";
}
}
leaf bit-n {
type boolean;
}
leaf bit-e {
type boolean;
}
leaf bit-l {
type boolean;
}
leaf bit-r {
type boolean;
}
}
grouping wtp-mac-type {
reference "TBD";
description "WTP MAC Type Message Element";
leaf mac-type {
type uint8 {
range "0..2";
}
}
}
grouping wtp-discovery-type {
reference "RFC5415";
description "WTP Discovery Type Message Element";
leaf discovery-type {
type uint8 {
range 0..4;
}
}
}
grouping wtp-radio-info {
reference "RFC5416";
description "802.11 WTP Radio Information Message Element";
leaf radio-id {
type uint8 {
range 1..31;
}
}
leaf rsvd {
type uint8 {
range 0..7;
}
}
leaf rsvd1 {
type uint16;
}
leaf rsvd2 {
type uint8;
}
leaf rsvd3 {
type uint8 {
range 0..15;
}
}
leaf type-n {
type boolean;
}
leaf type-g {
type boolean;
}
leaf type-a {
type boolean;
}
leaf type-b {
type boolean;
}
}
grouping ac-ipv4-list {
reference "TBD";
description "AC IPv4 List";
leaf-list ac-ipv4 {
type inet:ipv4-address;
}
}
grouping ac-ipv6-list {
reference "TBD";
description "AC IPv6 List";
leaf-list ac-ipv6 {
type inet:ipv6-address;
}
}
grouping ac-name {
reference "TBD";
description "AC Name";
leaf-list name {
type uint8;
}
}
grouping ac-name-priority {
reference "TBD";
description "AC Name Priority";
leaf priority {
type uint8;
}
leaf-list name {
type uint8;
}
}
grouping ac-timestamp {
reference "TBD";
description "AC Timestamp";
leaf timestamp {
type uint32;
}
}
grouping capwap-control-ipv4-address {
reference "TBD";
description "Capwap Control IPv4 Address";
leaf ipv4-address {
type inet:ipv4-address;
}
leaf wtp-count {
type uint16;
}
}
grouping capwap-control-ipv6-address {
reference "TBD";
description "Capwap Control IPv6 Address";
leaf ipv6-address {
type inet:ipv6-address;
}
leaf wtp-count {
type uint16;
}
}
grouping capwap-local-ipv4-address {
reference "TBD";
description "Capwap Local IPv4 Address";
leaf ipv4-address {
type inet:ipv4-address;
}
}
grouping capwap-local-ipv6-address {
reference "TBD";
description "Capwap Local IPv6 Address";
leaf ipv6-address {
type inet:ipv6-address;
}
}
grouping capwap-timers {
reference "TBD";
description "Capwap Timers";
leaf discovery {
type uint8;
}
leaf echo-request {
type uint8;
}
}
}