# Packages
No description provided by the author
# Functions
BridgePVIDVlanAdd configure port VLAN id for link.
BridgePVIDVlanDel remove port VLAN id for link.
BridgeTrunkVlanAdd configure vlan trunk on link.
BridgeTrunkVlanDel remove vlans from trunk on link.
No description provided by the author
CreateTmpSysFs create mock sysfs for testing nolint:gosec.
GetBridgeLinks returns list of netlink.Links that are part of the provided bridge.
GetParentBondForLink returns the parent bonded interface if provided link is member of a bond.
GetParentBridgeForLink returns linux bridge if provided link belongs to any.
GetSriovNumVfs takes in a PF name(ifName) as string and returns number of VF configured as int.
GetVfid takes in VF's PCI address(addr) and pfName as string and returns VF's ID as int.
GetVFLinkName returns VF's network interface name given it's PCI addr.
HasUserspaceDriver checks if a device is attached to userspace driver.
RemoveTmpSysFs removes mocked sysfs.
# Variables
NetDirectory sysfs net directory.
SysBusPci is sysfs pci device directory.
UserspaceDrivers is a list of driver names that don't have netlink representation for their devices.
# Structs
NetlinkWrapper wrapper for netlink package.
No description provided by the author
# Interfaces
Netlink represents limited subset of functions from netlink package.
SriovnetProvider represents limited subset of functions from sriovnet package.