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
Click to show internal directories.
Click to hide internal directories.