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:
@@ -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
|
||||
|
Reference in New Issue
Block a user