From: Ondrej Lichtner olichtne@redhat.com
The bind option is translated to a -L command line argument for netserver, but is ignored for the client. This commit allows us to bind the client as well as the server.
Signed-off-by: Ondrej Lichtner olichtne@redhat.com --- test_modules/Netperf.py | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/test_modules/Netperf.py b/test_modules/Netperf.py index 1b9046b..bc6b264 100644 --- a/test_modules/Netperf.py +++ b/test_modules/Netperf.py @@ -68,6 +68,11 @@ class Netperf(TestGeneric): if self._is_omni(): # -P 0 disables banner header of output cmd += " -P 0" + if self._bind is not None: + """ + application is bound to this address + """ + cmd += " -L %s" % self._bind if self._port is not None: """ client connects on this port