Package onep :: Package interfaces :: Module Vlan :: Class Vlan :: Class Tag
[frames] | no frames]

Class Tag


This class represent a VLAN tag, where: The most significant 16-bits is the Protocol Identifier (TPID). The next 3-bits represents Priority Code Point (PCP). The next 1-bit represents canonical format (CFI). The final 12-bits represents the VLAN ID (VID).

Instance Methods

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Instance Variables
int cfi
The 1-bits value representing canonical format (CFI) in the tag
int pcp
The 3-bits value representing Priority Code Point(PCP) in the tag
int raw_tag
The VLAN tag
int tpid
he 16-bits value representing the TPID in the tag
int vid
The 12-bits value representing the VLAN id (VID) in the tag
Properties

Inherited from object: __class__