]> git.llucax.com Git - software/pymin.git/blobdiff - services/vpn/host.py
Import HandlerError in vpn service handler (closes #32)
[software/pymin.git] / services / vpn / host.py
index d22de661715644a8f4de92cc459a991c1fe84b9b..37afc7413c9bf747dcef989041f53e5aef84d724 100644 (file)
@@ -7,15 +7,15 @@ __all__ = ('HostHandler',)
 
 
 class Host(Sequence):
 
 
 class Host(Sequence):
-    def __init__(self, vpn_src, ip, vpn_src_net, key):
-        self.name = vpn_src
-        self.ip = ip
-        self.src_net = vpn_src_net
-        self.pub_key = key
+    def __init__(self, name, address, subnet, public_key):
+        self.name = name
+        self.address = address
+        self.subnet = subnet
+        self.public_key = public_key
         self._delete = False
 
     def as_tuple(self):
         self._delete = False
 
     def as_tuple(self):
-        return(self.name, self.ip, self.src_net, self.pub_key)
+        return(self.name, self.address, self.subnet, self.public_key)
 
 class HostHandler(DictComposedSubHandler):
 
 
 class HostHandler(DictComposedSubHandler):