mirror of
https://github.com/rancher/os.git
synced 2025-09-01 14:48:55 +00:00
Bump netconf
This commit is contained in:
6
vendor/github.com/rancher/netconf/netconf_linux.go
generated
vendored
6
vendor/github.com/rancher/netconf/netconf_linux.go
generated
vendored
@@ -183,6 +183,8 @@ func ApplyNetworkConfigs(netCfg *NetworkConfig) error {
|
||||
}
|
||||
|
||||
func RunDhcp(netCfg *NetworkConfig, setHostname, setDns bool) error {
|
||||
populateDefault(netCfg)
|
||||
|
||||
links, err := netlink.LinkList()
|
||||
if err != nil {
|
||||
return err
|
||||
@@ -315,7 +317,7 @@ func applyInterfaceConfig(link netlink.Link, netConf InterfaceConfig) error {
|
||||
if err := b.AddLink(link); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
return linkUp(link, netConf)
|
||||
}
|
||||
|
||||
if netConf.IPV4LL {
|
||||
@@ -360,7 +362,7 @@ func applyInterfaceConfig(link netlink.Link, netConf InterfaceConfig) error {
|
||||
}
|
||||
|
||||
if err := setGateway(netConf.GatewayIpv6); err != nil {
|
||||
log.Errorf("Fail to set gateway %s", netConf.Gateway)
|
||||
log.Errorf("Fail to set gateway %s", netConf.GatewayIpv6)
|
||||
}
|
||||
|
||||
runCmds(netConf.PostUp, link.Attrs().Name)
|
||||
|
3
vendor/github.com/rancher/netconf/types.go
generated
vendored
3
vendor/github.com/rancher/netconf/types.go
generated
vendored
@@ -5,6 +5,9 @@ type NetworkConfig struct {
|
||||
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 InterfaceConfig struct {
|
||||
|
Reference in New Issue
Block a user