neutron/neutron/tests/unit
Slawek Kaplonski 10c981512a Fix update of ports cache in router_info class
RouterInfo class has got internal_ports cache which is updated
in _process_internal_ports() method.
There was an issue in this updates logic because it was
iterating through enumerate local variable "internal_ports"
which represents current router ports and if such current port
was found in updated_ports list it was storred in
RouterInfo().internal_ports variable under same index as was
found in "internal_ports" local variable.
This sometimes leads to an issue because same port can be
stored under different index in internal_ports and
RouterInfo().internal_ports lists thus wrong port in
RouterInfo().internal_ports was overwritten.

Such issue leads to problem with generating radvd config file
because in ports cache list there was duplicate info about same port
so radvd config file contained duplicate interface definitions too.

This should be properly fixed by changing RouterInfo.internal_ports
to be a dict instead of list of ports but such patch would be much
bigger and (possibly) harded to backport to stable branches.

Change-Id: I2e38457942518c8a3e07e606091bb6720317b77e
Closes-Bug: #1813279
(cherry picked from commit 21cddc47b4)
2019-02-09 15:18:57 +00:00
..
agent Fix update of ports cache in router_info class 2019-02-09 15:18:57 +00:00
api Revert "DVR: Inter Tenant Traffic between networks not possible with shared net" 2018-10-19 10:15:35 +02:00
cmd More efficiently clean up OVS ports 2018-01-25 15:29:49 +00:00
common Allow Ipv6 addresses for nova_metadata_host 2018-10-25 14:34:07 +00:00
conf/agent Agent common config 2017-03-15 09:52:18 -06:00
core_extensions Fix default qos policy when creating network 2017-08-24 14:35:38 +00:00
db Fix performance regression adding rules to security groups 2019-02-01 21:10:21 -07:00
debug use neutron_lib's portbindings api-def 2017-03-31 09:16:22 -06:00
extensions Fix performance regression adding rules to security groups 2019-02-01 21:10:21 -07:00
hacking Use flake8-import-order plugin 2017-07-05 03:15:27 +00:00
ipam New enginefacade for networks, subnets. 2017-03-30 01:26:45 -07:00
notifiers use service type constants from neutron_lib plugins 2017-06-27 15:16:05 -06:00
objects Fix Port OVO filtering based on security groups 2018-06-08 13:25:16 +00:00
plugins Do state report after setting start_flag on OVS restart 2018-12-20 11:00:41 +00:00
privileged Add netlink-lib to manage conntrack entries 2017-07-27 13:56:40 +07:00
quota CountableResource: try count/get functions for all plugins 2017-09-12 16:23:22 +00:00
scheduler Merge "DVR: Centralized FloatingIPs are not cleared after migration." into stable/pike 2018-11-21 02:00:06 +00:00
services Do not delete trunk bridges if service port attached 2018-12-17 12:19:38 +00:00
tests Replaced assertTrue(False) with fail() 2017-06-22 19:31:00 +02:00
__init__.py Don't set use_stderr to False for tests 2017-04-15 01:41:29 +00:00
_test_extension_portbindings.py use neutron_lib's portbindings api-def 2017-03-31 09:16:22 -06:00
dummy_plugin.py Consume ServicePluginBase from neutron-lib 2017-03-17 12:06:57 -06:00
extension_stubs.py Consume ServicePluginBase from neutron-lib 2017-03-17 12:06:57 -06:00
test_auth.py Use oslo.context class method to construct context object 2017-03-23 09:02:46 +00:00
test_manager.py use service type constants from neutron_lib plugins 2017-06-27 15:16:05 -06:00
test_opts.py Fix the sriov agent config group name 2016-05-05 16:16:08 +08:00
test_policy.py Remove neutron-fwaas specific policies 2017-07-16 17:56:25 +00:00
test_service.py use neutron-lib.callback.events.AFTER_SPAWN 2017-07-27 05:57:34 +00:00
test_worker.py Move AgentStatusCheckWorker to PeriodicWorker 2016-11-17 15:31:19 -08:00
test_wsgi.py Pass parameters when create eventlet.wsgi server 2017-03-17 14:14:25 +08:00
testlib_api.py API compare-and-swap updates based on revision_number 2017-06-29 22:50:12 +00:00