Fix IPv6 simple command

Change-Id: Ic2ebabfc37052b9e9104d1f0ddd784f1942740ba
(cherry picked from commit d992596f1cbe4d61420e10299ccf5afd42464dc7)
diff --git a/src/main/java/org/onosproject/t3/impl/TroubleshootManager.java b/src/main/java/org/onosproject/t3/impl/TroubleshootManager.java
index 135a74d..18ba520 100644
--- a/src/main/java/org/onosproject/t3/impl/TroubleshootManager.java
+++ b/src/main/java/org/onosproject/t3/impl/TroubleshootManager.java
@@ -150,7 +150,6 @@
                 .matchVlanId(source.vlan());
 
 
-
         try {
             //if the location deviceId is the same, the two hosts are under same subnet and vlan on the interface
             // we are under same leaf so it's L2 Unicast.
@@ -218,10 +217,18 @@
         }).collect(Collectors.toList());
 
         if (ips.size() > 0) {
-            if (src) {
-                selectorBuilder.matchIPSrc(ips.get(0).toIpPrefix());
-            } else {
-                selectorBuilder.matchIPDst(ips.get(0).toIpPrefix());
+            if (etherType.equals(EtherType.IPV4)) {
+                if (src) {
+                    selectorBuilder.matchIPSrc(ips.get(0).toIpPrefix());
+                } else {
+                    selectorBuilder.matchIPDst(ips.get(0).toIpPrefix());
+                }
+            } else if (etherType.equals(EtherType.IPV6)) {
+                if (src) {
+                    selectorBuilder.matchIPv6Src(ips.get(0).toIpPrefix());
+                } else {
+                    selectorBuilder.matchIPv6Dst(ips.get(0).toIpPrefix());
+                }
             }
         } else {
             failTrace.addResultMessage("Host " + host + " has no " + etherType + " address");