NM.TCTfilter

Fields

None

Methods

class

new (kind, parent)

dup ()

equal (other)

get_action ()

get_handle ()

get_kind ()

get_parent ()

ref ()

set_action (action)

set_handle (handle)

unref ()

Details

class NM.TCTfilter
classmethod new(kind, parent)
Parameters:
  • kind (str) – name of the queueing discipline

  • parent (int) – the parent queueing discipline

Raises:

GLib.Error

Returns:

the new NM.TCTfilter object, or None on error

Return type:

NM.TCTfilter

Creates a new NM.TCTfilter object.

New in version 1.12.

dup()
Returns:

a copy of self

Return type:

NM.TCTfilter

Creates a copy of self

New in version 1.12.

equal(other)
Parameters:

other (NM.TCTfilter) – the NM.TCTfilter to compare self to.

Returns:

True if the objects contain the same values, False if they do not.

Return type:

bool

Determines if two NM.TCTfilter objects contain the same kind, family, handle, parent and info.

New in version 1.12.

get_action()
Returns:

the action associated with a traffic filter.

Return type:

NM.TCAction

New in version 1.42.

get_handle()
Returns:

the queueing discipline handle

Return type:

int

New in version 1.12.

get_kind()
Return type:

str

New in version 1.12.

get_parent()
Returns:

the parent class

Return type:

int

New in version 1.12.

ref()

Increases the reference count of the object.

New in version 1.12.

set_action(action)
Parameters:

action (NM.TCAction) – the action object

Sets the action associated with a traffic filter.

New in version 1.42.

set_handle(handle)
Parameters:

handle (int) – the queueing discipline handle

Sets the queueing discipline handle.

New in version 1.12.

unref()

Decreases the reference count of the object. If the reference count reaches zero, the object will be destroyed.

New in version 1.12.