INGRESS¶
The IngressQDisc class provides access to the ingress
queueing discipline.
Instances of this class are not instantiated directly. Instead,
they are created via QDiscConfig.create_ingress_qdisc().
- class IngressQDisc(handle=None, parent_handle=None)[source]¶
Bases:
QDiscThis class provides access to the
ingressqueueing discipline.- qdisc_creation_args() List[str][source]¶
Returns the arguments expected by the tc(8) command to create an
ingressqdisc
- create_filter(traffic_filter: TrafficFilter) None¶
Create the filter
traffic_filter.
- delete_filter(traffic_filter: TrafficFilter) None¶
Delete the filter
traffic_filter.
- 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_description() str¶
Return a string that fully describes this
QDisc
- get_filters(refresh=False) List[TrafficFilter]¶
Returns (a copy of) the list of filters at this
QDisc/QClass- Parameters:
refresh – if
True, a fresh copy of the filter list is obtained using the tc(8) command.
- 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.
- is_root() bool¶
Returns
Trueif this is a rootQDisc