X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plnet.py;h=ee3d253f280aa097f5b0762edd9edcd62686acbc;hb=712ca0a3e915adbb8bc539756d0cf8af1d755575;hp=8abc0afb7b53d3a6414aef9929a70d4c7b8f0ded;hpb=92ca645b83d6a4c9b549d2d36e16c788f28e6345;p=pyplnet.git diff --git a/plnet.py b/plnet.py index 8abc0af..ee3d253 100755 --- a/plnet.py +++ b/plnet.py @@ -62,6 +62,8 @@ def InitInterfaces(logger, plc, data, root="", files_only=False, program="NodeMa 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'] @@ -207,12 +209,12 @@ def InitInterfaces(logger, plc, data, root="", files_only=False, program="NodeMa 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: