mirror of
https://github.com/rancher/os.git
synced 2025-08-11 11:32: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:
commit
19a595773b
@ -395,7 +395,7 @@ func applyInterfaceConfig(link netlink.Link, netConf InterfaceConfig) error {
|
|||||||
}
|
}
|
||||||
for _, addr := range existingAddrs {
|
for _, addr := range existingAddrs {
|
||||||
if _, ok := addrMap[addr.IPNet.String()]; !ok {
|
if _, ok := addrMap[addr.IPNet.String()]; !ok {
|
||||||
if netConf.DHCP {
|
if netConf.DHCP || netConf.IPV4LL {
|
||||||
// let the dhcpcd take care of it
|
// let the dhcpcd take care of it
|
||||||
log.Infof("leaving %s from %s", addr.String(), link.Attrs().Name)
|
log.Infof("leaving %s from %s", addr.String(), link.Attrs().Name)
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user