NM.TCQdisc

Fields

None

Methods

class

new (kind, parent)

dup ()

equal (other)

get_attribute (name)

get_attribute_names ()

get_handle ()

get_kind ()

get_parent ()

ref ()

set_attribute (name, value)

set_handle (handle)

unref ()

Details

class NM.TCQdisc
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.TCQdisc object, or None on error

Return type:

NM.TCQdisc

Creates a new NM.TCQdisc object.

Added in version 1.12.

dup()
Returns:

a copy of self

Return type:

NM.TCQdisc

Creates a copy of self

Added in version 1.12.

equal(other)
Parameters:

other (NM.TCQdisc) – the NM.TCQdisc 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.TCQdisc objects contain the same kind, * handle and parent.

Added in version 1.12.

get_attribute(name)
Parameters:

name (str) – the name of an qdisc attribute

Returns:

the value of the attribute with name name on self, or None if self has no such attribute.

Return type:

GLib.Variant

Gets the value of the attribute with name name on self

Added in version 1.18.

get_attribute_names()
Returns:

a None-terminated array of attribute names or None if no attributes are set.

Return type:

[str]

Gets an array of attribute names defined on self.

Added in version 1.18.

get_handle()
Returns:

the queueing discipline handle

Return type:

int

Added in version 1.12.

get_kind()
Return type:

str

Added in version 1.12.

get_parent()
Returns:

the parent class

Return type:

int

Added in version 1.12.

ref()

Increases the reference count of the object.

Added in version 1.12.

set_attribute(name, value)
Parameters:

Sets or clears the named attribute on self to the given value.

Added in version 1.18.

set_handle(handle)
Parameters:

handle (int) – the queueing discipline handle

Sets the queueing discipline handle.

Added in version 1.12.

unref()

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

Added in version 1.12.