pingping-lin | 4f80c49 | 2015-09-15 14:34:42 -0700 | [diff] [blame] | 1 | |
| 2 | def checkRouteNum( main, routeNumExpected ): |
| 3 | main.step( "Check routes installed" ) |
| 4 | main.log.info( "Route number expected:" ) |
| 5 | main.log.info( routeNumExpected ) |
| 6 | main.log.info( "Route number from ONOS CLI:" ) |
| 7 | |
| 8 | routeNumActual = main.ONOScli.ipv4RouteNumber() |
| 9 | main.log.info( routeNumActual ) |
| 10 | utilities.assertEquals( \ |
| 11 | expect = routeNumExpected, actual = routeNumActual, |
| 12 | onpass = "***Route number is correct!***", |
| 13 | onfail = "***Routes number is wrong!***" ) |
| 14 | |
| 15 | def checkM2SintentNum( main, intentNumExpected ): |
| 16 | main.step( "Check M2S intents installed" ) |
| 17 | main.log.info( "Intent number expected:" ) |
| 18 | main.log.info( intentNumExpected ) |
| 19 | main.log.info( "Intent number from ONOS CLI:" ) |
| 20 | intentNumActual = main.ONOScli.m2SIntentInstalledNumber() |
| 21 | main.log.info( intentNumActual ) |
| 22 | utilities.assertEquals( \ |
| 23 | expect = intentNumExpected, actual = intentNumActual, |
| 24 | onpass = "***Intents number is correct!***", |
| 25 | onfail = "***Intents number is wrong!***" ) |
| 26 | |