additional fields in ifcfg
This commit is contained in:
12
install.py
12
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':
|
||||
|
Reference in New Issue
Block a user