X-Git-Url: https://git.llucax.com/software/pymin.git/blobdiff_plain/758d3079a17194172b723101a57cb9af6af3a34e..9a8d314470c4fa1f0fb347470983365853d663d4:/pymin/services/ip/__init__.py diff --git a/pymin/services/ip/__init__.py b/pymin/services/ip/__init__.py index e626ab7..7b5eafe 100644 --- a/pymin/services/ip/__init__.py +++ b/pymin/services/ip/__init__.py @@ -110,9 +110,6 @@ class Address(Sequence): 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) @@ -187,6 +184,7 @@ class IpHandler(Restorable, ConfigWriter, TransactionalHandler): 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)