Gitiles
Code Review
Sign In
gerrit.opencord.org
/
fabric-oftest
/
f8e80dd88f1ead8f403097180f9c83fad1d561e0
/
.
/
src
/
python
/
oftest
/
ofutils.py
blob: 5daba2f70e0007f3ed0ebc8e85a69aa3a19561bc [
file
] [
log
] [
blame
]
Dan Talayco
ea8ad80
2010-02-22 20:30:18 -0800
[
diff
] [
blame
]
1
2
"""
3
Utilities for the OpenFlow test framework
4
"""
5
6
import
random
7
8
def
gen_xid
():
9
return
random
.
randrange
(
1
,
0xffffffff
)