inter['BOOTPROTO'] = "static"
inter['IPADDR'] = network['ip']
inter['NETMASK'] = network['netmask']
+ inter['DNS1'] = network['dns1']
+ inter['DNS2'] = network['dns2']
if network['is_primary']:
gateway = network['gateway']
f.write("# Autogenerated by pyplnet... do not edit!\n")
if 'DRIVER' in inter:
f.write("# using %s driver for device %s\n" % (inter['DRIVER'],dev))
- f.write('DEVICE="%s"\n' % dev)
+ f.write('DEVICE=%s\n' % dev)
# print the configuration values
for (key, val) in inter.iteritems():
if key not in ('IFNAME','ALIAS','CFGOPTIONS','DRIVER'):
- f.write('%s="%s"\n' % (key, val))
+ f.write('%s=%s\n' % (key, val))
# print the configuration specific option values (if any)
if 'CFGOPTIONS' in inter: