NETWORK section is optional
This commit is contained in:
@ -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')
|
||||||
|
Reference in New Issue
Block a user