PFIFO_FAST¶
The following class provides access to the pfifo_fast
queueing discipline:
- class PFifoFastQDisc(qdisc_handle: Handle, parent_handle: Optional[Handle], *, txqueuelen: Optional[int] = None, bands: Optional[int] = None, priomap: Optional[Sequence[int]] = None)[source]¶
Bases:
QDiscThis class provides access to the pfifo_fast queueing discipline of Linux (see tc-pfifo_fast(8)).
- Parameters:
qdisc_handle – handle of this
PFifoFastQDiscparent_handle – handle of parent, or
Noneif this is a root queuing disciplinetxqueuelen – as documented in tc-pfifo_fast(8)
bands – as documented in tc-pfifo_fast(8)
priomap – as documented in tc-pfifo_fast(8)
Only
txqueuelenis used when creating a newpfifo_fastqueuing discipline. Ifbandsorpriomapare specified, this will raise aTcErrorexception.- get_description() str[source]¶
Returns a string describing the queuing discipline and its attributes
- set_txqueuelen(txqueuelen: Optional[int]) None[source]¶
Set the queue length for each band (if
None, use the interface’s txqueuelen).
- qdisc_creation_args() List[str][source]¶
Returns the arguments expected by the tc(8) command to create a
pfifo_fastqdisc
- dump(outfile: TextIO, level=0, qclass_map: Optional[Mapping[Handle, QClass]] = None)¶
Recursively dump this
Qdisctooutfile.The
qclass_map, if present, is used to determine the destinationQClassobjects of traffic filters.
- get_config() QDiscConfig¶
Returns the
QDiscConfigwhere thisQDisc/QClasshas been instantiated, orNoneif not instantiated.
- get_handle() Handle¶
Returns the
QDisc/QClasshandle
- get_interface() Optional[str]¶
Returns the interface where this
QDisc/QClasshas been instantiated, orNoneif theQDisc/QClassis not instantiated.
- get_parent_handle() Optional[Handle]¶
Returns the handle of the parent of this
QDisc/QClass
- is_default() bool¶
Returns
Trueif thisQDiscis the default qdisc used by the kernel.
- static is_ingress() bool¶
Returns
Trueif thisQDiscis the ingress qdisc
- is_root() bool¶
Returns
Trueif this is a rootQDisc