From c958933fa023732200d96e12bb2a817389d6d9ac Mon Sep 17 00:00:00 2001 From: Miguel Lavalle Date: Mon, 26 Jun 2023 18:39:03 -0500 Subject: [PATCH] Add new callbacks event for resouce status update A new event AFTER_STATUS_UPDATE is added, that will be published to callbacks when a resource's status is updated in the DB. The first use of this new event is to indicate when the L3 DB layer has updated floating IPs status. Change-Id: I1a85d1af7b4f50a5319c64e47c52ccdaa345e362 Partial-Bug: #2020823 --- neutron_lib/callbacks/events.py | 1 + .../add-after-status-update-event-fafe4ad879c406b3.yaml | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 releasenotes/notes/add-after-status-update-event-fafe4ad879c406b3.yaml diff --git a/neutron_lib/callbacks/events.py b/neutron_lib/callbacks/events.py index a31ab0f7a..7f5d1ca0d 100644 --- a/neutron_lib/callbacks/events.py +++ b/neutron_lib/callbacks/events.py @@ -26,6 +26,7 @@ AFTER_CREATE = 'after_create' AFTER_READ = 'after_read' AFTER_UPDATE = 'after_update' AFTER_DELETE = 'after_delete' +AFTER_STATUS_UPDATE = 'after_status_update' # String literals representing events associated to API operations BEFORE_RESPONSE = 'before_response' diff --git a/releasenotes/notes/add-after-status-update-event-fafe4ad879c406b3.yaml b/releasenotes/notes/add-after-status-update-event-fafe4ad879c406b3.yaml new file mode 100644 index 000000000..7a54c4323 --- /dev/null +++ b/releasenotes/notes/add-after-status-update-event-fafe4ad879c406b3.yaml @@ -0,0 +1,5 @@ +--- +features: + - A new ``AFTER_STATUS_UPDATE`` event is added. The first use case of this + new event is to indicate when the L3 DB layer has updated floating IPs + status.