neutron/neutron/tests/unit
Armando Migliaccio 877778ee4c Move DHCP notification logic out of API controller
Bug 1591766 unveiled an issue where calling the plugin API does not trigger
DHCP notifications. This is required by the auto-allocated-topology service
plugin that calls core_plugin.update_network(), and expect notifications
to be sent out on state changes. To accomplish this, the logic has been
encapsulated in the DHCP module, and leveraged via callback mechanisms.

For this reason, new events have been introduced, AFTER_REQUEST, and
BEFORE_RESPONSE. The latter in particular is the one needed to hook up
dhcp notifications in order to preserve backward compatibility.

More precisely, core plugins that use DHCP as is or implement their own,
(with or without an agent) should already instantiate their own notifier,
and if they do not, this should be rectified.

A search on codesearch.openstack.org reveals that out-of-tree plugins
already specify their own notifiers, and the default initialization is
clearly redundant now.

Related-bug: #1591766

Change-Id: I7440becb6d30af7159ecaeba09d7a28eceb71bea
2016-06-24 00:41:20 -07:00
..
agent Mark port as ready after enabling dhcp at agent 2016-06-16 06:20:28 +00:00
api Move DHCP notification logic out of API controller 2016-06-24 00:41:20 -07:00
callbacks Allow self-unsubscribing callbacks 2016-06-11 08:26:10 -07:00
cmd Make netns_cleanup to purge resources of selected agent only 2016-02-11 12:19:26 +03:00
common Switch to oslo.cache 2016-06-02 15:22:36 +00:00
core_extensions Respond negatively to tenant detachment of enforced QoS policies 2016-05-16 21:54:15 +00:00
db Move DHCP notification logic out of API controller 2016-06-24 00:41:20 -07:00
debug tests: stop validating neutronclient in neutron-debug tests 2016-01-14 06:46:45 +00:00
extensions Move DHCP notification logic out of API controller 2016-06-24 00:41:20 -07:00
hacking Use unittest2 uniformly across Neutron 2016-05-23 13:13:17 +00:00
ipam Make pep8 job great again 2016-06-21 16:23:51 +00:00
notifiers Use constants from neutron-lib 2016-04-23 21:23:56 -04:00
objects Make pep8 job great again 2016-06-21 16:23:51 +00:00
plugins tests: clean up designate client session mock on test exit 2016-06-20 07:49:14 +00:00
quota Fix module's import order 2016-01-22 06:38:42 -08:00
scheduler Make pep8 job great again 2016-06-21 16:23:51 +00:00
services Guard against config_dirs not defined on ConfigOpts 2016-05-31 17:01:53 +02:00
tests Use neutron-lib constants 2016-06-13 14:02:35 +00:00
__init__.py Avoid eventlet monkey patching for the tempest plugin 2016-04-29 22:47:24 -05:00
_test_extension_portbindings.py Fix module's import order 2016-01-22 06:38:42 -08:00
dummy_plugin.py Make service plugins' get_plugin_type classmethods 2016-06-07 15:33:07 -05:00
extension_stubs.py Add a description field to all standard resources 2016-03-05 02:29:35 +00:00
test_auth.py Fix params order in assertEqual 2016-01-13 18:24:04 +05:30
test_context.py Support Unicode request_id on Python 3 2015-11-27 16:21:16 +01:00
test_manager.py Add the ability to load a set of service plugins on startup 2016-02-10 10:04:15 -06:00
test_opts.py Fix the sriov agent config group name 2016-05-05 16:16:08 +08:00
test_policy.py Use constants from neutron-lib 2016-04-23 21:23:56 -04:00
test_service.py Refactor TestRpcWorker and TestWorkerService 2015-06-16 15:49:48 +03:00
test_wsgi.py Use exceptions from neutron-lib 2016-04-21 21:29:44 -04:00
testlib_api.py Improve fixture usage. 2015-07-01 14:53:48 +12:00