Ejemplo n.º 1
0
 def writeIfcfgFile(self):
     # Write out the file only if there is a key whose
     # value has been changed since last load of ifcfg file.
     if self._dirty:
         IfcfgFile.write(self)
         self.log("NetworkDevice written to %s\n" % self.path)
         self._dirty = False
Ejemplo n.º 2
0
 def writeIfcfgFile(self):
     # Write out the file only if there is a key whose
     # value has been changed since last load of ifcfg file.
     ifcfglog.debug("%s:\n%s" % (self.path, self.fileContent()))
     ifcfglog.debug("NetworkDevice %s:\n%s" % (self.iface, self.__str__()))
     ifcfglog.debug("writeIfcfgFile %s to %s%s" % (self.iface, self.path,
                                                   ("" if self._dirty else " not needed")))
     if self._dirty:
         IfcfgFile.write(self)
         self._dirty = False
Ejemplo n.º 3
0
 def writeIfcfgFile(self):
     # Write out the file only if there is a key whose
     # value has been changed since last load of ifcfg file.
     ifcfglog.debug("%s:\n%s" % (self.path, self.fileContent()))
     ifcfglog.debug("NetworkDevice %s:\n%s" % (self.iface, self.__str__()))
     ifcfglog.debug("writeIfcfgFile %s to %s%s" % (self.iface, self.path,
                                                   ("" if self._dirty else " not needed")))
     if self._dirty:
         IfcfgFile.write(self)
         self._dirty = False