commit | ea8ad807a0eef55315a251e055405ecdcc4fec41 | [log] [tgz] |
---|---|---|
author | Dan Talayco <dtalayco@stanford.edu> | Mon Feb 22 20:30:18 2010 -0800 |
committer | Dan Talayco <dtalayco@stanford.edu> | Mon Feb 22 20:30:18 2010 -0800 |
tree | 4c940a7eb24b8287d8aa816157cefaef6487c7da | |
parent | c4747969e0dc491ea58aa485358c2454acbdeb23 [diff] |
Oops, missed this file in original commit
diff --git a/src/python/oftest/ofutils.py b/src/python/oftest/ofutils.py new file mode 100644 index 0000000..5daba2f --- /dev/null +++ b/src/python/oftest/ofutils.py
@@ -0,0 +1,9 @@ + +""" +Utilities for the OpenFlow test framework +""" + +import random + +def gen_xid(): + return random.randrange(1,0xffffffff)