]> git.llucax.com Git - software/pymin.git/commitdiff
Removed 'ip addr update' command since it has not much sense.
authorLeandro Lucarella <llucax@gmail.com>
Sat, 27 Oct 2007 18:48:24 +0000 (15:48 -0300)
committerLeandro Lucarella <llucax@gmail.com>
Sat, 27 Oct 2007 18:48:24 +0000 (15:48 -0300)
pymin/services/ip/__init__.py

index 9d256a294ad3020c9ff6073cba7ce53569c84456..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)