[ONOS-7650] Workaround for CORD-3098 and CORD-3079

Change-Id: I7bb63808dbe840583663123518f16f9ea5f963f7
diff --git a/TestON/tests/dependencies/topology.py b/TestON/tests/dependencies/topology.py
index c0e1e7a..be3b69a 100644
--- a/TestON/tests/dependencies/topology.py
+++ b/TestON/tests/dependencies/topology.py
@@ -264,10 +264,11 @@
             pool = []
             for src in srcList:
                 srcIp = srcIpList[ src ]
-                if srcIp == dstIp:
+                if not srcIp or not dstIp:
+                    if expect:
+                        unexpectedPings.append( [ src, dst, "no IP" ] )
                     continue
-                if expect and ( not srcIp or not dstIp ):
-                    unexpectedPings.append( [ src, dst, "no IP" ] )
+                if srcIp == dstIp:
                     continue
                 hostHandle = getattr( main, src )
                 thread = main.Thread( target=utilities.retry,