This change provides a way to save the dhcp port when failing over a network from one dhcp agent to another. When a dhcp-agent-network-remove is issued, the dhcp port device_id is marked as reserved which causes it to not be deleted. When a subsequent dhcp-agent-network-add is issued, the reserved port is used and the device_id is corrected. This is desirable in order to maintain the dhcp port ip address so that dns doesn't get impacted. Unit test added. Change-Id: I531d7ffab074b01adfe186d2c3df43ca978359cd Closes-Bug: #1288923
9.0 KiB
9.0 KiB