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