bonding

package
v0.0.0-...-343224e Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2021 License: Apache-2.0 Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBondDevices

func GetBondDevices() []string

GetBondDevices returns a list of bonding devices

Types

type BondAttrs

type BondAttrs struct {
	Mode            netlink.BondMode
	ActiveSlave     string
	Miimon          int
	UpDelay         int
	DownDelay       int
	UseCarrier      int
	ArpInterval     int
	ArpIPTargets    []net.IP
	ArpValidate     netlink.BondArpValidate
	ArpAllTargets   netlink.BondArpAllTargets
	Primary         string
	PrimaryReselect netlink.BondPrimaryReselect
	FailOverMac     netlink.BondFailOverMac
	XmitHashPolicy  netlink.BondXmitHashPolicy
	ResendIgmp      int
	NumPeerNotif    int
	AllSlavesActive int
	MinLinks        int
	LpInterval      int
	PacketsPerSlave int
	LacpRate        netlink.BondLacpRate
	AdSelect        netlink.BondAdSelect
	AdInfo          *netlink.BondAdInfo
	AdActorSysPrio  int
	AdUserPortKey   int
	AdActorSystem   net.HardwareAddr
	TlbDynamicLb    int
}

BondAttrs represents bonding attributes

type BondInterface

type BondInterface struct {
	Name      string
	Slaves    []string
	AddrList  []netlink.Addr
	LinkAttrs netlink.LinkAttrs
	BondAttrs BondAttrs
}

BondInterface represents a bonding device

func NewDecoder

func NewDecoder(name string) *BondInterface

NewDecoder creates and initializes a BondInterface as Decoder

func (*BondInterface) Decode

func (intf *BondInterface) Decode() error

Decode make BondInterface satisfy the mox.Decoder interface

Jump to

Keyboard shortcuts

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