Supports IPv6 address for scp and rsync

ONOS-7680

Change-Id: Ica7466715c64765310bfc7bf34126ed02d1818b7
diff --git a/tools/test/bin/onos-push-bits b/tools/test/bin/onos-push-bits
index b65c438..9b2bac2 100755
--- a/tools/test/bin/onos-push-bits
+++ b/tools/test/bin/onos-push-bits
@@ -28,6 +28,7 @@
 
 node=${1:-$OCI}
 remote=$ONOS_USER@$node
+remote_with_bracket=$ONOS_USER@[$node]
 SSH_OPTIONS=" -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null \
  -o ControlMaster=auto -o ControlPath=~/.ssh/mux-%r@%h:%p \
  -o ControlPersist=300 "
@@ -69,7 +70,7 @@
   rsync -az --delete --checksum --omit-dir-times --progress \
         -e "ssh $SSH_OPTIONS" \
         --rsync-path="mkdir -p /tmp/$ONOS_BITS/ && rsync" \
-        $RSYNC_STAGE/ $remote:/tmp/$ONOS_BITS
+        $RSYNC_STAGE/ $remote_with_bracket:/tmp/$ONOS_BITS
 
   # create $ONOS_TAR equivalent tar ball remotely
   # TODO hash will not be the same as local one, probably due to different uid, etc.
@@ -84,6 +85,6 @@
   if [ -n "$locHash" ] && [ "$locHash" = "$remHash" ]; then
       echo "ONOS bits $ONOS_TAR already up-to-date on $node..."
   else
-      scp -q $ONOS_TAR $remote:/tmp
+      scp -q $ONOS_TAR $remote_with_bracket:/tmp
   fi
 fi