VLAN Constant Enumerations¶
This module contains all constant enumerations of
VLAN implementations. Available
enumerations include:
Priority Levels [*] |
Priority levels defined in IEEE 802.1p¶
This module contains the constant enumeration for Priority levels defined in IEEE 802.1p,
which is automatically generated from pcapkit.vendor.vlan.priority_level.PriorityLevel.
- class pcapkit.const.vlan.priority_level.PriorityLevel(*values)[source]¶
Bases:
EnumRegistry,IntEnum[PriorityLevel] Priority levels defined in IEEE 802.1p
- BK = 1¶
Background (lowest)
- BE = 0¶
Best effort (default)
- EE = 2¶
Excellent effort
- CA = 3¶
Critical applications
- VI = 4¶
Video, < 100 ms latency and jitter
- VO = 5¶
Voice, < 10 ms latency and jitter
- IC = 6¶
Internetwork control
- NC = 7¶
Network control (highest)
- classmethod _validate_value(value)[source]¶
Reject
valueunless it passes the range check_missing_()makes.Overrides
_validate_value()with that check and the message it raises, soregister()refuses exactly the valuesget()refuses, in the same words (#1816).- Parameters:
value (
Any) – Value about to be looked up or minted.- Raises:
EnumValueError – If
valuefails that check. AValueError, so anexcept ValueErrorcaller is unaffected.
Footnotes