1 # vim: set encoding=utf-8 et sw=4 sts=4 :
3 from pymin.seqtools import Sequence
4 from pymin.service.util import DictComposedSubHandler
6 __all__ = ('HostHandler',)
10 def __init__(self, name, address, subnet, public_key):
12 self.address = address
14 self.public_key = public_key
18 return(self.name, self.address, self.subnet, self.public_key)
20 class HostHandler(DictComposedSubHandler):
22 handler_help = u"Manage hosts for a vpn"
23 _comp_subhandler_cont = 'vpns'
24 _comp_subhandler_attr = 'hosts'
25 _comp_subhandler_class = Host