mirror of
https://github.com/rancher/os.git
synced 2025-08-15 05:26:21 +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:
parent
5a961b8887
commit
3fefb5f888
@ -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