TransactionalHandler, ParametersHandler, \
DictSubHandler, ReloadHandler
-__all__ = ('DhcpHandler', 'get_service')
-
-
-def get_service(config):
- return DhcpHandler(config.dhcp.pickle_dir, config.dhcp.config_dir)
+__all__ = ('DhcpHandler')
class Host(Sequence):
TransactionalHandler, ParametersHandler, \
DictComposedSubHandler, DictSubHandler, call
-__all__ = ('DnsHandler', 'get_service')
-
-
-def get_service(config):
- return DnsHandler(config.dns.pickle_dir, config.dns.config_dir)
+__all__ = ('DnsHandler')
class Host(Sequence):
from pymin.service.util import Restorable, ConfigWriter, ServiceHandler, \
TransactionalHandler, ListSubHandler
-__all__ = ('FirewallHandler', 'get_service')
-
-
-def get_service(config):
- return FirewallHandler(config.firewall.pickle_dir, config.firewall.config_dir)
+__all__ = ('FirewallHandler')
class UpOneOf(OneOf):
DictComposedSubHandler, ListSubHandler, \
Device, Address, ExecutionError
-__all__ = ('IpHandler', 'get_service')
-
-
-def get_service(config):
- return IpHandler(config.ip.pickle_dir, config.ip.config_dir)
+__all__ = ('IpHandler')
class Hop(Sequence):
ReloadHandler, TransactionalHandler, \
ServiceHandler, ListSubHandler, call
-__all__ = ('NatHandler', 'get_service')
-
-
-def get_service(config):
- return NatHandler(config.nat.pickle_dir)
+__all__ = ('NatHandler')
class PortForward(Sequence):
from pymin.service.util import Restorable, ConfigWriter, ReloadHandler, \
TransactionalHandler, DictSubHandler, call
-__all__ = ('PppHandler', 'get_service')
-
-
-def get_service(config):
- return PppHandler(config.ppp.pickle_dir, config.ppp.config_dir)
+__all__ = ('PppHandler')
class ConnectionError(HandlerError, KeyError):
TransactionalHandler, ParametersHandler, \
DictSubHandler
-__all__ = ('ProxyHandler', 'get_service')
-
-
-def get_service(config):
- return ProxyHandler(config.proxy.pickle_dir, config.proxy.config_dir)
+__all__ = ('ProxyHandler')
class Host(Sequence):
get_network_devices, ListComposedSubHandler, \
DictComposedSubHandler, ExecutionError
-__all__ = ('QoSHandler', 'get_service')
-
-
-def get_service(config):
- return QoSHandler(config.qos.pickle_dir, config.qos.config_dir)
+__all__ = ('QoSHandler')
class DeviceError(HandlerError):
from pymin.service.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)
+__all__ = ('VpnHandler')
class Host(Sequence):
ReloadHandler, RestartHandler, \
ServiceHandler, ParametersHandler
-__all__ = ('VrrpHandler', 'get_service')
-
-
-def get_service(config):
- return VrrpHandler(config.vrrp.pickle_dir, config.vrrp.config_dir)
+__all__ = ('VrrpHandler')
# FIXME the the command should not use new parameters unless commit where called