-
Notifications
You must be signed in to change notification settings - Fork 1
1820 lines (1785 loc) · 65.8 KB
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
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
module ieee802-dot1q-bridge {
namespace "urn:ieee:std:802.1Q:yang:ieee802-dot1q-bridge";
prefix dot1q;
import ieee802-types {
prefix ieee;
}
import ietf-yang-types {
prefix yang;
}
import ietf-interfaces {
prefix if;
}
import iana-if-type {
prefix ianaif;
}
import ieee802-dot1q-types {
prefix dot1qtypes;
}
organization
"IEEE 802.1 Working Group";
contact
"WG-URL: http://ieee802.org/1/
WG-EMail: [email protected]
Contact: IEEE 802.1 Working Group Chair
Postal: C/O IEEE 802.1 Working Group
IEEE Standards Association
445 Hoes Lane
Piscataway, NJ 08854
USA
E-mail: [email protected]";
description
"This YANG module describes the bridge configuration model for the
following IEEE 802.1Q Bridges:
1) Two Port MAC Relays
2) Customer VLAN Bridges
3) Provider Bridges.";
revision 2021-04-09 {
description
"Added some prefixes to avoid warnings in yang validator";
reference
"";
}
revision 2020-11-24 {
description
"Qcw rebase from 2020-11-06";
reference
"IEEE Std 802.1Qcr-2020, Bridges and Bridged Networks -
Asynchronous Traffic Shaping.";
}
revision 2020-11-06 {
description
"Published as part of IEEE Std 802.1Qcr-2020.
Third version.";
reference
"IEEE Std 802.1Qcr-2020, Bridges and Bridged Networks -
Asynchronous Traffic Shaping.";
}
revision 2020-06-04 {
description
"Published as part of IEEE Std 802.1Qcx-2020.
Second version.";
reference
"IEEE Std 802.1Qcx-2020, Bridges and Bridged Networks -
YANG Data Model for Connectivity Fault Management.";
}
revision 2018-03-07 {
description
"Published as part of IEEE Std 802.1Q-2018.
Initial version.";
reference
"IEEE Std 802.1Q-2018, Bridges and Bridged Networks.";
}
feature ingress-filtering {
description
"Each Port may support an Enable Ingress Filtering parameter. A
frame received on a Port that is not in the member set (8.8.10)
associated with the frames VID shall be discarded if this
parameter is set. The default value for this parameter is reset,
i.e., Disable Ingress Filtering, for all Ports. Any Port that
supports setting this parameter shall also support resetting it.
The parameter may be configured by the management operations
defined in Clause 12.";
reference
"8.6.2 of IEEE Std 802.1Q-2018";
}
feature extended-filtering-services {
description
"Extended Filtering Services support the filtering behavior
required for regions of a network in which potential recipients
of multicast frames exist, and where both the potential
recipients of frames and the Bridges are able to support dynamic
configuration of filtering information for group MAC addresses.
In order to integrate this extended filtering behavior with the
needs of regions of the network that support only Basic
Filtering Services, Bridges that support Extended Filtering
Services can be statically and dynamically configured to modify
their filtering behavior on a per-group MAC address basis, and
also on the basis of the overall filtering service provided by
each outbound Port with regard to multicast frames. The latter
capability permits configuration of the Ports default forwarding
or filtering behavior with regard to group MAC addresses for
which no specific static or dynamic filtering information has
been configured.";
reference
"8.8.4 of IEEE Std 802.1Q-2018
Clause 10 of IEEE Std 802.1Q-2018";
}
feature port-and-protocol-based-vlan {
description
"A VLAN-aware bridge component implementation in conformance to
the provisions of this standard for Port-and-Protocol-based VLAN
classification (5.4.1) shall 1) Support one or more of the
following Protocol Classifications and Protocol Template
formats: Ethernet, RFC_1042, SNAP_8021H, SNAP_Other, or
LLC_Other (6.12); and may 2) Support configuration of the
contents of the Protocol Group Database.";
reference
"5.4.1.2 of IEEE Std 802.1Q-2018";
}
feature flow-filtering {
description
"Flow filtering support enables Bridges to distinguish frames
belonging to different client flows and to use this information
in the forwarding process. Information related to client flows
may be used at the boundary of an SPT Domain to generate a flow
hash value. The flow hash, carried in an F-TAG, serves to
distinguish frames belonging to different flows and can be used
in the forwarding process to distribute frames over equal cost
paths. This provides for finer granularity load spreading while
maintaining frame order for each client flow.";
reference
"44.2 of IEEE Std 802.1Q-2018";
}
feature simple-bridge-port {
description
"A simple bridge port allows underlying (MAC) layers to share
the same Interface as the Bridge Port.";
}
feature flexible-bridge-port {
description
"A flexible bridge port supports an Interface that is a Bridge
Port to be a separate Interface from the underlying (MAC) layer.";
}
identity type-of-bridge {
description
"Represents the configured Bridge type.";
}
identity customer-vlan-bridge {
base type-of-bridge;
description
"Base identity for a Customer VLAN Bridge.";
}
identity provider-bridge {
base type-of-bridge;
description
"Base identity for a Provider Bridge (PB).";
}
identity provider-edge-bridge {
base type-of-bridge;
description
"Base identity for a Provider Edge Bridge (PEB).";
}
identity two-port-mac-relay-bridge {
base type-of-bridge;
description
"Base identity for a Two Port MAC Relay (TPMR).";
}
identity type-of-component {
description
"Represents the type of Component.";
}
identity c-vlan-component {
base type-of-component;
description
"Base identity for a C-VLAN component.";
}
identity s-vlan-component {
base type-of-component;
description
"Base identity for a S-VLAN component.";
}
identity d-bridge-component {
base type-of-component;
description
"Base identity for a VLAN unaware component.";
}
identity edge-relay-component {
base type-of-component;
description
"Base identity for an EVB station ER component.";
}
identity type-of-port {
description
"Represents the type of Bridge port.";
}
identity c-vlan-bridge-port {
base type-of-port;
description
"Indicates the port can be a C-TAG aware port of an enterprise
VLAN aware Bridge.";
}
identity provider-network-port {
base type-of-port;
description
"Indicates the port can be an S-TAG aware port of a Provider
Bridge or Backbone Edge Bridge used for connections within a PBN
(Provider Bridged Network) or PBBN (Provider Backbone Bridged
Network).";
}
identity customer-network-port {
base type-of-port;
description
"Indicates the port can be an S-TAG aware port of a Provider
Bridge or Backbone Edge Bridge used for connections to the
exterior of a PBN (Provider Bridged Network) or PBBN (Provider
Backbone Bridged Network).";
}
identity customer-edge-port {
base type-of-port;
description
"Indicates the port can be a C-TAG aware port of a Provider
Bridge used for connections to the exterior of a PBN (Provider
Bridged Network) or PBBN (Provider Backbone Bridged Network).";
}
identity d-bridge-port {
base type-of-port;
description
"Indicates the port can be a VLAN-unaware member of an 802.1Q
Bridge.";
}
identity remote-customer-access-port {
base type-of-port;
description
"Indicates the port can be an S-TAG aware port of a Provider
Bridge capable of providing Remote Customer Service Interfaces.";
}
identity bridge-interface {
description
"Generic interface property that represents any interface that
can be associated with an IEEE 802.1Q compliant Bridge
component. Any new Interface types would derive from this
identity to automatically pick up Bridge related configuration
or operational data.";
}
container bridges {
description
"Contains the Bridge(s) configuration information.";
list bridge {
key "name";
unique "address";
description
"Provides configuration data in support of the Bridge
Configuration resources. There is a single bridge data node
per Bridge.";
leaf name {
type dot1qtypes:name-type;
description
"A text string associated with the Bridge, of locally
determined significance.";
reference
"12.4 of IEEE Std 802.1Q-2018";
}
leaf address {
type ieee:mac-address;
mandatory true;
description
"The MAC address for the Bridge from which the Bridge
Identifiers used by the STP, RSTP, and MSTP are derived.";
reference
"12.4 of IEEE Std 802.1Q-2018";
}
leaf bridge-type {
type identityref {
base type-of-bridge;
}
mandatory true;
description
"The type of Bridge.";
}
leaf ports {
type uint16 {
range "1..4095";
}
config false;
description
"The number of Bridge Ports (MAC Entities)";
reference
"12.4 of IEEE Std 802.1Q-2018";
}
leaf up-time {
type yang:zero-based-counter32;
units "seconds";
config false;
description
"The count in seconds of the time elapsed since the Bridge
was last reset or initialized.";
reference
"12.4 of IEEE Std 802.1Q-2018";
}
leaf components {
type uint32;
config false;
description
"The number of components associated with the Bridge.";
}
list component {
key "name";
description
"The set of components associated with a given Bridge. For
example, - A TPMR is associated with a single VLAN
unaware component. - A Customer VLAN Bridge is associated
with a single VLAN aware component. - A Provider Bridge is
associated with a single S-VLAN component and zero or more
C-VLAN components.";
reference
"12.3 of IEEE Std 802.1Q-2018";
leaf name {
type string;
description
"The name of the Component.";
}
leaf id {
type uint32;
description
"Unique identifier for a particular Bridge component
within the system.";
reference
"12.3, item l) of IEEE Std 802.1Q-2018";
}
leaf type {
type identityref {
base type-of-component;
}
mandatory true;
description
"The type of component used to classify a particular
Bridge component within a Bridge system comprising
multiple components.";
reference
"12.3, item m) of IEEE Std 802.1Q-2018";
}
leaf address {
type ieee:mac-address;
description
"Unique EUI-48 Universally Administered MAC address
assigned to a Bridge component.";
reference
"13.24 of IEEE Std 802.1Q-2018
8.13.8 of IEEE Std 802.1Q-2018";
}
leaf traffic-class-enabled {
type boolean;
default "true";
description
"Indication of Traffic Classes enablement associated with
the Bridge Component. A value of True indicates that
Traffic Classes are enabled on this Bridge Component. A
value of False indicates that the Bridge Component
operates with a single priority level for all traffic.";
reference
"12.4.1.5.1 of IEEE Std 802.1Q-2018";
}
leaf ports {
type uint16 {
range "1..4095";
}
config false;
description
"The number of Bridge Ports associated with the Bridge
Component.";
reference
"12.4.1.1.3, item c) of IEEE Std 802.1Q-2018";
}
leaf-list bridge-port {
type if:interface-ref;
config false;
description
"List of bridge-port references.";
}
container capabilities {
config false;
description
"Array of Boolean values of the feature capabilities
associated with a given Bridge Component.";
reference
"12.10.1.1.3, item b) of IEEE Std 802.1Q-2018
12.4.1.5.2 of IEEE Std 802.1Q-2018";
leaf extended-filtering {
type boolean;
default "false";
description
"Can perform filtering on individual multicast addresses
controlled by MMRP.";
reference
"12.4.1.5.2 of IEEE Std 802.1Q-2018";
}
leaf traffic-classes {
type boolean;
default "false";
description
"Can map priority to multiple traffic classes.";
reference
"12.4.1.5.2 of IEEE Std 802.1Q-2018";
}
leaf static-entry-individual-port {
type boolean;
default "false";
description
"Static entries per port.";
reference
"12.4.1.5.2 of IEEE Std 802.1Q-2018";
}
leaf ivl-capable {
type boolean;
default "true";
description
"Independent VLAN Learning (IVL).";
reference
"12.4.1.5.2 of IEEE Std 802.1Q-2018";
}
leaf svl-capable {
type boolean;
default "false";
description
"Shared VLAN Learning (SVL).";
reference
"12.4.1.5.2 of IEEE Std 802.1Q-2018";
}
leaf hybrid-capable {
type boolean;
default "false";
description
"Both IVL and SVL simultaneously.";
reference
"12.4.1.5.2 of IEEE Std 802.1Q-2018";
}
leaf configurable-pvid-tagging {
type boolean;
default "false";
description
"Whether the implementation supports the ability to
override the default PVID setting and its egress status
(VLAN-tagged or Untagged) on each port.";
reference
"12.4.1.5.2 of IEEE Std 802.1Q-2018";
}
leaf local-vlan-capable {
type boolean;
default "false";
description
"Can support multiple local Bridges, outside the scope
of 802.1Q defined VLANs.";
reference
"12.4.1.5.2 of IEEE Std 802.1Q-2018";
}
}
container filtering-database {
when "../../bridge-type != 'dot1q:two-port-mac-relay-bridge'" {
description
"Applies to non TPMRs.";
}
description
"Contains filtering information used by the Forwarding
Process in deciding through which Ports of the Bridge
frames should be forwarded.";
reference
"12.7 of IEEE Std 802.1Q-2018";
leaf aging-time {
type uint32 {
range "10..10000000";
}
units "seconds";
default "300";
description
"The timeout period in seconds for aging out
dynamically-learned forwarding information.";
reference
"12.7 of IEEE Std 802.1Q-2018
8.8.3 of IEEE Std 802.1Q-2018";
}
leaf size {
type yang:gauge32;
config false;
description
"The maximum number of entries that can be held in the
FDB.";
reference
"12.7 of IEEE Std 802.1Q-2018";
}
leaf static-entries {
type yang:gauge32;
config false;
description
"The number of Static Filtering entries currently in the
FDB.";
reference
"12.7 of IEEE Std 802.1Q-2018
8.8.1 of IEEE Std 802.1Q-2018";
}
leaf dynamic-entries {
type yang:gauge32;
config false;
description
"The number of Dynamic Filtering entries currently in
the FDB.";
reference
"12.7 of IEEE Std 802.1Q-2018
8.8.3 of IEEE Std 802.1Q-2018";
}
leaf static-vlan-registration-entries {
type yang:gauge32;
config false;
description
"The number of Static VLAN Registration entries
currently in the FDB.";
reference
"12.7 of IEEE Std 802.1Q-2018
8.8.2 of IEEE Std 802.1Q-2018";
}
leaf dynamic-vlan-registration-entries {
type yang:gauge32;
config false;
description
"The number of Dynamic VLAN Registration entries
currently in the FDB.";
reference
"12.7 of IEEE Std 802.1Q-2018
8.8.5 of IEEE Std 802.1Q-2018";
}
leaf mac-address-registration-entries {
if-feature "extended-filtering-services";
type yang:gauge32;
config false;
description
"The number of MAC Address Registration entries
currently in the FDB.";
reference
"12.7 of IEEE Std 802.1Q-2018
8.8.4 of IEEE Std 802.1Q-2018";
}
list filtering-entry {
key "database-id vids address";
description
"Information for the entries associated with the
Permanent Database.";
leaf database-id {
type uint32;
description
"The identity of this Filtering Database.";
reference
"12.7.7 of IEEE Std 802.1Q-2018";
}
leaf address {
type ieee:mac-address;
description
"A MAC address (unicast, multicast, broadcast) for
which the device has forwarding and/or filtering
information.";
reference
"12.7.7 of IEEE Std 802.1Q-2018";
}
leaf vids {
type dot1qtypes:vid-range-type;
description
"The set of VLAN identifiers to which this entry
applies.";
reference
"12.7.7 of IEEE Std 802.1Q-2018";
}
leaf entry-type {
type enumeration {
enum "static" {
description
"Static entry type";
}
enum "dynamic" {
description
"Dynamic/learnt entry type";
}
}
description
"The type of filtering entry. Whether static or
dynamic. Static entries can be created, deleted, and
retrieved. However, dynamic entries can only be
deleted or retrieved by the management entity.
Consequently, a Bridge is not required to accept a
command that can alter the dynamic entries except
delete a dynamic entry.";
reference
"12.7.7 of IEEE Std 802.1Q-2018";
}
uses dot1qtypes:port-map-grouping;
leaf status {
type enumeration {
enum "other" {
description
"None of the following. This may include the case
where some other object is being used to determine
if and how frames addressed to the value of the
corresponding instance of 'address' are being
forwarded.";
}
enum "invalid" {
description
"This entry is no longer valid (e.g., it was
learned but has since aged out), but has not yet
been flushed from the table.";
}
enum "learned" {
description
"The value of the corresponding instance of the
port node was learned and is being used.";
}
enum "self" {
description
"The value of the corresponding instance of the
address node representing one of the devices
address.";
}
enum "mgmt" {
description
"The value of the corresponding instance of
address node that is also the value of an existing
instance.";
}
}
config false;
description
"The status of this entry.";
}
}
list vlan-registration-entry {
key "database-id vids";
description
"The VLAN Registration Entries models the operations
that can be performed on a single VLAN Registration
Entry in the FDB. The set of VLAN Registration Entries
within the FDB changes under management control and also
as a result of MVRP exchanges";
reference
"12.7.5 of IEEE Std 802.1Q-2018";
leaf database-id {
type uint32;
description
"The identity of this Filtering Database.";
reference
"12.7.7 of IEEE Std 802.1Q-2018";
}
leaf vids {
type dot1qtypes:vid-range-type;
description
"The set of VLAN identifiers to which this entry
applies.";
reference
"12.7.7 of IEEE Std 802.1Q-2018";
}
leaf entry-type {
type enumeration {
enum "static" {
description
"Static entry type";
}
enum "dynamic" {
description
"Dynamic/learnt entry type";
}
}
description
"The type of filtering entry. Whether static or
dynamic. Static entries can be created, deleted, and
retrieved. However, dynamic entries can only be
deleted or retrieved by the management entity.
Consequently, a Bridge is not required to accept a
command that can alter the dynamic entries except
delete a dynamic entry.";
reference
"12.7.7 of IEEE Std 802.1Q-2018";
}
uses dot1qtypes:port-map-grouping;
}
}
container permanent-database {
description
"The Permanent Database container models the operations
that can be performed on, or affect, the Permanent
Database. There is a single Permanent Database per FDB.";
leaf size {
type yang:gauge32;
config false;
description
"The maximum number of entries that can be held in the
FDB.";
reference
"12.7.6 of IEEE Std 802.1Q-2018";
}
leaf static-entries {
type yang:gauge32;
config false;
description
"The number of Static Filtering entries currently in the
FDB.";
reference
"12.7.6 of IEEE Std 802.1Q-2018";
}
leaf static-vlan-registration-entries {
type yang:gauge32;
config false;
description
"The number of Static VLAN Registration entries
currently in the FDB.";
reference
"12.7.6 of IEEE Std 802.1Q-2018";
}
list filtering-entry {
key "database-id vids address";
description
"Information for the entries associated with the
Permanent Database.";
leaf database-id {
type uint32;
description
"The identity of this Filtering Database.";
reference
"12.7.7 of IEEE Std 802.1Q-2018";
}
leaf address {
type ieee:mac-address;
description
"A MAC address (unicast, multicast, broadcast) for
which the device has forwarding and/or filtering
information.";
reference
"12.7.7 of IEEE Std 802.1Q-2018";
}
leaf vids {
type dot1qtypes:vid-range-type;
description
"The set of VLAN identifiers to which this entry
applies.";
reference
"12.7.7 of IEEE Std 802.1Q-2018";
}
leaf status {
type enumeration {
enum "other" {
description
"None of the following. This may include the case
where some other object is being used to determine
if and how frames addressed to the value of the
corresponding instance of 'address' are being
forwarded.";
}
enum "invalid" {
description
"This entry is no longer valid (e.g., it was
learned but has since aged out), but has not yet
been flushed from the table.";
}
enum "learned" {
description
"The value of the corresponding instance of the
port node was learned and is being used.";
}
enum "self" {
description
"The value of the corresponding instance of the
address node representing one of the devices
address.";
}
enum "mgmt" {
description
"The value of the corresponding instance of
address node that is also the value of an existing
instance.";
}
}
config false;
description
"The status of this entry.";
}
uses dot1qtypes:port-map-grouping;
}
}
container bridge-vlan {
when "../../bridge-type != 'dot1q:two-port-mac-relay-bridge'" {
description
"Applies to non TPMRs.";
}
description
"The Bridge VLAN container models configuration
information that modify, or inquire about, the overall
configuration of the Bridges VLAN resources. There is a
single Bridge VLAN Configuration managed object per
Bridge.";
reference
"12.10 of IEEE Std 802.1Q-2018";
leaf version {
type uint16;
config false;
description
"The version number supported.";
reference
"12.10.1.3 of IEEE Std 802.1Q-2018";
}
leaf max-vids {
type uint16;
config false;
description
"The maximum number of VIDs supported.";
reference
"12.10.1.3 of IEEE Std 802.1Q-2018";
}
leaf override-default-pvid {
type boolean;
default "false";
config false;
description
"Indicates if the default PVID can be overridden, and
its egress status (VLAN-tagged or untagged) on each
port.";
reference
"12.10.1.3 of IEEE Std 802.1Q-2018";
}
leaf protocol-template {
if-feature "port-and-protocol-based-vlan";
type dot1qtypes:protocol-frame-format-type;
config false;
description
"The data-link encapsulation format or the
detagged_frame_type in a Protocol Template";
reference
"12.10.1.7 of IEEE Std 802.1Q-2018";
}
leaf max-msti {
type uint16;
config false;
description
"The maximum number of MSTIs supported within an MST
region (i.e., the number of spanning tree instances that
can be supported in addition to the CIST), for MST
Bridges. For SST Bridges, this parameter may be either
omitted or reported as 0.";
reference
"12.10.1.7 of IEEE Std 802.1Q-2018";
}
list vlan {
key "vid";
description
"List of VLAN related configuration nodes associated
with the Bridge.";
reference
"12.10.2 of IEEE Std 802.1Q-2018";
leaf vid {
type dot1qtypes:vlan-index-type;
description
"The VLAN identifier to which this entry applies.";
reference
"12.10.2 of IEEE Std 802.1Q-2018";
}
leaf name {
type dot1qtypes:name-type;
description
"A text string of up to 32 characters of locally
determined significance.";
reference
"12.10.2 of IEEE Std 802.1Q-2018";
}
leaf-list untagged-ports {
type if:interface-ref;
config false;
description
"The set of ports in the untagged set for this VID.";
reference
"12.10.2.1.3 of IEEE Std 802.1Q-2018
8.8.2 of IEEE Std 802.1Q-2018";
}
leaf-list egress-ports {
type if:interface-ref;
config false;
description
"The set of egress ports in the member set for this
VID.";
reference
"12.10.2.1.3 of IEEE Std 802.1Q-2018
8.8.10 of IEEE Std 802.1Q-2018";
}
}
list protocol-group-database {
if-feature "port-and-protocol-based-vlan";
key "db-index";
description
"List of the protocol group database entries.";
reference
"12.10.1.7 of IEEE Std 802.1Q-2018
6.12.3 of IEEE Std 802.1Q-2018";
leaf db-index {
type uint16;
description
"The protocol group database index.";
}
leaf frame-format-type {
type dot1qtypes:protocol-frame-format-type;
description
"The data-link encapsulation format or the
detagged_frame_type in a Protocol Template";
reference
"12.10.1.7 of IEEE Std 802.1Q-2018";
}
choice frame-format {
description
"The identification of the protocol above the
data-link layer in a Protocol Template. Depending on
the frame type, the octet string will have one of the
following values: - For ethernet, rfc1042 and
snap8021H, this is the 16-bit (2-octet) IEEE 802
Clause 9.3 EtherType field. - For snapOther, this is
the 40-bit (5-octet) PID. - For llcOther, this is the
2-octet IEEE 802.2 Link Service Access Point (LSAP)
pair: first octet for Destination Service Access Point
(DSAP) and second octet for Source Service Access
Point (SSAP).";
reference
"12.10.1.7 of IEEE Std 802.1Q-2018";
case ethernet-rfc1042-snap8021H {
when "frame-format-type = 'Ethernet' or frame-format-type = 'rfc1042' or frame-format-type = 'snap8021H'" {
description
"Applies to Ethernet, RFC 1042, SNAP 8021H frame
formats.";
}
description
"Identifier used if Ethenet, RFC1042, or SNAP 8021H.";
leaf ethertype {
type dot1qtypes:ethertype-type;
description
"Format containing the 16-bit IEEE 802 EtherType
field.";
reference
"9.3 of IEEE Std 802-2014";
}
}
case snap-other {
when "frame-format-type = 'snapOther'" {
description
"Applies to Snap Other frame formats.";
}
description
"Identifier used if SNAP other.";
leaf protocol-id {
type string {
pattern "[0-9a-fA-F]{2}(-[0-9a-fA-F]{2}){4}";
}
description
"Format containing the 40-bit protocol identifier
(PID). The canonical representation uses uppercase
characters.";
reference
"12.10.1.7.1 of IEEE Std 802.1Q-2018";
}
}
case llc-other {
when "frame-format-type = 'llcOther'" {
description
"Applies to LLC Other frame formats";
}
description
"Identifier used if LLC other.";
container dsap-ssap-pairs {
description
"A pair of ISO/IEC 8802-2 DSAP and SSAP address
field values, for matching frame formats of