This is adding new API for the dhcp driver to clean stale
devices. Previously it was not necessary since a dhcp port was related
to a nemaspace and when the namespace got deleted, the device was also
removed.
Now with multisegments we can have more than one dhcp port per
namespace based on segmenation id so we should ensure to remove the
stale device.
Reviewed: https:/ /review. opendev. org/c/openstack /neutron/ +/840420 /opendev. org/openstack/ neutron/ commit/ cb332acb29ec0bc 836637098b42ab8 692369c6ac
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit cb332acb29ec0bc 836637098b42ab8 692369c6ac
Author: Sahid Orentino Ferdjaoui <email address hidden>
Date: Fri Apr 29 17:28:03 2022 +0200
dhcp: add/use cleanup stale devices API
This is adding new API for the dhcp driver to clean stale
devices. Previously it was not necessary since a dhcp port was related
to a nemaspace and when the namespace got deleted, the device was also
removed.
Now with multisegments we can have more than one dhcp port per
namespace based on segmenation id so we should ensure to remove the
stale device.
Partial-Bug: #1956435 b914bc6fd121d68 e20278230b5
Partial-Bug: #1764738
Signed-off-by: Sahid Orentino Ferdjaoui <email address hidden>
Change-Id: I4a46b034a5feab