controller: fix exp_msg validation when mixing OF versions
The OpenFlow version configured on the command line might not match the version
of messages sent by the switch.
diff --git a/src/python/oftest/controller.py b/src/python/oftest/controller.py
index 52bd370..5289fdd 100644
--- a/src/python/oftest/controller.py
+++ b/src/python/oftest/controller.py
@@ -589,7 +589,7 @@
klass = None
elif isinstance(exp_msg, int):
klass = cfg_ofp.message.message.subtypes[exp_msg]
- elif issubclass(exp_msg, cfg_ofp.message.message):
+ elif issubclass(exp_msg, loxi.OFObject):
klass = exp_msg
else:
raise ValueError("Unexpected exp_msg argument %r" % exp_msg)