neutron/neutron/api
Rodolfo Alonso Hernandez a1495378e3 Improve the SG RPC callback ``security_group_info_for_ports``
This method populates the SG rules in a dictionary. Each SG rule
inherits the "stateful" value of the SG. Prior to this patch, each
SG rule was isuing a database call to retrieve the SG register.

In this patch, the SG "stateful" retrieval is done in one database
query for all SG. That improves the performance of this method
reducing the database access to only one single call.

This improvement, as commented in the LP bug, affects to
ML2/LinuxBridge. ML2/OVS agent uses a cached RPC implementation
that not requires to perform any RPC call/database query.

Conflicts:
    neutron/objects/securitygroup.py

Closes-Bug: #2045950
Change-Id: Iafd0419a1d1eeb25d5589edc2570ebf287450957
(cherry picked from commit 6b6abb9698)
(cherry picked from commit 7ac9edac80)
2023-12-21 22:39:56 +00:00
..
rpc Improve the SG RPC callback ``security_group_info_for_ports`` 2023-12-21 22:39:56 +00:00
v2 Log exception generated in Controller.prepare_request_body 2020-08-18 16:18:34 -03:00
views Add a new configuration variable for api links. 2017-04-18 15:16:41 +00:00
__init__.py Added API extensions to detect sorting/pagination features 2016-08-01 22:57:15 +02:00
api_common.py Remove "six" library 2020-07-28 16:55:52 +00:00
extensions.py Don't use singleton in routes.middleware.RoutesMiddleware 2021-09-07 06:09:10 +00:00