Make use of the utility method `get_neutron_api_service_name`

Change-Id: Ibfd04fef4c9182614256bec52c349c28f5cd4e49
This commit is contained in:
Rodolfo Alonso Hernandez 2024-09-09 15:46:15 +00:00 committed by Rodolfo Alonso
parent e8aa6da10a
commit 8233036bcd

View File

@ -462,10 +462,7 @@ class BaseSecGroupLoggingTest(
value=rate_val)
# 5) restart neutron api on all controllers simultaneously
if not WB_CONF.openstack_type == 'podified':
if WB_CONF.openstack_type == 'devstack':
service_ptn = 'q svc'
else:
service_ptn = 'neutron api'
service_ptn = utils.get_neutron_api_service_name()
for node in self.nodes:
if node['is_controller']:
# NOTE(mblue): if reset fails on multinode, consider