Kevin Benton 6161ea4d53 Batch ports from security groups RPC handler
The security groups RPC handler calls get_port_from_device
individually for each device in a list it receives. Each
one of these results in a separate SQL query for the security
groups and port details. This becomes very inefficient as the
number of devices on a single node increases.

This patch adds logic to the RPC handler to see if the core
plugin has a method to lookup all of the device IDs at once.
If so, it uses that method, otherwise it continues as normal.

The ML2 plugin is modified to include the batch function, which
uses one SQL query regardless of the number of devices.

Closes-Bug: #1374556
Change-Id: I15d19c22e8c44577db190309b6636a3251a9c66a
2014-10-28 21:04:30 -07:00
..
2014-06-21 15:07:31 +08:00
2013-07-06 15:02:43 -04:00
2014-04-01 10:38:31 -04:00
2014-10-24 15:18:49 +00:00
2014-10-24 15:18:49 +00:00