SOLVED - static networking configuration with cloudbase-init fails
Ciao Alex,
grazie mille per il tuo lavoro!
static network conf with cloudbase-init fails for me, the logs shows "network_config format not recognized".
I'm providing a config via a selfmade configV2 drive and I wonder in which format I am supposed to provide debian_network_conf
(cloudbaseinit/plugins/windows/networkconfig.py)
right now it's a multiline string:
iface eth0 inet static
address 192.168.1.90
broadcast 192.168.1.255
netmask 255.255.255.0
gateway 192.168.1.254
dns-nameserver 8.8.8.8
Put otherwise: How is this supposed to work? Did it ever?
# TODO (alexpilotti): implement a proper grammar
m = re.search(r'iface eth0 inet static\s+'
r'address\s+(?P<address>[^\s]+)\s+'
r'netmask\s+(?P<netmask>[^\s]+)\s+'
r'broadcast\s+(?P<broadcast>[^\s]+)\s+'
r'gateway\s+(?P<gateway>[^\s]+)\s+'
r'dns\-nameservers\s+(?P<dnsnameservers>[^\r\n]+)\s+',
debian_network_conf)
Grazie mille ancora! Florian