neutron/neutron/tests/unit/plugins/ml2/drivers/agent
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
..
__init__.py lb: ml2-agt: Separate AgentLoop from LinuxBridge specific impl 2016-01-28 11:00:43 +01:00
test__agent_manager_base.py Remove security_groups_provider_updated rpc code 2017-09-22 12:44:40 -04:00
test__common_agent.py Dont use dict.get() to know certain key is in dict 2018-07-25 16:08:42 +09:00
test_capabilities.py unit test: unbreak test cases for callbacks.subscribe 2018-04-11 07:20:42 +00:00