vlan

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2024 License: Apache-2.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocalArea

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

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