netconf

package
v0.8.0-rc9 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2017 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CONF = "/var/lib/rancher/conf"
	MODE = "mode"
)

Variables

This section is empty.

Functions

func ApplyNetworkConfigs

func ApplyNetworkConfigs(netCfg *config.NetworkConfig) error

func AssignLinkLocalIP

func AssignLinkLocalIP(link netlink.Link) error

func RunDhcp

func RunDhcp(netCfg *config.NetworkConfig, setHostname, setDNS bool) error

Types

type Bonding

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

func Bond

func Bond(name string) (*Bonding, error)

func (*Bonding) AddSlave

func (b *Bonding) AddSlave(slave string) error

func (*Bonding) ListSlaves

func (b *Bonding) ListSlaves() ([]string, error)

func (*Bonding) Opt

func (b *Bonding) Opt(key, value string) error

func (*Bonding) RemoveSlave

func (b *Bonding) RemoveSlave(slave string) error

type Bridge

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

func NewBridge

func NewBridge(name string) (*Bridge, error)
func (b *Bridge) AddLink(link netlink.Link) error

type Vlan

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

func NewVlan

func NewVlan(link netlink.Link, name string, id int) (*Vlan, error)

type VlanDefinition

type VlanDefinition struct {
	ID   int
	Name string
}

func ParseVlanDefinitions

func ParseVlanDefinitions(vlans string) ([]VlanDefinition, error)

Jump to

Keyboard shortcuts

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