commit | 8806bc4712c5bee1eb48a6cb1d94380150c86935 | [log] [tgz] |
---|---|---|
author | Rich Lane <rich.lane@bigswitch.com> | Thu Jul 26 19:18:37 2012 -0700 |
committer | Rich Lane <rich.lane@bigswitch.com> | Thu Jul 26 19:18:37 2012 -0700 |
tree | d7ce3e7185941cfb6b527bf1241f785b19c68b59 | |
parent | db9d866ddc23f7520f25485b98ab18dd40ac8bc1 [diff] [blame] |
standardize on -1 for default timeouts
diff --git a/src/python/oftest/dataplane.py b/src/python/oftest/dataplane.py index 6b69589..aa434a7 100644 --- a/src/python/oftest/dataplane.py +++ b/src/python/oftest/dataplane.py
@@ -334,7 +334,7 @@ pkt, time = port.packets.pop(0) yield (port, pkt, time) - def poll(self, port_number=None, timeout=None, exp_pkt=None): + def poll(self, port_number=None, timeout=-1, exp_pkt=None): """ Poll one or all dataplane ports for a packet