From 8233036bcd278e828257cec895f878948447252d Mon Sep 17 00:00:00 2001
From: Rodolfo Alonso Hernandez <ralonsoh@redhat.com>
Date: Mon, 9 Sep 2024 15:46:15 +0000
Subject: [PATCH] Make use of the utility method
 ``get_neutron_api_service_name``

Change-Id: Ibfd04fef4c9182614256bec52c349c28f5cd4e49
---
 .../tests/scenario/test_security_group_logging.py            | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/whitebox_neutron_tempest_plugin/tests/scenario/test_security_group_logging.py b/whitebox_neutron_tempest_plugin/tests/scenario/test_security_group_logging.py
index 2a6a24d..29c16c4 100644
--- a/whitebox_neutron_tempest_plugin/tests/scenario/test_security_group_logging.py
+++ b/whitebox_neutron_tempest_plugin/tests/scenario/test_security_group_logging.py
@@ -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