neutron/neutron/tests/unit
Hynek Mlnarik 8d29f38356 Cleanup stale OVS flows for physical bridges
Perform deletion of the stale flows in physical bridges consistently with
br-int and br-tun, respecting drop_flows_on_start configuration option.
Added tests for auxiliary bridge and functional tests for the physical
bridge using VLAN/flat external network. Fixes part of the bug 1514056;
together with [1] and [2], the bug should be considered fixed.

The commit also fixes inconsistency between netmask of allocated IP
addresses assigned in _create_test_port_dict and ip_len in _plug_ports
of base.py.

Further, this commit sets agent UUID to physical bridges similarly to
tun and int bridges. This is necessary for stale flows cleanup to work
correctly. In upstream, it is treated using OVSBridgeCookieMixin.

[1] https://review.openstack.org/#/c/297211/
[2] https://review.openstack.org/#/c/297818/

Conflicts:
	neutron/tests/functional/agent/l2/base.py
	neutron/tests/unit/plugins/ml2/drivers/openvswitch/agent/test_ovs_tunnel.py

Co-Authored-By: Jian Wen <wenjianhn@gmail.com>
Co-Authored-By: Clayton O'Neill <clayton@oneill.net>
Partial-Bug: 1514056
Change-Id: I9801b76829021c9a0e6358982e1136637634a521
(cherry picked from commit cacde308ee)
2016-04-28 14:22:57 -07:00
..
agent Merge "Delete metadata_proxy for network if it is not needed" into stable/liberty 2016-04-21 23:45:24 +00:00
api Protect 'show' and 'index' with Retry decorator 2016-02-05 11:41:37 +00:00
callbacks Improve callback registry devref documentation and usability 2015-08-12 10:15:07 -07:00
cmd Fix import path in neutron-sanity-check for ml2_sriov opts 2015-09-01 04:16:01 +00:00
common Add tests for RPC methods/classes 2016-02-26 15:46:54 +00:00
core_extensions QoS core extension: fixed dict extension when QoS policy is unset 2015-08-08 15:44:27 +02:00
db Merge "Fix branch order when upgrading to alembic milestone" into stable/liberty 2016-04-22 15:05:02 +00:00
debug Reorganize unit test tree 2015-04-06 23:28:31 +00:00
extensions Merge "Corrected wrong ethertype exception message" into stable/liberty 2016-04-22 14:17:31 +00:00
hacking Restructure agent code in preparation for decomp 2015-06-26 15:06:49 +00:00
ipam Change the exception type from ValueError to IpamValueInvalid 2016-03-24 12:51:48 +01:00
notifiers Add option for nova endpoint type 2016-03-23 09:35:13 +00:00
objects No network devices on network attached qos policies 2015-09-16 15:11:04 +02:00
plugins Cleanup stale OVS flows for physical bridges 2016-04-28 14:22:57 -07:00
quota Reduce the chance of random check/gate test failures 2015-09-09 14:45:16 -07:00
scheduler Merge "Move db query to fetch down bindings under try/except" into stable/liberty 2016-04-21 00:06:28 +00:00
services Switches metering agent to stateless iptables 2016-04-01 02:47:50 +00:00
tests Merge "Different approach to indicate failure on SystemExit" 2015-07-16 06:57:16 +00:00
__init__.py oslo: migrate to namespace-less import paths 2015-02-05 15:09:32 +01:00
_test_extension_portbindings.py Context: Remove logic for read_deleted and deprecate it 2015-06-09 13:50:03 -07:00
dummy_plugin.py Remove lingering traces of q_ 2015-07-07 17:04:44 -04:00
extension_stubs.py Remove get_namespace from API extensions 2015-06-15 09:17:32 -04:00
test_auth.py oslo: migrate to namespace-less import paths 2015-02-05 15:09:32 +01:00
test_context.py Support Unicode request_id on Python 3 2015-12-14 09:02:34 +01:00
test_manager.py Flavor Framework implementation 2015-07-16 09:07:41 -07:00
test_policy.py Raise RetryRequest on policy parent not found 2016-01-29 02:15:30 -07:00
test_service.py Refactor TestRpcWorker and TestWorkerService 2015-06-16 15:49:48 +03:00
test_wsgi.py Enable most unit tests for py34 job 2015-09-04 08:30:22 +00:00
testlib_api.py Improve fixture usage. 2015-07-01 14:53:48 +12:00