1
0
mirror of https://github.com/rancher/os.git synced 2025-09-13 13:39:53 +00:00

Don't make IPv4LL and Addresses mutally exclusive

This commit is contained in:
Darren Shepherd
2017-03-08 15:57:58 -07:00
committed by Sven Dowideit
parent b5fdd63a85
commit e4c2271c6b

View File

@@ -325,7 +325,8 @@ func applyInterfaceConfig(link netlink.Link, netConf InterfaceConfig) error {
log.Errorf("IPV4LL set failed: %v", err) log.Errorf("IPV4LL set failed: %v", err)
return err return err
} }
} else { }
addresses := []string{} addresses := []string{}
if netConf.Address != "" { if netConf.Address != "" {
@@ -342,7 +343,6 @@ func applyInterfaceConfig(link netlink.Link, netConf InterfaceConfig) error {
log.Errorf("Failed to apply address %s to %s: %v", address, link.Attrs().Name, err) log.Errorf("Failed to apply address %s to %s: %v", address, link.Attrs().Name, err)
} }
} }
}
if netConf.MTU > 0 { if netConf.MTU > 0 {
if err := netlink.LinkSetMTU(link, netConf.MTU); err != nil { if err := netlink.LinkSetMTU(link, netConf.MTU); err != nil {