]> git.llucax.com Git - software/pymin.git/blobdiff - pymin/services/ip/__init__.py
Removed 'ip addr update' command since it has not much sense.
[software/pymin.git] / pymin / services / ip / __init__.py
index e626ab73fedf010ef30594763bc8a2990e575d4b..7b5eafe698583518dc3c457948417ce7cffe549b 100644 (file)
@@ -110,9 +110,6 @@ class Address(Sequence):
         self.ip = ip
         self.netmask = netmask
         self.broadcast = broadcast
         self.ip = ip
         self.netmask = netmask
         self.broadcast = broadcast
-    def update(self, netmask=None, broadcast=None):
-        if netmask is not None: self.netmask = netmask
-        if broadcast is not None: self.broadcast = broadcast
     def as_tuple(self):
         return (self.ip, self.netmask, self.broadcast)
 
     def as_tuple(self):
         return (self.ip, self.netmask, self.broadcast)
 
@@ -187,6 +184,7 @@ class IpHandler(Restorable, ConfigWriter, TransactionalHandler):
         self._config_writer_cfg_dir = config_dir
         self._config_build_templates()
         self._restore()
         self._config_writer_cfg_dir = config_dir
         self._config_build_templates()
         self._restore()
+        self._write_config()
         self.addr = AddressHandler(self)
         self.route = RouteHandler(self)
         self.dev = DeviceHandler(self)
         self.addr = AddressHandler(self)
         self.route = RouteHandler(self)
         self.dev = DeviceHandler(self)