[TF] Fix tearDownClass in case of TungstenFabric

Related-PROD: PRODX-28985
Change-Id: I1f8ac0ed267c3c1f8d7f4de2f2e1ace5d78b37f5
diff --git a/octavia_tempest_plugin/tests/scenario/v2/test_listener.py b/octavia_tempest_plugin/tests/scenario/v2/test_listener.py
index 8e77db7..8ad3218 100644
--- a/octavia_tempest_plugin/tests/scenario/v2/test_listener.py
+++ b/octavia_tempest_plugin/tests/scenario/v2/test_listener.py
@@ -90,6 +90,10 @@
         pool1 = cls.mem_pool_client.create_pool(**pool1_kwargs)
         pool1_id = pool1[const.ID]
 
+        if CONF.load_balancer.provider == 'tungstenfabric':
+            cls.addCleanup(
+                cls.mem_pool_client.cleanup_pool, pool1_id,
+                lb_client=cls.mem_lb_client, lb_id=cls.lb_id)
         waiters.wait_for_status(cls.mem_lb_client.show_loadbalancer,
                                 cls.lb_id, const.PROVISIONING_STATUS,
                                 const.ACTIVE,
@@ -118,6 +122,10 @@
         pool2 = cls.mem_pool_client.create_pool(**pool2_kwargs)
         pool2_id = pool2[const.ID]
 
+        if CONF.load_balancer.provider == 'tungstenfabric':
+            cls.addCleanup(
+                cls.mem_pool_client.cleanup_pool, pool2_id,
+                lb_client=cls.mem_lb_client, lb_id=cls.lb_id)
         waiters.wait_for_status(cls.mem_lb_client.show_loadbalancer,
                                 cls.lb_id, const.PROVISIONING_STATUS,
                                 const.ACTIVE,