blob: 16c8bf1ba2772c4872cecbeeacc0b65955b34033 [file] [log] [blame]
pingping-lin4f80c492015-09-15 14:34:42 -07001
2def 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
15def 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