[ONOS-7112] investigate SCPFswitchLat failure and fix the issue

Change-Id: Ia06c6f58602f5955ead9a108cf05dd0ca2aac2cc
diff --git a/TestON/tests/SCPF/SCPFswitchLat/SCPFswitchLat.py b/TestON/tests/SCPF/SCPFswitchLat/SCPFswitchLat.py
index fa168f6..4e230c0 100644
--- a/TestON/tests/SCPF/SCPFswitchLat/SCPFswitchLat.py
+++ b/TestON/tests/SCPF/SCPFswitchLat/SCPFswitchLat.py
@@ -170,13 +170,23 @@
                                                "up", resultDict, True )
                 main.switchFunc.captureOfPack( main, main.device, main.ofPackage,
                                                "down", resultDict, True )
+                main.log.warn( "Before devices : " + str( main.Cluster.active( 0 ).CLI.devices() ) )
                 main.Cluster.active( 0 ).CLI.removeDevice( "of:0000000000000001" )
+                main.log.warn( "After devices : " + str( main.Cluster.active( 0 ).CLI.devices() ) )
+                while main.Cluster.active( 0 ).CLI.devices() != "[]":
+                    main.log.error( "DEVICE NOT REMOVED !!!!!")
+                    main.Cluster.active( 0 ).CLI.removeDevice( "of:0000000000000001" )
             else:
                 main.switchFunc.captureOfPack( main, main.device, main.ofPackage,
                                                "up", resultDict, False )
                 main.switchFunc.captureOfPack( main, main.device, main.ofPackage,
                                                 "down", resultDict, False )
+                main.log.warn( "Before devices : " + str( main.Cluster.active( 0 ).CLI.devices() ) )
                 main.Cluster.active( 0 ).CLI.removeDevice( "of:0000000000000001" )
+                main.log.warn("After devices : " + str(main.Cluster.active(0).CLI.devices()))
+                while main.Cluster.active( 0 ).CLI.devices() != "[]":
+                    main.log.error( "DEVICE NOT REMOVED !!!!!")
+                    main.Cluster.active( 0 ).CLI.removeDevice( "of:0000000000000001" )
 
         # Dictionary for result
         maxDict = {}