Class (GI Struct)

NM-1.0NMBridgeVlan

Index

Constructors

Properties

$gtype: GType<BridgeVlan>

Methods

  • Compare two bridge VLAN objects.

    Parameters

    Returns number

    zero of the two instances are equivalent or a non-zero integer otherwise. This defines a total ordering over the VLANs. Whether a VLAN is sealed or not does not affect the comparison.

  • Gets the VLAN id range.

    Returns [boolean, number, number]

    true is the VLAN specifies a range, false if it is a single-id VLAN.

  • Returns whether the VLAN is the PVID for the port.

    Returns boolean

    true if the VLAN is the PVID

  • Returns whether the VLAN is untagged.

    Returns boolean

    true if the VLAN is untagged, false otherwise

  • Seal the NM.BridgeVlan instance. Afterwards, it is a bug to call all functions that modify the instance (except ref/unref). A sealed instance cannot be unsealed again, but you can create an unsealed copy with nm_bridge_vlan_new_clone().

    Returns void

  • Change the value of the PVID property of the VLAN. It is invalid to set the value to true for non-single-id VLANs.

    Parameters

    • value: boolean

      the new value

    Returns void

  • Change the value of the untagged property of the VLAN.

    Parameters

    • value: boolean

      the new value

    Returns void

  • Convert a %NMBridgeVlan to a string.

    Returns string

    formatted string or null

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

    Since 1.42, ref-counting of NM.BridgeVlan is thread-safe.

    Returns void

  • Parses the string representation of the queueing discipline to a %NMBridgeVlan instance.

    Parameters

    • str: string

      the string representation of a bridge VLAN

    Returns BridgeVlan