NM.LldpNeighbor

Fields

None

Methods

class

new ()

get_attr_names ()

get_attr_string_value (name)

get_attr_type (name)

get_attr_uint_value (name)

get_attr_value (name)

ref ()

unref ()

Details

class NM.LldpNeighbor

Supported attributes are:

classmethod new()
Returns:

the new NM.LldpNeighbor object.

Return type:

NM.LldpNeighbor

Creates a new NM.LldpNeighbor object.

Note that NM.LldpNeighbor has no public API for mutating an instance. Also, libnm will not internally mutate a once exposed object. They are guaranteed to be immutable.

Since 1.32, ref-counting of NM.LldpNeighbor is thread-safe.

This function is not useful, as there is no public API to actually modify the (empty) instance.

New in version 1.2.

get_attr_names()
Returns:

a None-terminated array of attribute names.

Return type:

[str]

Gets an array of attribute names available for self.

New in version 1.2.

get_attr_string_value(name)
Parameters:

name (str) – the attribute name

Returns:

True if a string attribute with name name was found, False otherwise

out_value:

on return, the attribute value

Return type:

(bool, out_value: str or None)

Gets the string value of attribute with name name on self

New in version 1.2.

get_attr_type(name)
Parameters:

name (str) – the attribute name

Returns:

the GLib.VariantType of the attribute with name name

Return type:

GLib.VariantType

Get the type of an attribute.

New in version 1.2.

get_attr_uint_value(name)
Parameters:

name (str) – the attribute name

Returns:

True if a uint32 attribute with name name was found, False otherwise

out_value:

on return, the attribute value

Return type:

(bool, out_value: int)

Gets the uint32 value of attribute with name name on self

New in version 1.2.

get_attr_value(name)
Parameters:

name (str) – the attribute name

Returns:

the value or None if the attribute with name was not found.

Return type:

GLib.Variant

Gets the value (as a GLib.Variant) of attribute with name name on self

New in version 1.18.

ref()

Increases the reference count of the object.

Since 1.32, ref-counting of NM.LldpNeighbor is thread-safe.

New in version 1.2.

unref()

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

Since 1.32, ref-counting of NM.LldpNeighbor is thread-safe.

New in version 1.2.