mirror of
https://github.com/rancher/os.git
synced 2025-09-01 23:04:41 +00:00
add ipv4ll auto conf
This commit is contained in:
@@ -101,6 +101,11 @@ func applyNetConf(link netlink.Link, netConf config.InterfaceConfig) error {
|
||||
if err := cmd.Run(); err != nil {
|
||||
log.Error(err)
|
||||
}
|
||||
} else if netConf.IPV4LL {
|
||||
if err := AssignLinkLocalIP(link); err != nil {
|
||||
log.Error("IPV4LL set failed")
|
||||
return err
|
||||
}
|
||||
} else if netConf.Address == "" {
|
||||
return nil
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user