]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
fix DHCP port changed when dhcp-agent restart
authordql <duquanglong@gmail.com>
Mon, 9 Mar 2015 04:52:11 +0000 (12:52 +0800)
committerdql <duquanglong@gmail.com>
Wed, 20 May 2015 08:20:27 +0000 (16:20 +0800)
commit3d2543d710c7071ffeb5c9857ac30a4d95695a7b
treed400ba03d6eabb03fa5f9250e15eebce5561d8b2
parenta8f4358e3d5b3769f4d06ba438396d78e94e8eaf
fix DHCP port changed when dhcp-agent restart

When DHCP server is started, the periodic task is running
before loading cache state.The method port_update_end
need to use the cache information, but the cache information
has not been loaded.

Change-Id: I0d1da11bb559b7f0f9d4428b82573fb26916a933
Closes-Bug: #1420042
neutron/agent/dhcp/agent.py
neutron/tests/unit/agent/dhcp/test_agent.py