neutron/neutron/api
Kevin Benton 3d272b2201 Skip native DHCP notifications on status change
On profiling the get_devices_details communications between
the agent and the server, a significant amount of time
(60% in my dev env) is being spent in the AFTER_UPDATE events
for the port updates resulting from the port status changes.

One of the major offenders is the native DHCP agent notifier.
On each port update it ends up retrieving the network for the
port, the DHCP agents for the network, and the segments.

This patch addresses this particular issue by adding logic to
skip a DHCP notification if the only thing that changed on the
port was the status. The DHCP agent doesn't do anything based on
the status field so there is no need to update it when this is
the only change.

Change-Id: I948132924ec5021a9db78cf17efbba96b2500e8e
Partial-Bug: #1665215
(cherry picked from commit 840e04b6f1)
2017-02-18 13:24:25 +00:00
..
rpc Skip native DHCP notifications on status change 2017-02-18 13:24:25 +00:00
v2 Accept and return project_id for API calls 2016-09-12 19:23:53 +00:00
views Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
__init__.py Added API extensions to detect sorting/pagination features 2016-08-01 22:57:15 +02:00
api_common.py Add filter check for quering 2017-01-18 16:01:28 +00:00
extensions.py Broken extensions should not show up in the extension list 2016-08-12 18:20:46 +00:00
versions.py Pecan: Allow unauthenticated version listing 2016-03-11 16:45:28 -08:00