1
0
mirror of https://github.com/rancher/os.git synced 2025-06-25 22:41:36 +00:00

Don't auto-remove the ipv4ll ip we just added

Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
Sven Dowideit 2017-04-07 09:05:18 +00:00
parent 5a961b8887
commit 3fefb5f888

View File

@ -395,7 +395,7 @@ func applyInterfaceConfig(link netlink.Link, netConf InterfaceConfig) error {
}
for _, addr := range existingAddrs {
if _, ok := addrMap[addr.IPNet.String()]; !ok {
if netConf.DHCP {
if netConf.DHCP || netConf.IPV4LL {
// let the dhcpcd take care of it
log.Infof("leaving %s from %s", addr.String(), link.Attrs().Name)
} else {