#!/usr/bin/python /usr/bin/plcsh
-# $Id$
import os
import socket
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.
# 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: