NETWORK section is optional

This commit is contained in:
2025-04-08 15:06:07 +02:00
parent ee5f9924f8
commit 89425d9ce4

View File

@ -560,7 +560,7 @@ def handle_config():
to_start = {} to_start = {}
ifname = '' ifname = ''
try: try:
netcfg = config['NETWORK'] netcfg = config.get('NETWORK', {})
for name in netcfg: for name in netcfg:
if name not in box.network_interfaces: if name not in box.network_interfaces:
print(f'{name} is not a valid network interface name') print(f'{name} is not a valid network interface name')