Merge "Add "-d 1" option to the ncat client."
diff --git a/neutron_tempest_plugin/scenario/base.py b/neutron_tempest_plugin/scenario/base.py
index 078a515..9d53f79 100644
--- a/neutron_tempest_plugin/scenario/base.py
+++ b/neutron_tempest_plugin/scenario/base.py
@@ -76,9 +76,11 @@
 
 def get_ncat_client_cmd(ip_address, port, protocol, ssh_client=None):
     cmd = 'echo "knock knock" | nc '
+    ncat_version = get_ncat_version(ssh_client=ssh_client)
+    if ncat_version > packaging_version.Version('7.60'):
+        cmd += '-d 1 '
     if protocol.lower() == neutron_lib_constants.PROTO_NAME_UDP:
         cmd += '-u '
-        ncat_version = get_ncat_version(ssh_client=ssh_client)
         if ncat_version > packaging_version.Version('7.60'):
             cmd += '-z '
     cmd += '-w 1 %(host)s %(port)s' % {'host': ip_address, 'port': port}