# Functions
AttachInterface attaches an interface to a bridge.
BridgeNetfilterEnabled checks whether the bridge netfilter feature is loaded and enabled.
BridgeVLANDefaultPVID returns the VLAN default port VLAN ID (PVID).
BridgeVLANFilteringStatus returns whether VLAN filtering is enabled on a bridge interface.
BridgeVLANFilterSetStatus sets the status of VLAN filtering on a bridge interface.
BridgeVLANSetDefaultPVID sets the VLAN default port VLAN ID (PVID).
DefaultGatewaySubnetV4 returns subnet of default gateway interface.
DetachInterface detaches an interface from a bridge.
GetDevMTU retrieves the current MTU setting for a named network device.
GetHostDevice returns the interface name to use for a combination of parent device name and VLAN ID.
GetLeaseAddresses returns the lease addresses for a network and hwaddr.
GetMACSlice parses MAC address.
GetNeighbourIPs returns the IP addresses in the neighbour cache for a particular interface and MAC.
GetTXQueueLength retrieves the current txqlen setting for a named network device.
InterfaceExists returns true if network interface exists.
InterfaceRemove removes a network interface by name.
InterfaceStatus returns the global unicast IP addresses configured on an interface and whether it is up or not.
IPInSlice returns true if slice has IP element.
IPRangesOverlap checks whether two ip ranges have ip addresses in common.
IPToNet converts an IP to a single host IPNet.
IsAvailable checks if a network is available.
IsNativeBridge returns whether the bridge name specified is a Linux native bridge.
LoadByName loads an instantiated network from the database by project and name.
LoadByType loads a network by driver type.
MACDevName returns interface name with prefix 'inc' and MAC without leading 2 digits.
NICUsesNetwork returns true if the nicDev's "network" or "parent" property matches one of the networks names.
ParseIPCIDRToNet parses an IP in CIDR format into a net.IPNet (with the IP field set to the IP supplied).
ParseIPToNet parses a standalone IP address into a net.IPNet (with the IP field set to the IP supplied).
ParsePortRange validates a port range in the form start-end.
PatchPreCheck checks if there are any unavailable networks.
ProxyParseAddr validates a proxy address and parses it into its constituent parts.
RandomDevName returns a random device name with prefix.
SRIOVFindFreeVFAndRepresentor tries to find a free SR-IOV virtual function of a PF connected to an OVS bridge.
SRIOVFindFreeVirtualFunction looks on the specified parent device for an unused virtual function.
SRIOVFindRepresentorPort finds the associated representor port name for a switchdev VF ID.
SRIOVGetHostDevicesInUse returns a map of host device names that have been used by devices in other instances and networks on the local member.
No description provided by the author
SRIOVGetVFDevicePCISlot returns the PCI slot name for a network virtual function device.
SRIOVSwitchdevEnabled returns true if switchdev mode is enabled on the given device.
SubnetContains returns true if outerSubnet contains innerSubnet.
SubnetContainsIP returns true if outsetSubnet contains IP address.
SubnetIterate iterates through each IP in a subnet calling a function for each IP.
SubnetParseAppend parses one or more string CIDR subnets.
UpdateDNSMasqStatic rebuilds the DNSMasq static allocations.
UsedBy returns list of API resources using network.
UsedByInstanceDevices looks for instance NIC devices using the network and runs the supplied usageFunc for each.
VLANInterfaceCreate creates a VLAN interface on parent interface (if needed).
# Variables
ErrNotImplemented is the "Not implemented" error.
ErrUnknownDriver is the "Unknown driver" error.
SRIOVVirtualFunctionMutex used to coordinate access for finding and claiming free virtual functions.
# Structs
Info represents information about a network driver.
OVNInstanceNICSetupOpts options for starting an OVN Instance NIC.
OVNInstanceNICStopOpts options for stopping an OVN Instance NIC.
ProjectNetwork is a composite type of project name and network name.