netconf

package
v0.4.1-rc1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2015 License: Apache-2.0, Apache-2.0 Imports: 13 Imported by: 0

README

RancherOS Netconf

Simple wrapper around various netlink calls to configure networking

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyNetworkConfigs

func ApplyNetworkConfigs(netCfg *NetworkConfig) error

func AssignLinkLocalIP

func AssignLinkLocalIP(link netlink.Link) error

Types

type DnsConfig

type DnsConfig struct {
	Nameservers []string `yaml:"nameservers,flow,omitempty"`
	Search      []string `yaml:"search,flow,omitempty"`
}

type InterfaceConfig

type InterfaceConfig struct {
	Match   string `yaml:"match,omitempty"`
	DHCP    bool   `yaml:"dhcp,omitempty"`
	Address string `yaml:"address,omitempty"`
	IPV4LL  bool   `yaml:"ipv4ll,omitempty"`
	Gateway string `yaml:"gateway,omitempty"`
	MTU     int    `yaml:"mtu,omitempty"`
	Bridge  bool   `yaml:"bridge,omitempty"`
}

type NetworkConfig

type NetworkConfig struct {
	Dns        DnsConfig                  `yaml:"dns,omitempty"`
	Interfaces map[string]InterfaceConfig `yaml:"interfaces,omitempty"`
}

Jump to

Keyboard shortcuts

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