mirror of
https://github.com/rancher/os.git
synced 2025-07-12 22:27:59 +00:00
Bump netconf
This commit is contained in:
parent
7ec73416c8
commit
09b4b202b2
@ -34,7 +34,7 @@ github.com/opencontainers/specs f955d90e70a98ddfb886bd930ffd076da9b67998
|
||||
github.com/packethost/packngo 92012705236896736875186c9e49557897c6af90 https://github.com/ibuildthecloud/packngo.git
|
||||
github.com/pmezard/go-difflib d8ed2627bdf02c080bf22230dbb337003b7aba2d
|
||||
github.com/rancher/docker-from-scratch v1.10.3
|
||||
github.com/rancher/netconf 7880fdeac0923a05b86a0b5774b4dc96a5749d76
|
||||
github.com/rancher/netconf ddd7e35a6aacd7e80991920774083dd4408ec018
|
||||
github.com/rcrowley/go-metrics eeba7bd0dd01ace6e690fa833b3f22aaec29af43
|
||||
github.com/ryanuber/go-glob 0067a9abd927e50aed5190662702f81231413ae0
|
||||
github.com/seccomp/libseccomp-golang 1b506fc7c24eec5a3693cdcbed40d9c226cfc6a1
|
||||
|
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 {
|
||||
|
Loading…
Reference in New Issue
Block a user