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:
committed by
Sven Dowideit
parent
b5fdd63a85
commit
e4c2271c6b
@@ -325,7 +325,8 @@ func applyInterfaceConfig(link netlink.Link, netConf InterfaceConfig) error {
|
||||
log.Errorf("IPV4LL set failed: %v", err)
|
||||
return err
|
||||
}
|
||||
} else {
|
||||
}
|
||||
|
||||
addresses := []string{}
|
||||
|
||||
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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if netConf.MTU > 0 {
|
||||
if err := netlink.LinkSetMTU(link, netConf.MTU); err != nil {
|
||||
|
Reference in New Issue
Block a user