X-Git-Url: https://git.llucax.com/software/pymin.git/blobdiff_plain/07a7ae61f3af4fa685077e3b7e5c59f09f8a143f..196ed3f27decb8cf21dd398fe3e27c7f7461b719:/pymin/services/util.py?ds=inline diff --git a/pymin/services/util.py b/pymin/services/util.py index 21afa63..acb9539 100644 --- a/pymin/services/util.py +++ b/pymin/services/util.py @@ -17,7 +17,7 @@ from pymin.seqtools import Sequence #DEBUG = False DEBUG = True -__ALL__ = ('Error', 'ExecutionError', 'ItemError', 'ItemAlreadyExistsError', +__all__ = ('Error', 'ExecutionError', 'ItemError', 'ItemAlreadyExistsError', 'ItemNotFoundError', 'ContainerError', 'ContainerNotFoundError', 'call', 'get_network_devices', 'Persistent', 'Restorable', 'ConfigWriter', 'ServiceHandler', 'RestartHandler', @@ -156,10 +156,11 @@ class Device(Sequence): self.name = name self.mac = mac self.ppp = ppp + self.active = True self.addrs = dict() self.routes = list() def as_tuple(self): - return (self.name, self.mac, self.addrs) + return (self.name, self.mac, self.active, self.addrs)