]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Call on dhcp-agent DhcpLocalProcess.restart() breaks dhcp
authorMiguel Angel Ajo <mangelajo@redhat.com>
Thu, 15 Jan 2015 00:23:29 +0000 (00:23 +0000)
committerMiguel Angel Ajo <mangelajo@redhat.com>
Thu, 15 Jan 2015 00:23:29 +0000 (00:23 +0000)
commit718b2950616fc748881f9f644bc7000961886c65
tree5f87272f57a9eba95ed1f05d8491f4690018edf0
parent4e5952ce34f0a7690f528d07a67f8831d4442deb
Call on dhcp-agent DhcpLocalProcess.restart() breaks dhcp

The bugfix implemented on Ib37651f7f802debd472ab292b148c2a2496063a3
creates the network_conf_dir only during __init__, and restart()
method calls disable(), then enable(), where disable will remove
the config directory and all configuration files.

Previous implementation re-created the network_conf_dir on the
interface_name setter (called from enable) with ensure_conf_dir=True.

Change-Id: I6afaea062c9eed5c63fc64fb0113f460b2cf35c5
Closes-Bug: 1410982
neutron/agent/linux/dhcp.py
neutron/tests/unit/test_linux_dhcp.py