| Copyright | Will Thompson and Iñaki García Etxebarria |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria |
| Safe Haskell | None |
| Language | Haskell2010 |
GI.NM.Structs.LldpNeighbor
Description
Supported attributes are:
LLDP_ATTR_CHASSIS_ID_TYPE(type: 'u')LLDP_ATTR_CHASSIS_ID(type: 's')LLDP_ATTR_DESTINATION(type: 's')LLDP_ATTR_IEEE_802_1_PPVID(type: 'u'). This attribute only reports the first PPVID and therefore it is deprecated in favor of NM_LLDP_ATTR_IEEE_802_1_PPVIDS which reports all the PPVID.LLDP_ATTR_IEEE_802_1_PPVID_FLAGS(type: 'u'). This attribute only reports the first PPVID and therefore it is deprecated in favor of NM_LLDP_ATTR_IEEE_802_1_PPVIDS which reports all the PPVID.LLDP_ATTR_IEEE_802_1_PPVIDS(type: 'aa{sv}')
An array of dictionaries where each element has keys:
- flags (type: 'u')
- ppvid (type: 'u')
LLDP_ATTR_IEEE_802_1_PVID(type: 'u')LLDP_ATTR_IEEE_802_1_VID(type: 'u'). This attribute only reports the first VLAN and therefore it is deprecated in favor of NM_LLDP_ATTR_IEEE_802_1_VLANS which reports all the VLANs.LLDP_ATTR_IEEE_802_1_VLAN_NAME(type: 's'). This attribute only reports the first VLAN and therefore it is deprecated in favor of NM_LLDP_ATTR_IEEE_802_1_VLANS which reports all the VLANs.LLDP_ATTR_IEEE_802_1_VLANS(type: 'aa{sv}')
An array of dictionaries where each element has keys:
- name (type: 's')
- vid (type: 'u')
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')
LLDP_ATTR_IEEE_802_3_MAX_FRAME_SIZE(type: 'u')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')
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')
LLDP_ATTR_PORT_DESCRIPTION(type: 's')LLDP_ATTR_PORT_ID_TYPE(type: 'u')LLDP_ATTR_PORT_ID(type: 's')LLDP_ATTR_RAW(type: 'ay')LLDP_ATTR_SYSTEM_CAPABILITIES(type: 'u')LLDP_ATTR_SYSTEM_DESCRIPTION(type: 's')LLDP_ATTR_SYSTEM_NAME(type: 's')
Synopsis
- newtype LldpNeighbor = LldpNeighbor (ManagedPtr LldpNeighbor)
- lldpNeighborGetAttrNames :: (HasCallStack, MonadIO m) => LldpNeighbor -> m [Text]
- lldpNeighborGetAttrStringValue :: (HasCallStack, MonadIO m) => LldpNeighbor -> Text -> m (Bool, Maybe Text)
- lldpNeighborGetAttrType :: (HasCallStack, MonadIO m) => LldpNeighbor -> Text -> m VariantType
- lldpNeighborGetAttrUintValue :: (HasCallStack, MonadIO m) => LldpNeighbor -> Text -> m (Bool, Word32)
- lldpNeighborGetAttrValue :: (HasCallStack, MonadIO m) => LldpNeighbor -> Text -> m GVariant
- lldpNeighborNew :: (HasCallStack, MonadIO m) => m LldpNeighbor
- lldpNeighborRef :: (HasCallStack, MonadIO m) => LldpNeighbor -> m ()
- lldpNeighborUnref :: (HasCallStack, MonadIO m) => LldpNeighbor -> m ()
Exported types
newtype LldpNeighbor Source #
Memory-managed wrapper type.
Constructors
| LldpNeighbor (ManagedPtr LldpNeighbor) |
Instances
| Eq LldpNeighbor Source # | |
Defined in GI.NM.Structs.LldpNeighbor | |
| GBoxed LldpNeighbor Source # | |
Defined in GI.NM.Structs.LldpNeighbor | |
| ManagedPtrNewtype LldpNeighbor Source # | |
Defined in GI.NM.Structs.LldpNeighbor Methods | |
| TypedObject LldpNeighbor Source # | |
Defined in GI.NM.Structs.LldpNeighbor | |
| HasParentTypes LldpNeighbor Source # | |
Defined in GI.NM.Structs.LldpNeighbor | |
| IsGValue (Maybe LldpNeighbor) Source # | Convert |
Defined in GI.NM.Structs.LldpNeighbor Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe LldpNeighbor -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe LldpNeighbor) # | |
| type ParentTypes LldpNeighbor Source # | |
Defined in GI.NM.Structs.LldpNeighbor | |
Methods
Click to display all available methods, including inherited ones
Methods
Getters
getAttrNames, getAttrStringValue, getAttrType, getAttrUintValue, getAttrValue.
Setters
None.
getAttrNames
lldpNeighborGetAttrNames Source #
Arguments
| :: (HasCallStack, MonadIO m) | |
| => LldpNeighbor |
|
| -> m [Text] | Returns: a |
Gets an array of attribute names available for neighbor.
Since: 1.2
getAttrStringValue
lldpNeighborGetAttrStringValue Source #
Arguments
| :: (HasCallStack, MonadIO m) | |
| => LldpNeighbor |
|
| -> Text |
|
| -> m (Bool, Maybe Text) | Returns: |
Gets the string value of attribute with name name on neighbor
Since: 1.2
getAttrType
lldpNeighborGetAttrType Source #
Arguments
| :: (HasCallStack, MonadIO m) | |
| => LldpNeighbor |
|
| -> Text |
|
| -> m VariantType | Returns: the |
Get the type of an attribute.
Since: 1.2
getAttrUintValue
lldpNeighborGetAttrUintValue Source #
Arguments
| :: (HasCallStack, MonadIO m) | |
| => LldpNeighbor |
|
| -> Text |
|
| -> m (Bool, Word32) | Returns: |
Gets the uint32 value of attribute with name name on neighbor
Since: 1.2
getAttrValue
lldpNeighborGetAttrValue Source #
Arguments
| :: (HasCallStack, MonadIO m) | |
| => LldpNeighbor |
|
| -> Text |
|
| -> m GVariant | Returns: the value or |
Gets the value (as a GVariant) of attribute with name name on neighbor
Since: 1.18
new
Arguments
| :: (HasCallStack, MonadIO m) | |
| => m LldpNeighbor | Returns: the new |
Creates a new LldpNeighbor object.
Note that 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 LldpNeighbor is thread-safe.
This function is not useful, as there is no public API to actually modify the (empty) instance.
Since: 1.2
ref
Arguments
| :: (HasCallStack, MonadIO m) | |
| => LldpNeighbor |
|
| -> m () |
Increases the reference count of the object.
Since 1.32, ref-counting of LldpNeighbor is thread-safe.
Since: 1.2
unref
Arguments
| :: (HasCallStack, MonadIO m) | |
| => LldpNeighbor |
|
| -> m () |
Decreases the reference count of the object. If the reference count reaches zero, the object will be destroyed.
Since 1.32, ref-counting of LldpNeighbor is thread-safe.
Since: 1.2