Added option "--minsize"
The 'minsize' parameter specifies the minimum allowable packet size on the dataplane.
All test packet sizes use this as the floor.
The default is 0.
diff --git a/tests/oft b/tests/oft
index 7229920..ce6e4ce 100755
--- a/tests/oft
+++ b/tests/oft
@@ -184,6 +184,7 @@
"allow_user" : False,
"fail_skipped" : False,
"default_timeout" : 2,
+ "minsize" : 0,
}
# Default test priority
@@ -277,6 +278,10 @@
help="Return failure if any test was skipped")
parser.add_option("--default-timeout", type="int",
help="Timeout in seconds for most operations")
+ parser.add_option("--minsize", type="int",
+ help="Minimum allowable packet size on the dataplane.",
+ default=0)
+
# Might need this if other parsers want command line
# parser.allow_interspersed_args = False
(options, args) = parser.parse_args()
@@ -581,6 +586,7 @@
_verb = 2
oftest.ofutils.default_timeout = config["default_timeout"]
+testutils.MINSIZE = config['minsize']
if os.getuid() != 0 and not config["allow_user"]:
print "ERROR: Super-user privileges required. Please re-run with " \