package
0.1.1
Repository: https://github.com/threefoldtech/zos4.git
Documentation: pkg.go.dev

# Functions

AnalyzeLinks is used to gather the IP that each interfaces would be from DHCP and SLAAC it returns the IPs and routes for each interfaces for both IPv4 and IPv6 It will list all the physical interfaces that have a cable plugged in it create a network namespace per interfaces start a DHCP probe on each interfaces and gather the IPs and routes received.
CreateDefaultBridge creates the default bridge of the node that will received the management interface.
DefaultBridgeValid validates default bridge exists and of correct type.
NotAttachedFilter filters out network cards that area attached to bridges.
No description provided by the author
PhysicalFilter returns true if physical link.
PluggedFilter returns true if link is plugged in.
SelectZOS decide which interface should be assigned to the ZOS bridge if multiple interfaces receives an IP from DHCP we prefer a interfaces that has the smallest IP and private IP gateway if none is found, then we pick the interface that has the smallest IP and any IP gateway.
No description provided by the author

# Variables

RequiresIPv4 requires ipv4.
RequiresIPv6 requires ipv6.

# Structs

IfaceConfig contains all the IP address and routes of an interface.
Requires tells the analyzer to wait for ip type.

# Type aliases

Filter interface to filter out links.