commit | ab0bab3d52c110ee57c16014ba36d07bd5e20558 | [log] [tgz] |
---|---|---|
author | Ed Swierk <eswierk@bigswitch.com> | Fri Nov 30 13:31:00 2012 -0800 |
committer | Ed Swierk <eswierk@bigswitch.com> | Tue Dec 11 16:29:06 2012 -0800 |
tree | 7e59128fe9d1251dba8d3e4a8c545b886c27e24b | |
parent | e6fca642a6e7e066ec2edf7e33969148d2e9a0f1 [diff] |
Don't try to use the incompatible pylibpcap library
diff --git a/src/python/oftest/dataplane.py b/src/python/oftest/dataplane.py index 717a85f..76aff75 100644 --- a/src/python/oftest/dataplane.py +++ b/src/python/oftest/dataplane.py
@@ -30,7 +30,9 @@ have_pypcap = False try: import pcap - have_pypcap = True + if hasattr(pcap, "pcap"): + # the incompatible pylibpcap library masquerades as pcap + have_pypcap = True except: pass