vlan

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const BridgeName = "harvester-br0"

Variables

This section is empty.

Functions

This section is empty.

Types

type SlaveNotFoundError

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

type Vlan

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

func GetVlan

func GetVlan() (*Vlan, error)

func NewVlan

func NewVlan(eventSender network.EventSender, mgmtNetwork network.Network, vids []uint16) *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(id int) error

func (*Vlan) NIC added in v0.1.7

func (v *Vlan) NIC() iface.IFace

func (*Vlan) RemoveLocalArea

func (v *Vlan) RemoveLocalArea(id int) error

func (*Vlan) Setup

func (v *Vlan) Setup(nic string) error

func (*Vlan) Status

func (v *Vlan) Status(condition network.Condition) (*network.Status, 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

Jump to

Keyboard shortcuts

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