services = 'firewall nat ppp vpn ip dns dhcp proxy vrrp qos'.split()
-services_dirs = ['pymin/services']
+services_dirs = ['services']
import cPickle as pickle
except ImportError:
import pickle
-import logging ; log = logging.getLogger('pymin.services.util')
+import logging ; log = logging.getLogger('pymin.service.util')
from pymin.dispatcher import Handler, handler, HandlerError, \
CommandNotFoundError
import sys
from pymin.pymindaemon import PyminDaemon
from pymin.dispatcher import Handler
-from pymin.services import load_service, LoadError
+from pymin.service import load_service, LoadError
import config
class Root(Handler):
from pymin.seqtools import Sequence
from pymin.dispatcher import Handler, handler, HandlerError
-from pymin.services.util import Restorable, ConfigWriter, InitdHandler, \
- TransactionalHandler, ParametersHandler, \
- DictSubHandler, ReloadHandler
+from pymin.service.util import Restorable, ConfigWriter, InitdHandler, \
+ TransactionalHandler, ParametersHandler, \
+ DictSubHandler, ReloadHandler
__all__ = ('DhcpHandler', 'get_service')
from pymin.seqtools import Sequence
from pymin.dispatcher import handler, HandlerError, Handler
-from pymin.services.util import Restorable, ConfigWriter, InitdHandler, \
- TransactionalHandler, ParametersHandler, \
- DictComposedSubHandler, DictSubHandler, call
+from pymin.service.util import Restorable, ConfigWriter, InitdHandler, \
+ TransactionalHandler, ParametersHandler, \
+ DictComposedSubHandler, DictSubHandler, call
__all__ = ('DnsHandler', 'get_service')
from pymin.item import Item
from pymin.validatedclass import Field
from pymin.dispatcher import Handler, handler, HandlerError
-from pymin.services.util import Restorable, ConfigWriter, ServiceHandler, \
- TransactionalHandler, ListSubHandler
+from pymin.service.util import Restorable, ConfigWriter, ServiceHandler, \
+ TransactionalHandler, ListSubHandler
__all__ = ('FirewallHandler', 'get_service')
from pymin.seqtools import Sequence
from pymin.dispatcher import handler, HandlerError, Handler
-from pymin.services.util import Restorable, ConfigWriter, InitdHandler, \
- TransactionalHandler, SubHandler, call, \
- get_network_devices, ListComposedSubHandler, \
- DictComposedSubHandler, ListSubHandler, \
- Device, Address, ExecutionError
+from pymin.service.util import Restorable, ConfigWriter, InitdHandler, \
+ TransactionalHandler, SubHandler, call, \
+ get_network_devices, ListComposedSubHandler, \
+ DictComposedSubHandler, ListSubHandler, \
+ Device, Address, ExecutionError
__all__ = ('IpHandler', 'get_service')
from pymin.seqtools import Sequence
from pymin.dispatcher import Handler, handler, HandlerError
-from pymin.services.util import Restorable, ConfigWriter, RestartHandler, \
- ReloadHandler, TransactionalHandler, \
- ServiceHandler, ListSubHandler, call
+from pymin.service.util import Restorable, ConfigWriter, RestartHandler, \
+ ReloadHandler, TransactionalHandler, \
+ ServiceHandler, ListSubHandler, call
__all__ = ('NatHandler', 'get_service')
from pymin.seqtools import Sequence
from pymin.dispatcher import Handler, handler, HandlerError
-from pymin.services.util import Restorable, ConfigWriter, ReloadHandler, \
- TransactionalHandler, DictSubHandler, call
+from pymin.service.util import Restorable, ConfigWriter, ReloadHandler, \
+ TransactionalHandler, DictSubHandler, call
__all__ = ('PppHandler', 'get_service')
from pymin.seqtools import Sequence
from pymin.dispatcher import Handler, handler, HandlerError
-from pymin.services.util import Restorable, ConfigWriter, InitdHandler, \
- TransactionalHandler, ParametersHandler, \
- DictSubHandler
+from pymin.service.util import Restorable, ConfigWriter, InitdHandler, \
+ TransactionalHandler, ParametersHandler, \
+ DictSubHandler
import crypt
from pymin.seqtools import Sequence
from pymin.dispatcher import handler, HandlerError, Handler
-from pymin.services.util import Restorable, ConfigWriter, InitdHandler, \
- TransactionalHandler, SubHandler, call, \
- get_network_devices, ListComposedSubHandler, \
- DictComposedSubHandler, ExecutionError
+from pymin.service.util import Restorable, ConfigWriter, InitdHandler, \
+ TransactionalHandler, SubHandler, call, \
+ get_network_devices, ListComposedSubHandler, \
+ DictComposedSubHandler, ExecutionError
__all__ = ('QoSHandler', 'get_service')
from pymin.seqtools import Sequence
from pymin.dispatcher import Handler, handler, HandlerError
-from pymin.services.util import Restorable, ConfigWriter, InitdHandler, \
- TransactionalHandler, DictSubHandler, DictComposedSubHandler, call, ExecutionError
-
+from pymin.service.util import Restorable, ConfigWriter, InitdHandler, \
+ TransactionalHandler, DictSubHandler, DictComposedSubHandler, call, ExecutionError
__all__ = ('VpnHandler', 'get_service')
# vim: set encoding=utf-8 et sw=4 sts=4 :
from pymin import procman
-from pymin.services.util import Restorable, TransactionalHandler, \
- ReloadHandler, RestartHandler, \
- ServiceHandler, ParametersHandler
+from pymin.service.util import Restorable, TransactionalHandler, \
+ ReloadHandler, RestartHandler, \
+ ServiceHandler, ParametersHandler
# Logger
import logging ; log = logging.getLogger('pymin.services.vrrp')