# -*- coding: utf-8 -*-"""data models for 802.1Q customer VLAN tag type"""fromtypingimportTYPE_CHECKINGfrompcapkit.corekit.infoclassimportinfo_finalfrompcapkit.protocols.data.dataimportDatafrompcapkit.protocols.data.protocolimportProtocolifTYPE_CHECKING:frompcapkit.const.reg.ethertypeimportEtherTypefrompcapkit.const.vlan.priority_levelimportPriorityLevel__all__=['VLAN','TCI']
[docs]@info_finalclassTCI(Data):"""Data model for tag control information."""#: Priority code point.pcp:'PriorityLevel'#: Drop eligible indicator.dei:'bool'#: VLAN identifier.vid:'int'ifTYPE_CHECKING:def__init__(self,pcp:'PriorityLevel',dei:'bool',vid:'int')->'None':...# pylint: disable=unused-argument,super-init-not-called,multiple-statements
[docs]@info_finalclassVLAN(Protocol):"""Data model for 802.1Q customer VLAN tag type."""#: Tag control information.tci:'TCI'#: Protocol (Internet Layer).type:'EtherType'ifTYPE_CHECKING:def__init__(self,tci:'TCI',type:'EtherType')->'None':...# pylint: disable=unused-argument,super-init-not-called,multiple-statements,redefined-builtin