When the DHCP port already exists, the code for finding it is
unhelpfully mixed up with the code for updating its subnet IDs and
fixed IP addresses. Clarify that area by splitting setup_dhcp_port
into 3 subroutines, for each of the existing, reserved and new port
cases.
Reviewed: https:/ /review. openstack. org/205181 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=43d62c62a85 25a1f2aa67b0ee2 01c09409fefa9a
Committed: https:/
Submitter: Jenkins
Branch: master
commit 43d62c62a8525a1 f2aa67b0ee201c0 9409fefa9a
Author: Neil Jerram <email address hidden>
Date: Thu Jul 23 18:17:12 2015 +0100
DHCP agent: clarify logic of setup_dhcp_port
When the DHCP port already exists, the code for finding it is
unhelpfully mixed up with the code for updating its subnet IDs and
fixed IP addresses. Clarify that area by splitting setup_dhcp_port
into 3 subroutines, for each of the existing, reserved and new port
cases.
Related-Bug: #1486649 299f4b7b4cd508d 9309bbe1209
Change-Id: I2a537560dc7a37