loxi-prep: remove uses of cstruct module
This module does not exist in PyLoxi.
diff --git a/src/python/oftest/illegal_message.py b/src/python/oftest/illegal_message.py
index 0c6a878..eeb5022 100644
--- a/src/python/oftest/illegal_message.py
+++ b/src/python/oftest/illegal_message.py
@@ -2,7 +2,7 @@
Support an illegal message
"""
-from cstruct import *
+import of10
ILLEGAL_MESSAGE_TYPE=217
@@ -23,7 +23,7 @@
"""
def __init__(self):
- self.header = ofp_header()
+ self.header = of10.ofp_header()
self.header.type = ILLEGAL_MESSAGE_TYPE
self.data = ""
@@ -63,7 +63,7 @@
string.
"""
- length = OFP_HEADER_BYTES
+ length = of10.OFP_HEADER_BYTES
length += len(self.data)
return length