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 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.
Click to show internal directories.
Click to hide internal directories.