1
0
mirror of https://github.com/rancher/os.git synced 2025-09-25 12:47:20 +00:00

fix the ip/cidr, and call updateNetwork

Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
Sven Dowideit
2017-03-08 22:03:08 +10:00
parent 0779e13d46
commit b5fdd63a85
5 changed files with 38 additions and 11 deletions

View File

@@ -65,6 +65,11 @@ func Main() {
if err := SaveCloudConfig(true); err != nil {
log.Errorf("Failed to save cloud-config: %v", err)
}
// Apply any newly detected network config.
//consider putting this in a separate init phase...
cfg = rancherConfig.LoadConfig()
network.ApplyNetworkConfig(cfg)
}
func SaveCloudConfig(network bool) error {