1
0
mirror of https://github.com/rancher/os.git synced 2025-08-02 07:24:28 +00:00

Merge pull request #1759 from rancher/dont-remove-ipv4ll-ip-either

Don't auto-remove the ipv4ll ip we just added
This commit is contained in:
Sven Dowideit 2017-04-07 19:58:48 +10:00 committed by GitHub
commit 19a595773b

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 {