dhcp: ensure that cleaning DHCP process with one segment happens first
Previously, the code used to clean up old DHCP processes for a network
before creating new ones supporting multiple segments per network
could potentially not be executed first. Since disabling applies to
cleaning the namespace, this could have led to the network setup being
destroyed after being done.
This change moves the part that cleans up the old DHCP setup to ensure
it is executed first.
Reviewed: https:/ /review. opendev. org/c/openstack /neutron/ +/905617 /opendev. org/openstack/ neutron/ commit/ 5453c92a2e777b9 a41989cc21d6064 ffe4711e8d
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 5453c92a2e777b9 a41989cc21d6064 ffe4711e8d
Author: Sahid Orentino Ferdjaoui <email address hidden>
Date: Mon Jan 15 17:11:23 2024 +0100
dhcp: ensure that cleaning DHCP process with one segment happens first
Previously, the code used to clean up old DHCP processes for a network
before creating new ones supporting multiple segments per network
could potentially not be executed first. Since disabling applies to
cleaning the namespace, this could have led to the network setup being
destroyed after being done.
This change moves the part that cleans up the old DHCP setup to ensure
it is executed first.
Closes-bug: #2049615 9b9057d0708c5c8 8e159970039
Signed-off-by: Sahid Orentino Ferdjaoui <email address hidden>
Change-Id: Iecdb2d81ee077c