networkconfig

package
v0.0.0-...-2edc924 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DNSResolver

type DNSResolver struct {
	Config DNSResolverConfig `yaml:"config"`
}

DNSResolver contains the dns-resolver configuration portion of the nmstate configuration.

type DNSResolverConfig

type DNSResolverConfig struct {
	Server []string `yaml:"server"`
}

DNSResolverConfig defines an nmstate dns-resolver and its properties.

type IPAddress

type IPAddress struct {
	IP           string `yaml:"ip"`
	PrefixLength string `yaml:"prefix-length"`
}

IPAddress provides the IP address details to an IP configuration.

type IPConfig

type IPConfig struct {
	DHCP    bool        `yaml:"dhcp"`
	Address []IPAddress `yaml:"address"`
	Enabled bool        `yaml:"enabled"`
}

IPConfig defines the IP configuration applied to an interface.

type Interface

type Interface struct {
	Name       string   `yaml:"name"`
	Type       string   `yaml:"type"`
	State      string   `yaml:"state"`
	Identifier string   `yaml:"identifier"`
	MACAddress string   `yaml:"mac-address"`
	IPv4       IPConfig `yaml:"ipv4"`
	IPv6       IPConfig `yaml:"ipv6"`
}

Interface defines an nmstate interface and its properties.

type NetworkConfig

type NetworkConfig struct {
	Interfaces  []Interface `yaml:"interfaces"`
	Routes      Routes      `yaml:"routes"`
	DNSResolver DNSResolver `yaml:"dns-resolver"`
}

NetworkConfig is the top-level struct containing a full nmstate network configuration.

type RouteConfig

type RouteConfig struct {
	Destination      string `yaml:"destination"`
	NextHopAddress   string `yaml:"next-hop-address"`
	NextHopInterface string `yaml:"next-hop-interface"`
}

RouteConfig defines an nmstate route and its properties.

type Routes

type Routes struct {
	Config []RouteConfig `yaml:"config"`
}

Routes contains the route configuration portion of the nmstate configuration.

Jump to

Keyboard shortcuts

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