neutron/neutron/tests/unit/agent/linux
Rodolfo Alonso Hernandez 843eccb9ee Improve "OVSFirewallDriver.process_trusted_ports"
FirewallDriver.process_trusted_ports" is called with many ports,
"_initialize_egress_no_port_security" retrieves the VIF ports
("Interface" registers in OVS DB), one per iteration, based in the
port_id. Instead of this procedure, if the DB is called only once to
retrieve all the VIF ports, the performance increase is noticeable.
E.g.: bridge with 1000 ports and interfaces.

Retrieving 100 ports:
- Bulk operation: 0.08 secs
- Loop operation: 5.6 secs

Retrieving 1000 ports:
- Bulk operation: 0.08 secs
- Loop operation: 59 secs

Closes-Bug: #1836095
Related-Bug: #1836023

Change-Id: I5b259717c0fdb8991f1df86b1ef4fb8ad0f18e70
(cherry picked from commit ae1d36fa9d)
2020-01-31 10:34:56 +00:00
..
openvswitch_firewall Improve "OVSFirewallDriver.process_trusted_ports" 2020-01-31 10:34:56 +00:00
__init__.py Empty files should not contain copyright or license 2014-10-20 00:50:32 +00:00
failing_process.py Keep reading stdout/stderr until after kill 2015-11-19 19:14:13 +02:00
test_bridge_lib.py Change to use iproute2 instead of brctl 2018-11-14 12:46:37 -05:00
test_daemon.py remove neutron.common.exceptions 2019-02-01 14:35:00 -07:00
test_dhcp.py Check dnsmasq process is active when spawned 2019-11-14 11:23:56 +00:00
test_external_process.py Check dnsmasq process is active when spawned 2019-11-14 11:23:56 +00:00
test_interface.py Change agents to use get_devices_with_ip() 2019-02-05 18:30:01 +02:00
test_ip_conntrack.py Move conntrack zones to IPTablesFirewall 2017-03-30 14:54:51 -07:00
test_ip_lib.py Retrieve devices with link not present 2019-02-17 20:41:58 +00:00
test_ip_link_support.py sriov: implement spoofchecking configuration 2015-07-29 19:38:25 +02:00
test_ip_monitor.py Fix W605 warnings 2018-05-17 16:20:59 +09:00
test_ipset_manager.py Create ipset set_name_exists() method 2015-10-14 10:18:44 -04:00
test_iptables_firewall.py Better handle ports in security groups 2019-03-15 13:54:33 -04:00
test_iptables_manager.py remove neutron.common.exceptions 2019-02-01 14:35:00 -07:00
test_keepalived.py Fix pep8 E128 warnings in non-test code 2019-03-12 21:22:33 +00:00
test_l3_tc_lib.py remove neutron.common.exceptions 2019-02-01 14:35:00 -07:00
test_pd.py Fix pep8 E128 warnings in non-test code 2019-03-12 21:22:33 +00:00
test_tc_lib.py Merge "Fix a couple of bw burst calc unit tests for macs" 2019-03-11 12:08:59 +00:00
test_utils.py Fix race condition when getting cmdline 2019-11-20 15:13:37 +00:00
test_xenapi_root_helper.py Use os-xenapi for neutron when XenServer as hypervisor 2017-03-30 18:33:37 +00:00