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, vpn_src, ip, vpn_src_net, key):
13 self.src_net = vpn_src_net
18 return(self.name, self.ip, self.src_net, self.pub_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