]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Reduce db calls count in get_devices_details_list
authorSergey Belous <sbelous@mirantis.com>
Mon, 9 Feb 2015 16:38:05 +0000 (19:38 +0300)
committerSergey Belous <sbelous@mirantis.com>
Fri, 13 Mar 2015 15:32:20 +0000 (18:32 +0300)
commit65efa1bdb8c991c68803ba0ff928577a46bc8fcd
tree3da06d64c343cff5aa3785ce4e75a5b3b3028e68
parentc6e54613d96f5e9c11b405750e372e4cf4f429dc
Reduce db calls count in get_devices_details_list

Each Neutron agent will impose db calls to Neutron Server
to query devices, port and networks.
Network caching is added to reduce the number
of db calls on get_devices_details_list.
Added unit tests for the check caching.

Change-Id: I933dfe9b020b15b39bc932e62d599c5d654347e1
Closes-Bug: #1370361
neutron/plugins/ml2/plugin.py
neutron/plugins/ml2/rpc.py
neutron/tests/unit/ml2/test_port_binding.py
neutron/tests/unit/ml2/test_rpcapi.py