Documentation ¶
Index ¶
- Constants
- func ApplyNetworkConfigs(netCfg *NetworkConfig, userSetHostname, userSetDNS bool) (bool, error)
- func AssignLinkLocalIP(link netlink.Link) error
- func GetDhcpLease(iface string) (lease map[string]string)
- func GetValidLinkList() ([]netlink.Link, error)
- func RemoveLinkLocalIP(link netlink.Link) error
- type Bonding
- type Bridge
- type DNSConfig
- type InterfaceConfig
- type NetworkConfig
- type Vlan
- type VlanDefinition
Constants ¶
View Source
const ( CONF = "/var/lib/rancher/conf" MODE = "mode" )
Variables ¶
This section is empty.
Functions ¶
func ApplyNetworkConfigs ¶
func ApplyNetworkConfigs(netCfg *NetworkConfig, userSetHostname, userSetDNS bool) (bool, error)
func AssignLinkLocalIP ¶
func GetDhcpLease ¶ added in v1.4.0
func GetValidLinkList ¶ added in v1.4.0
func RemoveLinkLocalIP ¶ added in v0.8.2
Types ¶
type Bonding ¶
type Bonding struct {
// contains filtered or unexported fields
}
func (*Bonding) ListSlaves ¶
func (*Bonding) RemoveSlave ¶
type InterfaceConfig ¶ added in v0.8.2
type InterfaceConfig struct { Match string `yaml:"match,omitempty"` DHCP bool `yaml:"dhcp,omitempty"` DHCPArgs string `yaml:"dhcp_args,omitempty"` Address string `yaml:"address,omitempty"` Addresses []string `yaml:"addresses,omitempty"` IPV4LL bool `yaml:"ipv4ll,omitempty"` Gateway string `yaml:"gateway,omitempty"` GatewayIpv6 string `yaml:"gateway_ipv6,omitempty"` MTU int `yaml:"mtu,omitempty"` Bridge string `yaml:"bridge,omitempty"` Bond string `yaml:"bond,omitempty"` BondOpts map[string]string `yaml:"bond_opts,omitempty"` PostUp []string `yaml:"post_up,omitempty"` PreUp []string `yaml:"pre_up,omitempty"` Vlans string `yaml:"vlans,omitempty"` }
type NetworkConfig ¶ added in v0.8.2
type NetworkConfig struct { PreCmds []string `yaml:"pre_cmds,omitempty"` DNS DNSConfig `yaml:"dns,omitempty"` Interfaces map[string]InterfaceConfig `yaml:"interfaces,omitempty"` PostCmds []string `yaml:"post_cmds,omitempty"` HTTPProxy string `yaml:"http_proxy,omitempty"` HTTPSProxy string `yaml:"https_proxy,omitempty"` NoProxy string `yaml:"no_proxy,omitempty"` }
type VlanDefinition ¶
func ParseVlanDefinitions ¶
func ParseVlanDefinitions(vlans string) ([]VlanDefinition, error)
Click to show internal directories.
Click to hide internal directories.