network

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 1, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainsDefaultRoute added in v0.3.0

func ContainsDefaultRoute(prefixes []string) bool

Types

type EvpnIface added in v0.3.0

type EvpnIface struct {
	Network string
	CIDRs   []string
	VlanID  int
	VrfID   uint64
}

type Network added in v0.3.0

type Network struct {
	// contains filtered or unexported fields
}

func New

func New(allocation *apiv2.MachineAllocation) *Network

func (*Network) AllocationNetworks added in v0.3.0

func (n *Network) AllocationNetworks() []*apiv2.MachineNetwork

func (*Network) EVPNIfaces added in v0.3.0

func (n *Network) EVPNIfaces() (ifaces []EvpnIface, err error)

func (*Network) FirewallRules added in v0.3.0

func (n *Network) FirewallRules() *apiv2.FirewallRules

func (*Network) GetDefaultRouteNetwork added in v0.3.0

func (n *Network) GetDefaultRouteNetwork() (*apiv2.MachineNetwork, error)

func (*Network) GetDefaultRouteNetworkVrfName added in v0.3.0

func (n *Network) GetDefaultRouteNetworkVrfName() (string, error)

func (*Network) GetExternalNetworkVrfNames added in v0.3.0

func (n *Network) GetExternalNetworkVrfNames() (vrfNames []string)

func (*Network) GetNetworks added in v0.3.0

func (n *Network) GetNetworks(networkType apiv2.NetworkType) []*apiv2.MachineNetwork

func (*Network) GetTenantNetworkVrfName added in v0.3.0

func (n *Network) GetTenantNetworkVrfName() (string, error)

func (*Network) HasVpn added in v0.3.0

func (n *Network) HasVpn() bool

func (*Network) Hostname added in v0.3.0

func (n *Network) Hostname() string

func (*Network) IsMachine added in v0.3.0

func (n *Network) IsMachine() bool

func (*Network) LoopbackCIDRs added in v0.3.0

func (n *Network) LoopbackCIDRs() (cidrs []string, err error)

func (*Network) MTU added in v0.3.0

func (n *Network) MTU() int

func (*Network) NTPServers added in v0.3.0

func (n *Network) NTPServers() (ntpServers []string)

func (*Network) PrivatePrimaryIPs added in v0.3.0

func (n *Network) PrivatePrimaryIPs() ([]string, error)

func (*Network) PrivatePrimaryNetwork added in v0.3.0

func (n *Network) PrivatePrimaryNetwork() (*apiv2.MachineNetwork, error)

func (*Network) PrivatePrimaryNetworksPrefixes added in v0.3.0

func (n *Network) PrivatePrimaryNetworksPrefixes() ([]string, error)

func (*Network) PrivateSecondarySharedNetworks added in v0.3.0

func (n *Network) PrivateSecondarySharedNetworks() (nws []*apiv2.MachineNetwork)

func (*Network) UnderlayNetwork added in v0.3.0

func (n *Network) UnderlayNetwork() (*apiv2.MachineNetwork, error)

func (*Network) Vpn added in v0.3.0

func (n *Network) Vpn() *apiv2.MachineVPN

func (*Network) VxlanIDs added in v0.3.0

func (n *Network) VxlanIDs() (ids []uint64)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL