vlan

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 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 LocalArea added in v0.3.0

type LocalArea struct {
	Vid  uint16
	Cidr string
}

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) AddLocalArea

func (v *Vlan) AddLocalArea(la *LocalArea) error

func (*Vlan) Bridge added in v0.3.0

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

func (*Vlan) RemoveLocalArea

func (v *Vlan) RemoveLocalArea(la *LocalArea) error

func (*Vlan) Setup

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

func (*Vlan) Teardown

func (v *Vlan) Teardown() error

Note: It's required to call function GetVlanWithNic before tearing down VLAN.

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