cosmetic fix

This commit is contained in:
2022-11-08 10:25:13 +01:00
parent ecae959fc5
commit 8dc20ba2d5

View File

@ -28,9 +28,9 @@ COMMENT = "; please refer to README.md for help"
CONFIG_TEMPLATE = """[NETWORK] CONFIG_TEMPLATE = """[NETWORK]
%s %s
enp1s0=192.168.127.1/24 enp1s0=192.168.127.254
enp2s0=192.168.2.1/24 enp2s0=192.168.2.2
enp3s0=192.168.3.1/24 enp3s0=192.168.3.3
enp4s0=dhcp enp4s0=dhcp
[ROUTER] [ROUTER]
@ -198,9 +198,9 @@ def create_if(name, cfg, mac, dhcp_server_cfg):
IPV4_FAILURE_FATAL='yes', IPV4_FAILURE_FATAL='yes',
IPV6INIT='no') IPV6INIT='no')
if cfg == 'off': if cfg == 'off':
result['ONBOOT']='no' result['ONBOOT'] = 'no'
elif cfg.startswith('wan') or cfg == 'dhcp': elif cfg.startswith('wan') or cfg == 'dhcp':
result['BOOTPROTO']='dhcp' result['BOOTPROTO'] = 'dhcp'
# default: all <= 192.0.0.0 # default: all <= 192.0.0.0
# others have to be added explicitly # others have to be added explicitly
dhcp_server_cfg.append(('0.0.0.0/128.0.0.0', [])) dhcp_server_cfg.append(('0.0.0.0/128.0.0.0', []))