base_tests: only use supported_actions field for OF 1.0
diff --git a/src/python/oftest/base_tests.py b/src/python/oftest/base_tests.py
index 6fd97cc..343cdf8 100644
--- a/src/python/oftest/base_tests.py
+++ b/src/python/oftest/base_tests.py
@@ -44,8 +44,9 @@
reply, pkt = self.controller.transact(request)
self.assertTrue(reply is not None,
"Did not complete features_request for handshake")
- self.supported_actions = reply.actions
- logging.info("Supported actions: " + hex(self.supported_actions))
+ if reply.header.version == 1:
+ self.supported_actions = reply.actions
+ logging.info("Supported actions: " + hex(self.supported_actions))
except:
self.controller.kill()
del self.controller