summaryrefslogtreecommitdiff
path: root/cloudinit/config/cc_vyos.py
diff options
context:
space:
mode:
Diffstat (limited to 'cloudinit/config/cc_vyos.py')
-rw-r--r--cloudinit/config/cc_vyos.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/cloudinit/config/cc_vyos.py b/cloudinit/config/cc_vyos.py
index e472a1cd..338f5507 100644
--- a/cloudinit/config/cc_vyos.py
+++ b/cloudinit/config/cc_vyos.py
@@ -454,8 +454,12 @@ def handle(name, cfg, cloud, log, _args):
vendordata = cloud.datasource.vendordata
logger.debug("Vendor-Data: {}".format(vendordata))
# Network-config
- init_stage = Init()
- (netcfg, netcfg_src) = init_stage._find_networking_config()
+ netcfg = cloud.datasource.network_config
+ if netcfg:
+ netcfg_src = dsname
+ else:
+ init_stage = Init()
+ (netcfg, netcfg_src) = init_stage._find_networking_config()
logger.debug("Network-config: {}".format(netcfg))
logger.debug("Network-config source: {}".format(netcfg_src))
# Hostname with FQDN (if exist)