add get IPv4 routes and m2s intents number memthods

Change-Id: I47b4590383a02a082851dd2dc07f03561e55a243
diff --git a/TestON/drivers/common/cli/onosclidriver.py b/TestON/drivers/common/cli/onosclidriver.py
index e8e5d64..b33a5a9 100644
--- a/TestON/drivers/common/cli/onosclidriver.py
+++ b/TestON/drivers/common/cli/onosclidriver.py
@@ -1761,6 +1761,32 @@
             main.cleanup()
             main.exit()
 
+    def ipv4RouteNumber( self ):
+        """
+        NOTE: This method should be used after installing application:
+              onos-app-sdnip
+        Description:
+            Obtain the total IPv4 routes number in the system
+        """
+        try:
+            cmdStr = "routes -s -j"
+            handle = self.sendline( cmdStr )
+            jsonResult = json.loads( handle )
+            return jsonResult['totalRoutes4']
+
+        except TypeError:
+            main.log.exception( self.name + ": Object not as expected" )
+            return None
+        except pexpect.EOF:
+            main.log.error( self.name + ": EOF exception found" )
+            main.log.error( self.name + ":    " + self.handle.before )
+            main.cleanup()
+            main.exit()
+        except Exception:
+            main.log.exception( self.name + ": Uncaught exception!" )
+            main.cleanup()
+            main.exit()
+
     def intents( self, jsonFormat=True ):
         """
         Optional:
@@ -1787,6 +1813,31 @@
             main.cleanup()
             main.exit()
 
+    def m2SIntentInstalledNumber( self ):
+        """
+        Description:
+            Obtain the number of multiple point to single point intents
+            installed
+        """
+        try:
+            cmdStr = "intents -s -j"
+            handle = self.sendline( cmdStr )
+            jsonResult = json.loads( handle )
+            return jsonResult['multiPointToSinglePoint']['installed']
+
+        except TypeError:
+            main.log.exception( self.name + ": Object not as expected" )
+            return None
+        except pexpect.EOF:
+            main.log.error( self.name + ": EOF exception found" )
+            main.log.error( self.name + ":    " + self.handle.before )
+            main.cleanup()
+            main.exit()
+        except Exception:
+            main.log.exception( self.name + ": Uncaught exception!" )
+            main.cleanup()
+            main.exit()
+
     def getIntentState(self, intentsId, intentsJson=None):
         """
             Check intent state.