Documentation ¶
Index ¶
- Constants
- type Action
- type ActionPolice
- type Addr
- type Bridge
- type Class
- type ClassHTB
- type Dummy
- type Filter
- type Gretap
- type Link
- func (l *Link) BridgeLinkSetHairpin(hairpin bool) error
- func (l *Link) BridgeLinkSetIsolated(isolated bool) error
- func (l *Link) BridgeVLANAdd(vid string, pvid bool, untagged bool, self bool, master bool) error
- func (l *Link) BridgeVLANDelete(vid string, self bool, master bool) error
- func (l *Link) Change(devType string, fanMap string) error
- func (l *Link) Delete() error
- func (l *Link) GetVFInfo(vfID int) (VirtFuncInfo, error)
- func (l *Link) SetAddress(address string) error
- func (l *Link) SetDown() error
- func (l *Link) SetMTU(mtu string) error
- func (l *Link) SetMaster(master string) error
- func (l *Link) SetName(newName string) error
- func (l *Link) SetNetns(netns string) error
- func (l *Link) SetNoMaster() error
- func (l *Link) SetUp() error
- func (l *Link) SetVfAddress(vf string, address string) error
- func (l *Link) SetVfSpoofchk(vf string, mode string) error
- func (l *Link) SetVfVlan(vf string, vlan string) error
- type Macvlan
- type Macvtap
- type Neigh
- type Qdisc
- type QdiscHTB
- type Route
- type Tuntap
- type U32Filter
- type Veth
- type VirtFuncInfo
- type Vlan
- type Vxlan
Constants ¶
const FamilyV4 = "-4"
FamilyV4 represents IPv4 protocol family
const FamilyV6 = "-6"
FamilyV6 represents IPv6 protocol family
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionPolice ¶
ActionPolice represents an action of 'police' type
func (*ActionPolice) AddAction ¶
func (a *ActionPolice) AddAction() []string
AddAction generates a part of command specific for 'police' action
type Bridge ¶
type Bridge struct {
Link
}
Bridge represents arguments for link device of type bridge
type Link ¶
Link represents base arguments for link device
func (*Link) BridgeLinkSetHairpin ¶
BridgeLinkSetHairpin sets bridge 'hairpin' attribute on a port
func (*Link) BridgeLinkSetIsolated ¶
BridgeLinkSetIsolated sets bridge 'isolated' attribute on a port
func (*Link) BridgeVLANAdd ¶
BridgeVLANAdd adds a new vlan filter entry
func (*Link) BridgeVLANDelete ¶
BridgeVLANDelete removes an existing vlan filter entry
func (*Link) GetVFInfo ¶
func (l *Link) GetVFInfo(vfID int) (VirtFuncInfo, error)
GetVFInfo returns info about virtual function
func (*Link) SetAddress ¶
SetAddress sets the address of the link device
func (*Link) SetNoMaster ¶
SetNoMaster removes the master of the link device
func (*Link) SetVfAddress ¶
SetVfAddress changes the address for the specified vf
func (*Link) SetVfSpoofchk ¶
SetVfSpoofchk turns packet spoof checking on or off for the specified VF
type Macvtap ¶
type Macvtap struct {
Macvlan
}
Macvtap represents arguments for link of type macvtap
type Route ¶
type Route struct { DevName string Route string Table string Src string Proto string Family string }
Route represents arguments for route manipulation
type VirtFuncInfo ¶
type VirtFuncInfo struct { VF int `json:"vf"` Address string `json:"address"` MAC string `json:"mac"` // Deprecated VLANs []map[string]int `json:"vlan_list"` SpoofCheck bool `json:"spoofchk"` }
VirtFuncInfo holds information about vf.