neutron/neutron/cmd
Terry Wilson 7a97ad34d1 More efficiently clean up OVS ports
Previously, running neutron_ovs_cleanup on an installation with
5000 ports would time out even after setting the timeout to 3
hours. The code would do a bridge and port "by name" lookup for
every port due to being based off the ovs-vsctl implementation
where names are how everything is looked up. With this change,
the same test runs in ~1.5 mins.

This implementation adds a new OVSDB command that just looks up
the bridge, iterates over its ports, and deletes the ones that
should be deleted in a single transaction per bridge.

Conflicts:
	neutron/agent/ovsdb/impl_idl.py
	neutron/cmd/ovs_cleanup.py
	neutron/tests/unit/cmd/test_ovs_cleanup.py

Change-Id: I23c81813654596d61d8d930e0bfb0f016f91bc46
(cherry picked from commit fef374131b)
2018-01-29 08:15:55 -06:00
..
eventlet Adopt neutron-lib plugin directory 2016-11-23 04:45:33 -07:00
sanity Fix test_keepalived_ipv6_support for Keepalived v1.2.20 2017-08-24 10:34:17 +00:00
__init__.py Fix logging error for Guru Meditation Report 2016-02-08 16:52:17 -08:00
ipset_cleanup.py Make use of -w argument for iptables calls 2017-09-06 09:48:48 -07:00
keepalived_state_change.py Replace keepalived notifier bash script with Python ip monitor 2015-03-18 18:59:33 -04:00
linuxbridge_cleanup.py neutron-lib: start using neutron-lib helpers 2016-10-10 01:30:26 -07:00
netns_cleanup.py Ignore gre devices in namespaces when cleaning up devices 2017-06-14 16:19:14 +00:00
ovs_cleanup.py More efficiently clean up OVS ports 2018-01-29 08:15:55 -06:00
pd_notify.py neutron-lib: use replace_file from neutron lib 2016-11-07 09:18:41 +00:00
sanity_check.py sanity check: Check that ip_nonlocal_bind works with namespaces 2016-11-18 08:36:51 -05:00