From 69f30c92ef595f1bfc57208f88c4c1c5a555f55c Mon Sep 17 00:00:00 2001 From: Rodolfo Alonso Hernandez Date: Thu, 13 Apr 2023 14:49:09 +0200 Subject: [PATCH] [sqlalchemy-20] Add reader context to ``get_ports_on_host_by_subnet`` Closes-Bug: #2016142 Change-Id: Iba7ff50efc8f6d027fe9151fc64f547aa421b995 --- neutron/db/dvr_mac_db.py | 1 + 1 file changed, 1 insertion(+) diff --git a/neutron/db/dvr_mac_db.py b/neutron/db/dvr_mac_db.py index 68ec42ae597..4f69ffd995d 100644 --- a/neutron/db/dvr_mac_db.py +++ b/neutron/db/dvr_mac_db.py @@ -157,6 +157,7 @@ class DVRDbMixin(ext_dvr.DVRMacAddressPluginBase): @log_helpers.log_method_call @db_api.retry_if_session_inactive() + @db_api.CONTEXT_READER def get_ports_on_host_by_subnet(self, context, host, subnet): """Returns DVR serviced ports on a given subnet in the input host