neutron/neutron/tests/unit
LIU Yulong 5fdfd4cbfc [L3] Check agent gateway port robustly
In patch [1] it introduced a binding of DB uniq constraint for L3
agent gateway. In some extreme case the DvrFipGatewayPortAgentBinding
is in DB while the gateway port not. The current code path only checks
the binding existence which will pass a "None" port to the following
code path that results an AttributeError. This patch adds a simple check
for that gateway port, if it is not created, new one.

[1] https://review.opendev.org/#/c/702547/

Closes-Bug: #1883089
Change-Id: Ia90f2ee435b0a3476dbea028d3200cefe11e35e4
2020-06-20 03:09:12 +00:00
..
agent Merge "Fix iptables rules comments" 2020-06-08 23:17:50 +00:00
api Remove usage of six.text_type and six.string_type 2020-05-22 14:02:55 -04:00
cmd Merge "Limit ml2_vlan_allocations.vlan_id value in DB backend" 2020-06-09 23:37:42 +00:00
common Merge "ovn: Remove is_port_groups_supported() code" 2020-06-10 17:09:23 +00:00
conf/agent Agent common config 2017-03-15 09:52:18 -06:00
core_extensions Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
db [L3] Check agent gateway port robustly 2020-06-20 03:09:12 +00:00
debug Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
extensions Merge "Delete segment RPs when network is deleted" 2020-05-26 16:21:46 +00:00
hacking Catch additional invalid mock import statement 2020-05-19 17:25:33 -04:00
ipam Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
notifiers Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
objects Merge "Optimize QoS bound objects queries" 2020-05-18 10:20:20 +00:00
pecan_wsgi Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
plugins Merge "[OVN] Create localnet port for each created segment" 2020-06-11 21:02:59 +00:00
privileged Use pyroute2 for SRIOV VF commands 2020-05-27 16:58:02 +00:00
quota Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
scheduler Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
services Refactor assertEqual statement that includes 'True' 2020-06-17 09:36:42 -05:00
tests Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
__init__.py Don't set use_stderr to False for tests 2017-04-15 01:41:29 +00:00
_test_extension_portbindings.py Remove the unit test 'test_ports_vnic_type_list' 2018-06-15 15:12:10 +00:00
dummy_plugin.py Remove Neutron LBaaS 2019-09-20 07:46:06 +00:00
extension_stubs.py Consume ServicePluginBase from neutron-lib 2017-03-17 12:06:57 -06:00
fake_resources.py Merge "[OVN] Create localnet port for each created segment" 2020-06-11 21:02:59 +00:00
test_auth.py Fix context deprecation warnings 2018-02-13 15:02:49 -05: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 Add unit test to validate non DB base core plugin can be loaded 2017-11-15 21:21:35 +00:00
test_opts.py Fix the sriov agent config group name 2016-05-05 16:16:08 +08:00
test_policy.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04: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 Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
testlib_api.py Remove usage of six.text_type and six.string_type 2020-05-22 14:02:55 -04:00