X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plnet.py;h=129e5bad09438c5da7351395403ae57b6f16ddfc;hb=b6b71094bb22b2ae358fb6e65396df9b151c3cdc;hp=c4cd5fc27b3e7ecc140d83f6218d28c15eb24b07;hpb=df81e9330b804cfe8df393c25f3e0c406697ea35;p=pyplnet.git diff --git a/plnet.py b/plnet.py index c4cd5fc..129e5ba 100755 --- a/plnet.py +++ b/plnet.py @@ -1,5 +1,4 @@ #!/usr/bin/python /usr/bin/plcsh -# $Id$ import os import socket @@ -44,7 +43,7 @@ def InitInterfaces(logger, plc, data, root="", files_only=False, program="NodeMa failedToGetSettings = False # NOTE: GetInterfaces/NodeNetworks does not necessarily order the interfaces - # returned. Because 'interface'is decremented as each interface is processed, + # returned. Because 'interface' is decremented as each interface is processed, # by the time is_primary=True (primary) interface is reached, the device # "eth%s" % interface, is not eth0. But, something like eth-4, or eth-12. # This code sorts the interfaces, placing is_primary=True interfaces first. @@ -267,7 +266,7 @@ def InitInterfaces(logger, plc, data, root="", files_only=False, program="NodeMa # print the configuration values for (key, val) in details.iteritems(): if key not in ('IFNAME','ALIAS','CFGOPTIONS','DRIVER','GATEWAY'): - 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 details: