Class (GI Struct)

NM-1.0NMSriovVF

Index

Constructors

Properties

$gtype: GType<SriovVF>

Methods

  • Adds a VLAN to the VF. Currently kernel only supports one VLAN per VF.

    Parameters

    • vlan_id: number

      the VLAN id

    Returns boolean

    true if the VLAN was added; false if it already existed

  • Gets the value of the attribute with name name on vf

    Parameters

    • name: string

      the name of a VF attribute

    Returns GLib.Variant

    the value of the attribute with name name on vf, or null if vf has no such attribute.

  • Gets an array of attribute names defined on vf.

    Returns string[]

    a null-terminated array of attribute names

  • Gets the index property of this VF object.

    Returns number

    the VF index

  • Returns the VLANs currently configured on the VF. Currently kernel only supports one VLAN per VF.

    Returns number[]

    a list of VLAN ids configured on the VF.

  • Returns the QoS value for the given VLAN.

    Parameters

    • vlan_id: number

      the VLAN id

    Returns number

    the QoS value

  • Removes a VLAN from a VF.

    Parameters

    • vlan_id: number

      the VLAN id

    Returns boolean

    true if the VLAN was removed, false if the VLAN vlan_id did not belong to the VF.

  • Sets the named attribute on vf to the given value.

    Parameters

    • name: string

      the name of a route attribute

    • Optionalvalue: GLib.Variant<any>

      the value

    Returns void

  • Sets a QoS value for the given VLAN.

    Parameters

    • vlan_id: number

      the VLAN id

    • qos: number

      a QoS (priority) value

    Returns void

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

    Returns void

  • Validates a VF attribute, i.e. checks that the attribute is a known one, the value is of the correct type and well-formed.

    Parameters

    • name: string

      the attribute name

    • value: GLib.Variant

      the attribute value

    Returns [boolean, boolean]