X-Git-Url: https://git.llucax.com/software/pymin.git/blobdiff_plain/8f23bf641fb2260df1ee40e9d7d45dad9b116e1f..b53a45e7e79b31d0b6b44df0405366cc8a2fd016:/services/vpn/host.py?ds=inline diff --git a/services/vpn/host.py b/services/vpn/host.py index d22de66..37afc74 100644 --- a/services/vpn/host.py +++ b/services/vpn/host.py @@ -7,15 +7,15 @@ __all__ = ('HostHandler',) 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): - return(self.name, self.ip, self.src_net, self.pub_key) + return(self.name, self.address, self.subnet, self.public_key) class HostHandler(DictComposedSubHandler):