From 95656a5893063a237f8941f6e63e233e9171a018 Mon Sep 17 00:00:00 2001 From: Nurmatov Mamatisa Date: Tue, 8 Jun 2021 12:18:44 +0300 Subject: [PATCH] Update handler for PORT AFTER_CREATE Updated handler for PORT AFTER_CREATE events to handle_payload_event method. Once we move over to payloads for all callbacks the shims will be removed. Closes-Bug: #1931220 Change-Id: I0adaed888d8c23e0d3a79380db70e8c709324a6d --- neutron/plugins/ml2/ovo_rpc.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/neutron/plugins/ml2/ovo_rpc.py b/neutron/plugins/ml2/ovo_rpc.py index 7db9332ccb9..c91e5b3468e 100644 --- a/neutron/plugins/ml2/ovo_rpc.py +++ b/neutron/plugins/ml2/ovo_rpc.py @@ -58,6 +58,8 @@ class _ObjectChangeHandler(object): # TODO(boden): remove shim below once all events use payloads if resource in self._PAYLOAD_RESOURCES: handler = self.handle_payload_event + if resource == resources.PORT and event == events.AFTER_CREATE: + handler = self.handle_payload_event registry.subscribe(handler, resource, event) def wait(self):