Merge pull request #5 from eswierk/master

More oftest changes
diff --git a/src/python/oftest/controller.py b/src/python/oftest/controller.py
index 786572d..debff35 100644
--- a/src/python/oftest/controller.py
+++ b/src/python/oftest/controller.py
@@ -287,8 +287,7 @@
                 return False
 
             if len(pkt) == 0:
-                self.logger.info("zero-len pkt in")
-                return True
+                self.logger.warning("Zero-length switch read")
 
             self._pkt_handle(pkt)
         else:
diff --git a/tests/basic.py b/tests/basic.py
index 9f43fcd..bbbf186 100644
--- a/tests/basic.py
+++ b/tests/basic.py
@@ -368,6 +368,21 @@
         self.assertTrue(response is not None, "Did not get response")
         basic_logger.debug(response.show())
 
+class DescStatsGet(SimpleProtocol):
+    """
+    Get stats 
+
+    Simply verify stats get transaction
+    """
+    def runTest(self):
+        basic_logger.info("Running DescStatsGet")
+        
+        basic_logger.info("Sending stats request")
+        request = message.desc_stats_request()
+        response, pkt = self.controller.transact(request, timeout=2)
+        self.assertTrue(response is not None, "Did not get response")
+        basic_logger.debug(response.show())
+
 class FlowMod(SimpleProtocol):
     """
     Insert a flow