Versions in this module Expand all Collapse all v0 v0.3.0 Apr 1, 2026 Changes in this version + func ContainsDefaultRoute(prefixes []string) bool + type EvpnIface struct + CIDRs []string + Network string + VlanID int + VrfID uint64 + type Network struct + func (n *Network) AllocationNetworks() []*apiv2.MachineNetwork + func (n *Network) EVPNIfaces() (ifaces []EvpnIface, err error) + func (n *Network) FirewallRules() *apiv2.FirewallRules + func (n *Network) GetDefaultRouteNetwork() (*apiv2.MachineNetwork, error) + func (n *Network) GetDefaultRouteNetworkVrfName() (string, error) + func (n *Network) GetExternalNetworkVrfNames() (vrfNames []string) + func (n *Network) GetNetworks(networkType apiv2.NetworkType) []*apiv2.MachineNetwork + func (n *Network) GetTenantNetworkVrfName() (string, error) + func (n *Network) HasVpn() bool + func (n *Network) Hostname() string + func (n *Network) IsMachine() bool + func (n *Network) LoopbackCIDRs() (cidrs []string, err error) + func (n *Network) MTU() int + func (n *Network) NTPServers() (ntpServers []string) + func (n *Network) PrivatePrimaryIPs() ([]string, error) + func (n *Network) PrivatePrimaryNetwork() (*apiv2.MachineNetwork, error) + func (n *Network) PrivatePrimaryNetworksPrefixes() ([]string, error) + func (n *Network) PrivateSecondarySharedNetworks() (nws []*apiv2.MachineNetwork) + func (n *Network) UnderlayNetwork() (*apiv2.MachineNetwork, error) + func (n *Network) Vpn() *apiv2.MachineVPN + func (n *Network) VxlanIDs() (ids []uint64) v0.2.0 Mar 4, 2026 Changes in this version + const AddressFamilyIPv4 + const AddressFamilyIPv6 + const Deny + const FRRVersion + const ForwardPolicyAccept + const ForwardPolicyDrop + const IPPrefixListNoExportSuffix + const IPPrefixListSeqSeed + const IPv4ZeroCIDR + const IPv6ZeroCIDR + const Permit + const RouteMapOrderSeed + const TplFirewallFRR + const TplMachineFRR + const TplNftables + const VLANOffset + func MustParseTpl(tplName string) *template.Template + func New(log *slog.Logger, path string) (*config, error) + func NewFrrConfigApplier(kind BareMetalType, c config, tmpFile string, frrVersion *semver.Version) net.Applier + func NewNftablesExporterServiceApplier(kb config, v net.Validator) (net.Applier, error) + type AccessPolicy int + func (p AccessPolicy) String() string + type AddrSpec struct + Address string + AddressFamily string + type AddressFamily string + type BareMetalType int + const Firewall + const Machine + type Bridge struct + Ports string + Vids string + type CommonFRRData struct + ASN int64 + Comment string + FRRVersion string + Hostname string + RouterID string + type Configurator interface + Configure func(forwardPolicy ForwardPolicy) + ConfigureNftables func(forwardPolicy ForwardPolicy) + func NewConfigurator(kind BareMetalType, c config, enableDNS bool) (Configurator, error) + type DNAT struct + Comment string + DAddr string + DestSpec AddrSpec + InInterfaces []string + Port string + SAddr string + Zone string + type EVPNIface struct + Comment string + SVI SVI + VRF VRF + VXLAN VXLAN + type FRR struct + Major uint64 + Minor uint64 + type FirewallFRRData struct + VRFs []VRF + type FirewallRules struct + Egress []string + Ingress []string + type ForwardPolicy string + type HostnameData struct + Comment string + Hostname string + type HostnameValidator struct + func (v HostnameValidator) Validate() error + type HostsData struct + Comment string + Hostname string + IP string + type HostsValidator struct + func (v HostsValidator) Validate() error + type IPPrefixList struct + AddressFamily AddressFamily + Name string + SourceVRF string + Spec string + type Identity struct + Comment string + ID int + type IfacesData struct + Comment string + EVPNIfaces []EVPNIface + Loopback Loopback + type ImportSettings struct + ImportPrefixes []importPrefix + ImportPrefixesNoExport []importPrefix + type Input struct + InInterfaces []string + type Loopback struct + Comment string + IPs []string + type MachineFRRData struct + type NftablesData struct + Comment string + DNSProxyDNAT DNAT + FirewallRules FirewallRules + ForwardPolicy string + Input Input + SNAT []SNAT + VPN bool + type NftablesExporterData struct + Comment string + TenantVrf string + type NftablesReloader struct + func (*NftablesReloader) Reload() error + type NftablesValidator struct + func (v NftablesValidator) Validate() error + type NodeExporterData struct + Comment string + TenantVrf string + type RouteMap struct + Entries []string + Name string + Order int + Policy string + type SNAT struct + Comment string + OutIntSpec AddrSpec + OutInterface string + SourceSpecs []AddrSpec + type SVI struct + Addresses []string + Comment string + VLANID int + type SuricataConfigData struct + Comment string + DefaultRouteVrf string + Interface string + type SuricataDefaultsData struct + Comment string + Interface string + type SuricataUpdateData struct + Comment string + DefaultRouteVrf string + type SystemdCommonData struct + Comment string + Index int + type SystemdLinkData struct + EVPNIfaces []EVPNIface + MAC string + MTU int + type TailscaleData struct + Address string + AuthKey string + DefaultRouteVrf string + MachineID string + type TailscaledData struct + DefaultRouteVrf string + TailscaledPort string + type VRF struct + FRRVersion *FRR + IPPrefixLists []IPPrefixList + ImportVRFNames []string + RouteMaps []RouteMap + Table int + VNI int + type VXLAN struct + TunnelIP string