Commit 59b095f1 authored by zolliker's avatar zolliker
Browse files

additional fields in ifcfg

parent 5f39412c
......@@ -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':
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment