neutron/neutron/api/rpc/agentnotifiers
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
..
__init__.py Remove invalid copyright headers under API module 2014-04-02 11:09:03 -07:00
dhcp_rpc_agent_api.py Move DHCP notification logic out of API controller 2016-06-24 00:41:20 -07:00
l3_rpc_agent_api.py agentnotifiers: retried notifications refactor 2016-04-28 00:32:51 +03:00
metering_rpc_agent_api.py Use constants from neutron-lib 2016-04-23 21:23:56 -04:00
utils.py agentnotifiers: retried notifications refactor 2016-04-28 00:32:51 +03:00