[sqlalchemy-20] Add reader context to ``get_ports_on_host_by_subnet``

Closes-Bug: #2016142
Change-Id: Iba7ff50efc8f6d027fe9151fc64f547aa421b995
This commit is contained in:
Rodolfo Alonso Hernandez 2023-04-13 14:49:09 +02:00
parent 4de993c25b
commit 69f30c92ef
1 changed files with 1 additions and 0 deletions

View File

@ -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