neutron/neutron/tests/unit
Rodolfo Alonso Hernandez 29d5570ab3 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.

Closes-Bug: #2045950
Change-Id: Iafd0419a1d1eeb25d5589edc2570ebf287450957
(cherry picked from commit 6b6abb9698)
2023-12-21 19:49:55 +00:00
..
agent [DHCP agent] Fetch OVN Metadata port from plugin 2023-11-27 05:26:49 +00:00
api Delete sg rule which remote is the deleted sg 2023-07-04 12:23:36 +00:00
cmd Fix remaining typos in comments and tests 2022-07-06 21:20:27 +05:30
common Add constant to identify OVN LB HM ports 2023-11-21 09:47:01 +00:00
conf [S-RBAC] Fix policies for CUD subnets APIs 2023-06-22 14:35:41 +02:00
core_extensions Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
db Correctly validate subnet arguments when using a subnetpool 2023-12-08 14:42:14 +00:00
debug Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
extensions get_hosts_mapped_with_segments add filter agt_type 2023-11-24 08:42:26 +00:00
hacking Remove "six" library 2020-07-28 16:55:52 +00:00
ipam Remove exception `IpAddressAllocationNotFound` 2022-03-16 16:48:06 +00:00
notifiers Fix test_nova_send_events_* tests 2022-09-06 11:40:10 +02:00
objects Improve the SG RPC callback `security_group_info_for_ports` 2023-12-21 19:49:55 +00:00
pecan_wsgi Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
plugins Add constant to identify OVN LB HM ports 2023-11-21 09:47:01 +00:00
privileged Catch non-existent entry failures better in ip_lib 2023-11-15 22:07:19 +00:00
quota Replace "tenant_id" with "project_id" in Quota engine 2021-09-22 08:27:10 +00:00
scheduler Merge "Improve scheduling L3/DHCP agents, missing lower binding indexes" 2023-02-16 22:14:15 +00:00
services Use safer methods to get security groups on security group logging 2023-10-05 13:19:51 +02:00
tests Merge "Replace assertItemsEqual with assertCountEqual" 2021-04-26 19:12:38 +00:00
__init__.py
_test_extension_portbindings.py Deprecate 'allow_overlapping_ips' config option 2021-10-21 10:56:33 +00:00
dummy_plugin.py Remove Neutron LBaaS 2019-09-20 07:46:06 +00:00
extension_stubs.py
fake_resources.py [OVN] Disable the mcast_flood_reports option for LSPs 2023-08-28 09:45:55 +01:00
test_auth.py Fix deprecation warnings about oslo.context 2022-08-13 09:08:00 +00:00
test_manager.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_neutron_plugin_base_v2.py
test_opts.py Provide the rpc_response_max_timeout parameter to sriov-agent 2021-06-06 23:56:14 +09:00
test_policy.py Fix deprecation warnings about oslo.context 2022-08-13 09:08:00 +00:00
test_service.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_worker.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_wsgi.py Fix a deprecation warning about escape sequence 2022-08-13 19:03:19 +09:00
testlib_api.py Remove usage of six.text_type and six.string_type 2020-05-22 14:02:55 -04:00