1
0
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:
wlan0
2015-03-25 02:39:27 -07:00
committed by Darren Shepherd
parent e3fd8367c0
commit 1dba86a97e
3 changed files with 81 additions and 0 deletions

View File

@@ -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 {