Use unified function to check for TF backend

Related-Prod: PRODX-37464
Change-Id: Icad71d674f1c3460729a6945393858986d5799da
diff --git a/tempest/api/network/admin/test_routers.py b/tempest/api/network/admin/test_routers.py
index 5c32ea4..8a0c28c 100644
--- a/tempest/api/network/admin/test_routers.py
+++ b/tempest/api/network/admin/test_routers.py
@@ -139,7 +139,7 @@
 
     def _verify_gateway_port(self, router_id):
         # Workaround for PRODX-8489
-        if CONF.get('sdn').get('service_name') == "tungstenfabric":
+        if config.is_tungstenfabric_backend_enabled():
             self._wait_for_ports(router_id)
         list_body = self.admin_ports_client.list_ports(
             network_id=CONF.network.public_network_id,
diff --git a/tempest/api/network/test_security_groups.py b/tempest/api/network/test_security_groups.py
index d8a2509..02ece09 100644
--- a/tempest/api/network/test_security_groups.py
+++ b/tempest/api/network/test_security_groups.py
@@ -191,7 +191,7 @@
         port_range_min = 77
         port_range_max = 77
 
-        if CONF.get('sdn').get('service_name') == "tungstenfabric":
+        if config.is_tungstenfabric_backend_enabled():
             if self.ethertype == 'IPv6':
                 remote_ip_prefix = '::/0'
             else:
@@ -228,7 +228,7 @@
         protocol = 'ipv6-icmp' if self._ip_version == 6 else 'icmp'
         icmp_type_codes = [(3, 2), (3, 0), (8, 0), (0, 0), (11, None)]
         for icmp_type, icmp_code in icmp_type_codes:
-            if CONF.get('sdn').get('service_name') == "tungstenfabric":
+            if config.is_tungstenfabric_backend_enabled():
                 if self.ethertype == 'IPv6':
                     remote_ip_prefix = '::/0'
                 else: