]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Batch db segment retrieval
authorKevin Benton <blak111@gmail.com>
Fri, 11 Dec 2015 18:55:38 +0000 (10:55 -0800)
committerKevin Benton <kevinbenton@buttewifi.com>
Mon, 14 Dec 2015 19:45:37 +0000 (19:45 +0000)
commit806e67538fbea49530aa0eedb75694cd8bad439d
treee37738914044887145a51722ca5ec7c423157dea
parent08bd35fa6f89911086877252e5d158db31f4ce21
Batch db segment retrieval

A net-list operation was calling extend_network_dict_provider for
each network individually which would result in a database call for
each network.

This adds a new call in the manager to extend multiple networks at
once and then it adds a bulk version of get_network_segments that
it calls.

Now 1 net list of any number of networks will only result in 1
segment DB call.

Change-Id: I2543b3bdbb178ee4bb8d1288e9a27af1c5c8c8b4
Closes-Bug: #1525423
Partial-Bug: #1513782
neutron/plugins/ml2/db.py
neutron/plugins/ml2/managers.py
neutron/plugins/ml2/plugin.py
neutron/tests/unit/plugins/ml2/test_db.py
neutron/tests/unit/plugins/ml2/test_plugin.py