1
0
mirror of https://github.com/rancher/os.git synced 2025-09-01 06:40:31 +00:00

use DHCP for aws datasource

Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
Sven Dowideit
2017-03-13 10:23:57 +10:00
parent 64949bb888
commit d65f9518df
4 changed files with 66 additions and 27 deletions

View File

@@ -148,7 +148,10 @@ func populateDefault(netCfg *NetworkConfig) {
if _, ok := netCfg.Interfaces["lo"]; !ok {
netCfg.Interfaces["lo"] = InterfaceConfig{
Address: "127.0.0.1/8",
Addresses: []string{
"127.0.0.1/8",
"::1/128",
},
}
}
}
@@ -401,7 +404,7 @@ func applyInterfaceConfig(link netlink.Link, netConf InterfaceConfig) error {
log.Errorf("Fail to set gateway %s", netConf.GatewayIpv6)
}
// TODO: how to remove a GW?
// TODO: how to remove a GW? (on aws it seems to be hard to find out what the gw is :/)
runCmds(netConf.PostUp, link.Attrs().Name)
return nil