add test case 5, 6 for Internet2 deployment
Change-Id: I6ab2c3c7ceb5e9ee90005bb93734b96815fbd26f
diff --git a/TestON/tests/USECASE_SdnipI2/Dependency/Functions.py b/TestON/tests/USECASE_SdnipI2/Dependency/Functions.py
new file mode 100644
index 0000000..16c8bf1
--- /dev/null
+++ b/TestON/tests/USECASE_SdnipI2/Dependency/Functions.py
@@ -0,0 +1,26 @@
+
+def checkRouteNum( main, routeNumExpected ):
+ main.step( "Check routes installed" )
+ main.log.info( "Route number expected:" )
+ main.log.info( routeNumExpected )
+ main.log.info( "Route number from ONOS CLI:" )
+
+ routeNumActual = main.ONOScli.ipv4RouteNumber()
+ main.log.info( routeNumActual )
+ utilities.assertEquals( \
+ expect = routeNumExpected, actual = routeNumActual,
+ onpass = "***Route number is correct!***",
+ onfail = "***Routes number is wrong!***" )
+
+def checkM2SintentNum( main, intentNumExpected ):
+ main.step( "Check M2S intents installed" )
+ main.log.info( "Intent number expected:" )
+ main.log.info( intentNumExpected )
+ main.log.info( "Intent number from ONOS CLI:" )
+ intentNumActual = main.ONOScli.m2SIntentInstalledNumber()
+ main.log.info( intentNumActual )
+ utilities.assertEquals( \
+ expect = intentNumExpected, actual = intentNumActual,
+ onpass = "***Intents number is correct!***",
+ onfail = "***Intents number is wrong!***" )
+