vlan

package
v1.7.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 22, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Vlan

type Vlan struct {
	// contains filtered or unexported fields
}

func GetVlan

func GetVlan(name string) (*Vlan, error)

func NewVlan

func NewVlan(name string) *Vlan

The bridge of a pure VLAN may have no latest information The NIC of a pure VLAN can be empty

func (*Vlan) AddLocalAreas added in v1.7.0

func (v *Vlan) AddLocalAreas(vis *utils.VlanIDSet) error

func (*Vlan) Bridge added in v0.3.0

func (v *Vlan) Bridge() *iface.Bridge

func (*Vlan) RemoveLocalAreas added in v1.7.0

func (v *Vlan) RemoveLocalAreas(vis *utils.VlanIDSet) error

func (*Vlan) Setup

func (v *Vlan) Setup(l *iface.Link) error

func (*Vlan) Teardown

func (v *Vlan) Teardown() error

func (*Vlan) ToVlanIDSet added in v1.7.0

func (v *Vlan) ToVlanIDSet() (*utils.VlanIDSet, error)

func (*Vlan) Type

func (v *Vlan) Type() string
func (v *Vlan) Uplink() *iface.Link

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL