From 59b095f146b57f0206333a083167668e2ac918fc Mon Sep 17 00:00:00 2001 From: LIN SE Date: Thu, 8 Apr 2021 08:09:21 +0200 Subject: [PATCH] additional fields in ifcfg --- install.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/install.py b/install.py index 084ef12..5759eb6 100755 --- a/install.py +++ b/install.py @@ -18,8 +18,16 @@ DEL = '__to_delete__' CFGPATH = '/root/aputools/servercfg/%s.cfg' def create_if(name, mac, cfg): - result=dict(TYPE='Ethernet', NAME=name, DEVICE=name, - BOOTPROTO='none', ONBOOT='yes') + result=dict( + TYPE='Ethernet', + NAME=name, + DEVICE=name, + BOOTPROTO='none', + ONBOOT='yes', + PROXY_METHOD='none', + BROWSER_ONLY='no', + IPV4_FAILURE_FATAL='yes', + IPV6INIT='no') if cfg == 'off': result['ONBOOT']='no' elif cfg == 'dhcp':