Gjsify LogoGjsify Logo

Hierarchy

  • BridgeVlan

Index

Constructors

  • new BridgeVlan(vidStart: number, vidEnd: number): BridgeVlan
  • Creates a new #NMBridgeVlan object for the given VLAN id range. Setting vid_end to 0 is equivalent to setting it to vid_start and creates a single-id VLAN.

    Parameters

    • vidStart: number

      the start VLAN id, must be between 1 and 4094.

    • vidEnd: number

      the end VLAN id, must be 0 or between vid_start and 4094.

    Returns BridgeVlan

Properties

name: string

Methods

  • getVidRange(): [boolean, number, number]
  • Gets the VLAN id range.

    Returns [boolean, number, number]

  • isPvid(): boolean
  • Returns whether the VLAN is the PVID for the port.

    Returns boolean

  • isSealed(): boolean
  • isUntagged(): boolean
  • seal(): void
  • Seal the #NMBridgeVlan 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

  • setPvid(value: boolean): 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

  • setUntagged(value: boolean): void
  • Change the value of the untagged property of the VLAN.

    Parameters

    • value: boolean

      the new value

    Returns void

  • toStr(): string
  • unref(): void
  • Decreases the reference count of the object. If the reference count reaches zero the object will be destroyed.

    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

  • Creates a new #NMBridgeVlan object for the given VLAN id range. Setting vid_end to 0 is equivalent to setting it to vid_start and creates a single-id VLAN.

    Parameters

    • vidStart: number

      the start VLAN id, must be between 1 and 4094.

    • vidEnd: number

      the end VLAN id, must be 0 or between vid_start and 4094.

    Returns BridgeVlan

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method