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: QDisc

This class provides access to the ingress queueing discipline.

static is_ingress()[source]

Always returns True

qdisc_creation_args() List[str][source]

Returns the arguments expected by the tc(8) command to create an ingress qdisc

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 Qdisc to outfile.

The qclass_map, if present, is used to determine the destination QClass objects of traffic filters.

get_config() QDiscConfig

Returns the QDiscConfig where this QDisc/QClass has been instantiated, or None if 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/QClass handle

get_interface() Optional[str]

Returns the interface where this QDisc/QClass has been instantiated, or None if the QDisc/QClass is not instantiated.

get_parent_handle() Optional[Handle]

Returns the handle of the parent of this QDisc/QClass

get_stats() Optional[QStats]

Returns queuing stats.

is_default() bool

Returns True if this QDisc is the default qdisc used by the kernel.

is_root() bool

Returns True if this is a root QDisc