neutron/neutron
Yuki Nishiwaki b803195a99 Dont use dict.get() to know certain key is in dict
In CommonAgentLoop class, there is logic to detect tap device is changed
locally or not by comparing timestamp with previous.
Sometimes timestamp value could be None depending on the timing (see bug/1781129)

But current _get_devices_locally_modified logic can not detect local
change from None to something because _get_devices_locally_modified
function don't always compare if previous timestamp value was None.

In order not to miss updated device always, better not to use dict.get() to
know previous iteration have timestamp or not.

Change-Id: Ib0361ad5c281f88558e8e048cfec588b9f9b1de4
Closes-Bug: #1781129
2018-07-25 16:08:42 +09:00
..
agent Merge "Pass network's dns_domain to dnsmasq conf" 2018-07-02 16:53:43 +00:00
api Merge "Fix lack of routes for neighbour IPv4 subnets" 2018-05-21 22:29:15 +00:00
cmd Fix exception in neutron-sanity-check 2018-06-13 18:21:14 +00:00
common use make_weak_ref and resolve_ref from neutron-lib 2018-06-11 11:10:53 -06:00
conf Merge "[OVS] Add mac-table-size to be set on each ovs bridge" 2018-06-13 23:22:25 +00:00
core_extensions use qos constants from neutron-lib 2017-10-26 19:57:19 +00:00
db Merge "Allow sub-resources to have standard attributes" 2018-07-10 04:28:08 +00:00
debug Fix all pep8 E265 errors 2018-04-30 16:35:52 -04:00
extensions Allow sub-resources to have standard attributes 2018-07-04 20:52:37 +00:00
hacking hacking: Remove dead code 2017-07-19 13:43:44 +02:00
ipam Fix W503 pep8 warnings 2018-04-17 14:22:58 +00:00
locale Imported Translations from Zanata 2018-03-03 06:08:46 +00:00
notifiers Fix W503 pep8 warnings 2018-04-17 14:22:58 +00:00
objects objects: don't refetch a non-list object field if it's None 2018-06-25 15:23:10 +07:00
pecan_wsgi Fix all pep8 E129 errors 2018-05-03 13:44:04 +09:00
plugins Dont use dict.get() to know certain key is in dict 2018-07-25 16:08:42 +09:00
privileged python3: fix netlink_lib delete_entries 2018-06-29 00:30:19 +02:00
quota Fix all pep8 E129 errors 2018-05-03 13:44:04 +09:00
scheduler Fix all pep8 E129 errors 2018-05-03 13:44:04 +09:00
server Make code follow log translation guideline 2017-08-14 02:01:48 +00:00
services use db utils from lib 2018-07-02 08:24:36 -06:00
tests Dont use dict.get() to know certain key is in dict 2018-07-25 16:08:42 +09:00
__init__.py
_i18n.py Make code follow log translation guideline 2017-08-14 02:01:48 +00:00
auth.py Use oslo.context class method to construct context object 2017-03-23 09:02:46 +00:00
manager.py Fix all pep8 E129 errors 2018-05-03 13:44:04 +09:00
neutron_plugin_base_v2.py Do not load default service plugins if core plugin is not DB based 2017-11-09 20:34:52 +00:00
opts.py Merge "Remove deprecated cache_url" 2018-01-03 06:35:59 +00:00
policy.py consume neutron-lib resources attr map 2018-03-09 13:37:28 -07:00
service.py Enable mutable config in Neutron 2018-03-21 20:35:19 +00:00
version.py
worker.py replace WorkerSupportServiceMixin with neutron-lib's WorkerBase 2017-06-14 06:56:48 -06:00
wsgi.py Fix all pep8 E265 errors 2018-04-30 16:35:52 -04:00