Versions in this module Expand all Collapse all v0 v0.2.2 Jan 15, 2025 Changes in this version + var RequiresIPv4 = Requires + var RequiresIPv6 = Requires + func CreateDefaultBridge(name string, vlan *uint16) (*netlink.Bridge, error) + func DefaultBridgeValid() error + func NotAttachedFilter(link netlink.Link) (bool, error) + func NotIpsAssignedFilter(link netlink.Link) (bool, error) + func PhysicalFilter(link netlink.Link) (bool, error) + func PluggedFilter(link netlink.Link) (bool, error) + func SelectZOS(cfgs []IfaceConfig) (string, error) + func VEthFilter(link netlink.Link) (bool, error) + type Filter func(link netlink.Link) (bool, error) + type IfaceConfig struct + Addrs4 []netlink.Addr + Addrs6 []netlink.Addr + DefaultGW net.IP + Name string + func AnalyzeLinks(requires Requires, filters ...Filter) ([]IfaceConfig, error) + type Requires struct + func (r Requires) WithIPv4(b bool) Requires + func (r Requires) WithIPv6(b bool) Requires + func (r Requires) WithVlan(b *uint16) Requires