X-Git-Url: https://git.llucax.com/software/pymin.git/blobdiff_plain/07d6251c69d26b80b47ff012c3e44b7e4a366df4..fac20bd5c930ab027e9c097f34bf50714f8a53d5:/pymin/services/vpn/__init__.py diff --git a/pymin/services/vpn/__init__.py b/pymin/services/vpn/__init__.py index f3b9f95..066e8fc 100644 --- a/pymin/services/vpn/__init__.py +++ b/pymin/services/vpn/__init__.py @@ -13,6 +13,13 @@ from pymin.services.util import Restorable, ConfigWriter, InitdHandler, \ TransactionalHandler, DictSubHandler, DictComposedSubHandler, call, ExecutionError +__all__ = ('VpnHandler', 'get_service') + + +def get_service(config): + return VpnHandler(config.vpn.pickle_dir, config.vpn.config_dir) + + class Host(Sequence): def __init__(self, vpn_src, ip, vpn_src_net, key): self.name = vpn_src