Move protection service
This moves the protection service code to a new subdirectory called 'services' this is so that all the services are neatly structured in the file system hierarchy. This code should have no functional differences from the original code. All code changes are only to facilitate this move. Change-Id: If6e30250b34ffcbaa9a8458e679d5bc93dbecc73
This commit is contained in:
parent
cc1272d975
commit
a1a0bbba77
|
@ -59,7 +59,7 @@ global_opts = [
|
|||
default='smaug-protection',
|
||||
help='The topic that protection nodes listen on'),
|
||||
cfg.StrOpt('protection_manager',
|
||||
default='smaug.protection.manager.ProtectionManager',
|
||||
default='smaug.services.protection.manager.ProtectionManager',
|
||||
help='Full class name for the Manager for Protection'),
|
||||
cfg.StrOpt('host',
|
||||
default=socket.gethostname(),
|
||||
|
|
|
@ -19,7 +19,7 @@ from oslo_log import log as logging
|
|||
import oslo_messaging as messaging
|
||||
|
||||
from smaug import manager
|
||||
from smaug.protection import api as protection_api
|
||||
from smaug.services.protection import api as protection_api
|
||||
|
||||
CONF = cfg.CONF
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ from oslo_config import cfg
|
|||
from oslo_log import log as logging
|
||||
|
||||
from smaug.db import base
|
||||
from smaug.protection import rpcapi as protection_rpcapi
|
||||
from smaug.services.protection import rpcapi as protection_rpcapi
|
||||
|
||||
|
||||
CONF = cfg.CONF
|
|
@ -46,7 +46,7 @@ class ProtectionManager(manager.Manager):
|
|||
super(ProtectionManager, self).__init__(*args, **kwargs)
|
||||
# TODO(wangliuan) more params and use profiler.trace_cls
|
||||
self.provider_registry = importutils.import_object(
|
||||
'smaug.protection.provider.ProviderRegistry')
|
||||
'smaug.services.protection.provider.ProviderRegistry')
|
||||
self.flow_engine = None
|
||||
# TODO(wangliuan)
|
||||
|
|
@ -11,7 +11,7 @@
|
|||
# under the License.
|
||||
|
||||
|
||||
from smaug.protection import manager
|
||||
from smaug.services.protection import manager
|
||||
from smaug.tests import base
|
||||
from smaug.tests.unit.protection import fakes
|
||||
|
||||
|
|
Loading…
Reference in New Issue