NM.LldpNeighbor¶
Fields¶
None
Methods¶
class |
|
|
|
|
|
|
|
|
|
|
|
|
Details¶
- class NM.LldpNeighbor¶
Supported attributes are:
NM.LLDP_ATTR_CHASSIS_ID_TYPE
(type: ‘u’)NM.LLDP_ATTR_CHASSIS_ID
(type: ‘s’)NM.LLDP_ATTR_DESTINATION
(type: ‘s’)NM.LLDP_ATTR_IEEE_802_1_PPVID
(type: ‘u’). This attribute only reports the first PPVID and therefore it is deprecated in favor ofNM.LLDP_ATTR_IEEE_802_1_PPVIDS
which reports all the PPVID.NM.LLDP_ATTR_IEEE_802_1_PPVID_FLAGS
(type: ‘u’). This attribute only reports the first PPVID and therefore it is deprecated in favor ofNM.LLDP_ATTR_IEEE_802_1_PPVIDS
which reports all the PPVID.NM.LLDP_ATTR_IEEE_802_1_PPVIDS
(type: ‘aa{sv}’)An array of dictionaries where each element has keys:
flags (type: ‘u’)
ppvid (type: ‘u’)
NM.LLDP_ATTR_IEEE_802_1_PVID
(type: ‘u’)NM.LLDP_ATTR_IEEE_802_1_VID
(type: ‘u’). This attribute only reports the first VLAN and therefore it is deprecated in favor ofNM.LLDP_ATTR_IEEE_802_1_VLANS
which reports all the VLANs.NM.LLDP_ATTR_IEEE_802_1_VLAN_NAME
(type: ‘s’). This attribute only reports the first VLAN and therefore it is deprecated in favor ofNM.LLDP_ATTR_IEEE_802_1_VLANS
which reports all the VLANs.NM.LLDP_ATTR_IEEE_802_1_VLANS
(type: ‘aa{sv}’)An array of dictionaries where each element has keys:
name (type: ‘s’)
vid (type: ‘u’)
NM.LLDP_ATTR_IEEE_802_3_MAC_PHY_CONF
(type: ‘a{sv}’)Dictionary where each element has keys:
autoneg (type: ‘u’)
operational-mau-type (type: ‘u’)
pmd-autoneg-cap (type: ‘u’)
NM.LLDP_ATTR_IEEE_802_3_MAX_FRAME_SIZE
(type: ‘u’)NM.LLDP_ATTR_IEEE_802_3_POWER_VIA_MDI
(type: ‘a{sv}’)Dictionary where each element has keys:
mdi-power-support (type: ‘u’)
power-class (type: ‘u’)
pse-power-pair (type: ‘u’)
NM.LLDP_ATTR_MANAGEMENT_ADDRESSES
(type: ‘aa{sv}’)An array of dictionaries where each element has keys:
address (type: ‘ay’)
address-subtype (type: ‘u’)
interface-number (type: ‘u’)
interface-number-subtype (type: ‘u’)
object-id (type: ‘ay’)
NM.LLDP_ATTR_PORT_DESCRIPTION
(type: ‘s’)NM.LLDP_ATTR_PORT_ID_TYPE
(type: ‘u’)NM.LLDP_ATTR_PORT_ID
(type: ‘s’)NM.LLDP_ATTR_RAW
(type: ‘ay’)NM.LLDP_ATTR_SYSTEM_CAPABILITIES
(type: ‘u’)NM.LLDP_ATTR_SYSTEM_DESCRIPTION
(type: ‘s’)NM.LLDP_ATTR_SYSTEM_NAME
(type: ‘s’)
- classmethod new()¶
- Returns:
the new
NM.LldpNeighbor
object.- Return type:
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()¶
-
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:
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:
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:
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:
Gets the value (as a
GLib.Variant
) of attribute with name name on selfNew 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.