pingping-lin | 28e7b21 | 2015-09-10 10:14:58 -0700 | [diff] [blame] | 1 | # Testing the functionality of SDN-IP with single ONOS instance |
pingping-lin | 5bb663b | 2015-09-24 11:47:50 -0700 | [diff] [blame] | 2 | class USECASE_SdnipFunction: |
pingping-lin | 28e7b21 | 2015-09-10 10:14:58 -0700 | [diff] [blame] | 3 | |
| 4 | def __init__( self ): |
| 5 | self.default = '' |
| 6 | global branchName |
| 7 | |
pingping-lin | b702c60 | 2015-09-10 17:00:29 -0700 | [diff] [blame] | 8 | def CASE100( self, main ): |
| 9 | """ |
| 10 | Start mininet |
| 11 | """ |
| 12 | import os |
Jon Hall | 70b768c | 2016-04-19 08:38:29 -0700 | [diff] [blame] | 13 | main.case( "Setup the Mininet testbed" ) |
pingping-lin | b702c60 | 2015-09-10 17:00:29 -0700 | [diff] [blame] | 14 | main.dependencyPath = main.testDir + \ |
| 15 | main.params[ 'DEPENDENCY' ][ 'path' ] |
| 16 | main.topology = main.params[ 'DEPENDENCY' ][ 'topology' ] |
| 17 | |
| 18 | main.step( "Starting Mininet Topology" ) |
| 19 | topology = main.dependencyPath + main.topology |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 20 | topoResult = main.Mininet.startNet( topoFile=topology ) |
| 21 | utilities.assert_equals( expect=main.TRUE, |
| 22 | actual=topoResult, |
| 23 | onpass="Successfully loaded topology", |
| 24 | onfail="Failed to load topology" ) |
pingping-lin | b702c60 | 2015-09-10 17:00:29 -0700 | [diff] [blame] | 25 | # Exit if topology did not load properly |
| 26 | if not topoResult: |
| 27 | main.cleanup() |
| 28 | main.exit() |
pingping-lin | 5bb663b | 2015-09-24 11:47:50 -0700 | [diff] [blame] | 29 | main.step( "Connect switches to controller" ) |
| 30 | |
| 31 | global ONOS1Ip |
| 32 | ONOS1Ip = os.getenv( main.params[ 'CTRL' ][ 'ip1' ] ) |
| 33 | # connect all switches to controller |
| 34 | swResult = main.TRUE |
| 35 | for i in range ( 1, int( main.params['config']['switchNum'] ) + 1 ): |
| 36 | sw = "sw%s" % ( i ) |
| 37 | swResult = swResult and main.Mininet.assignSwController( sw, ONOS1Ip ) |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 38 | utilities.assert_equals( expect=main.TRUE, |
| 39 | actual=swResult, |
| 40 | onpass="Successfully connect all switches to ONOS", |
| 41 | onfail="Failed to connect all switches to ONOS" ) |
pingping-lin | 5bb663b | 2015-09-24 11:47:50 -0700 | [diff] [blame] | 42 | if not swResult: |
| 43 | main.cleanup() |
| 44 | main.exit() |
| 45 | |
| 46 | main.step( "Set up tunnel from Mininet node to onos node" ) |
| 47 | forwarding1 = '%s:2000:%s:2000' % ( '1.1.1.2', ONOS1Ip ) |
| 48 | command = 'ssh -nNT -o "PasswordAuthentication no" \ |
| 49 | -o "StrictHostKeyChecking no" -l sdn -L %s %s & ' % ( forwarding1, ONOS1Ip ) |
| 50 | |
| 51 | tunnelResult = main.TRUE |
| 52 | tunnelResult = main.Mininet.node( "root", command ) |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 53 | utilities.assert_equals( expect=True, |
| 54 | actual=( "PasswordAuthentication" in tunnelResult ), |
| 55 | onpass="Created tunnel succeeded", |
| 56 | onfail="Create tunnel failed" ) |
pingping-lin | b3ebd3f | 2015-09-28 22:17:05 -0700 | [diff] [blame] | 57 | if ("PasswordAuthentication" not in tunnelResult) : |
pingping-lin | 5bb663b | 2015-09-24 11:47:50 -0700 | [diff] [blame] | 58 | main.cleanup() |
| 59 | main.exit() |
pingping-lin | 5bb663b | 2015-09-24 11:47:50 -0700 | [diff] [blame] | 60 | |
pingping-lin | b702c60 | 2015-09-10 17:00:29 -0700 | [diff] [blame] | 61 | def CASE101( self, main ): |
pingping-lin | 28e7b21 | 2015-09-10 10:14:58 -0700 | [diff] [blame] | 62 | """ |
pingping-lin | ea32cf8 | 2015-10-08 22:37:37 -0700 | [diff] [blame] | 63 | Package ONOS and install it |
pingping-lin | 28e7b21 | 2015-09-10 10:14:58 -0700 | [diff] [blame] | 64 | Startup sequence: |
| 65 | cell <name> |
| 66 | onos-verify-cell |
pingping-lin | 28e7b21 | 2015-09-10 10:14:58 -0700 | [diff] [blame] | 67 | onos-package |
| 68 | onos-install -f |
| 69 | onos-wait-for-start |
| 70 | """ |
pingping-lin | 28e7b21 | 2015-09-10 10:14:58 -0700 | [diff] [blame] | 71 | import time |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 72 | import os |
pingping-lin | 28e7b21 | 2015-09-10 10:14:58 -0700 | [diff] [blame] | 73 | |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 74 | main.case( "Setting up ONOS environment" ) |
pingping-lin | 28e7b21 | 2015-09-10 10:14:58 -0700 | [diff] [blame] | 75 | |
| 76 | cellName = main.params[ 'ENV' ][ 'cellName' ] |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 77 | global ONOS1Ip |
| 78 | ONOS1Ip = os.getenv( main.params[ 'CTRL' ][ 'ip1' ] ) |
| 79 | ipList = [ ONOS1Ip ] |
| 80 | |
Jon Hall | 70b768c | 2016-04-19 08:38:29 -0700 | [diff] [blame] | 81 | main.step( "Copying config files" ) |
| 82 | src = os.path.dirname( main.testFile ) + "/network-cfg.json" |
| 83 | dst = main.ONOSbench.home + "/tools/package/config/network-cfg.json" |
| 84 | status = main.ONOSbench.scp( main.ONOSbench, src, dst, direction="to" ) |
| 85 | utilities.assert_equals( expect=main.TRUE, |
| 86 | actual=status, |
| 87 | onpass="Copy config file succeeded", |
| 88 | onfail="Copy config file failed" ) |
| 89 | |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 90 | main.step( "Create cell file" ) |
| 91 | cellAppString = main.params[ 'ENV' ][ 'appString' ] |
| 92 | main.ONOSbench.createCellFile( main.ONOSbench.ip_address, cellName, |
| 93 | main.Mininet.ip_address, |
Devin Lim | dc78e20 | 2017-06-09 18:30:07 -0700 | [diff] [blame] | 94 | cellAppString, ipList, main.ONOScli1.karafUser ) |
pingping-lin | 28e7b21 | 2015-09-10 10:14:58 -0700 | [diff] [blame] | 95 | |
| 96 | main.step( "Applying cell variable to environment" ) |
| 97 | cellResult = main.ONOSbench.setCell( cellName ) |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 98 | utilities.assert_equals( expect=main.TRUE, |
| 99 | actual=cellResult, |
| 100 | onpass="Set cell succeeded", |
| 101 | onfail="Set cell failed" ) |
pingping-lin | b3ebd3f | 2015-09-28 22:17:05 -0700 | [diff] [blame] | 102 | |
Jon Hall | 70b768c | 2016-04-19 08:38:29 -0700 | [diff] [blame] | 103 | main.step( "Verify cell connectivity" ) |
pingping-lin | 28e7b21 | 2015-09-10 10:14:58 -0700 | [diff] [blame] | 104 | verifyResult = main.ONOSbench.verifyCell() |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 105 | utilities.assert_equals( expect=main.TRUE, |
| 106 | actual=verifyResult, |
| 107 | onpass="Verify cell succeeded", |
| 108 | onfail="Verify cell failed" ) |
pingping-lin | 28e7b21 | 2015-09-10 10:14:58 -0700 | [diff] [blame] | 109 | |
| 110 | branchName = main.ONOSbench.getBranchName() |
pingping-lin | b3ebd3f | 2015-09-28 22:17:05 -0700 | [diff] [blame] | 111 | main.log.report( "ONOS is on branch: " + branchName ) |
pingping-lin | 28e7b21 | 2015-09-10 10:14:58 -0700 | [diff] [blame] | 112 | |
Jon Hall | 6509dbf | 2016-06-21 17:01:17 -0700 | [diff] [blame] | 113 | main.step( "Uninstalling ONOS" ) |
pingping-lin | b3ebd3f | 2015-09-28 22:17:05 -0700 | [diff] [blame] | 114 | uninstallResult = main.ONOSbench.onosUninstall( ONOS1Ip ) |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 115 | utilities.assert_equals( expect=main.TRUE, |
| 116 | actual=uninstallResult, |
| 117 | onpass="Uninstall ONOS succeeded", |
| 118 | onfail="Uninstall ONOS failed" ) |
pingping-lin | aede031 | 2015-09-30 17:53:19 -0700 | [diff] [blame] | 119 | ''' |
pingping-lin | 28e7b21 | 2015-09-10 10:14:58 -0700 | [diff] [blame] | 120 | main.step( "Git pull" ) |
| 121 | gitPullResult = main.ONOSbench.gitPull() |
pingping-lin | b3ebd3f | 2015-09-28 22:17:05 -0700 | [diff] [blame] | 122 | main.log.info( "gitPullResult" ) |
| 123 | main.log.info( gitPullResult ) |
| 124 | gitPullResult2 = ( gitPullResult == main.TRUE ) or ( gitPullResult == 3 ) |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 125 | utilities.assert_equals( expect=True, |
| 126 | actual=gitPullResult2, |
| 127 | onpass="Git pull ONOS succeeded", |
| 128 | onfail="Git pull ONOS failed" ) |
pingping-lin | aede031 | 2015-09-30 17:53:19 -0700 | [diff] [blame] | 129 | ''' |
pingping-lin | 28e7b21 | 2015-09-10 10:14:58 -0700 | [diff] [blame] | 130 | |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 131 | main.ONOSbench.getVersion( report=True ) |
pingping-lin | 28e7b21 | 2015-09-10 10:14:58 -0700 | [diff] [blame] | 132 | |
| 133 | main.step( "Creating ONOS package" ) |
Jon Hall | bd60ea0 | 2016-08-23 10:03:59 -0700 | [diff] [blame] | 134 | packageResult = main.ONOSbench.buckBuild() |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 135 | utilities.assert_equals( expect=main.TRUE, |
| 136 | actual=packageResult, |
| 137 | onpass="Package ONOS succeeded", |
| 138 | onfail="Package ONOS failed" ) |
pingping-lin | 28e7b21 | 2015-09-10 10:14:58 -0700 | [diff] [blame] | 139 | |
| 140 | main.step( "Installing ONOS package" ) |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 141 | onos1InstallResult = main.ONOSbench.onosInstall( options="-f", |
| 142 | node=ONOS1Ip ) |
| 143 | utilities.assert_equals( expect=main.TRUE, |
| 144 | actual=onos1InstallResult, |
| 145 | onpass="Install ONOS succeeded", |
| 146 | onfail="Install ONOS failed" ) |
pingping-lin | 28e7b21 | 2015-09-10 10:14:58 -0700 | [diff] [blame] | 147 | |
Chiyu Cheng | ef10950 | 2016-11-21 15:51:38 -0800 | [diff] [blame] | 148 | main.step( "Set up ONOS secure SSH" ) |
| 149 | secureSshResult = main.ONOSbench.onosSecureSSH( node=ONOS1Ip ) |
| 150 | utilities.assert_equals( expect=main.TRUE, |
| 151 | actual=secureSshResult, |
| 152 | onpass="Set up ONOS secure SSH succeeded", |
| 153 | onfail="Set up ONOS secure SSH failed " ) |
| 154 | |
You Wang | f5de25b | 2017-01-06 15:13:01 -0800 | [diff] [blame] | 155 | main.step( "Checking if ONOS is up yet" ) |
| 156 | onos1UpResult = main.ONOSbench.isup( ONOS1Ip, timeout=420 ) |
| 157 | utilities.assert_equals( expect=main.TRUE, |
| 158 | actual=onos1UpResult, |
| 159 | onpass="ONOS is up", |
| 160 | onfail="ONOS is NOT up" ) |
| 161 | |
pingping-lin | b3ebd3f | 2015-09-28 22:17:05 -0700 | [diff] [blame] | 162 | main.step( "Checking if ONOS CLI is ready" ) |
pingping-lin | 28e7b21 | 2015-09-10 10:14:58 -0700 | [diff] [blame] | 163 | cliResult = main.ONOScli.startOnosCli( ONOS1Ip, |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 164 | commandlineTimeout=100, onosStartTimeout=600 ) |
| 165 | utilities.assert_equals( expect=main.TRUE, |
| 166 | actual=cliResult, |
| 167 | onpass="ONOS CLI is ready", |
| 168 | onfail="ONOS CLI is not ready" ) |
pingping-lin | 28e7b21 | 2015-09-10 10:14:58 -0700 | [diff] [blame] | 169 | |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 170 | for i in range( 10 ): |
| 171 | ready = True |
| 172 | output = main.ONOScli.summary() |
| 173 | if not output: |
| 174 | ready = False |
| 175 | if ready: |
| 176 | break |
| 177 | time.sleep( 30 ) |
| 178 | utilities.assert_equals( expect=True, actual=ready, |
| 179 | onpass="ONOS summary command succeded", |
| 180 | onfail="ONOS summary command failed" ) |
pingping-lin | 28e7b21 | 2015-09-10 10:14:58 -0700 | [diff] [blame] | 181 | |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 182 | if not ready: |
| 183 | main.log.error( "ONOS startup failed!" ) |
pingping-lin | 28e7b21 | 2015-09-10 10:14:58 -0700 | [diff] [blame] | 184 | main.cleanup() |
| 185 | main.exit() |
| 186 | |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 187 | def CASE200( self, main ): |
alison | e4121a9 | 2016-11-22 16:31:36 -0800 | [diff] [blame] | 188 | import json |
| 189 | import time |
| 190 | |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 191 | main.case( "Activate sdn-ip application" ) |
| 192 | main.log.info( "waiting link discovery......" ) |
| 193 | time.sleep( int( main.params['timers']['TopoDiscovery'] ) ) |
| 194 | |
pingping-lin | b3ebd3f | 2015-09-28 22:17:05 -0700 | [diff] [blame] | 195 | main.log.info( "Get links in the network" ) |
pingping-lin | 3f091d6 | 2015-09-29 12:00:05 -0700 | [diff] [blame] | 196 | summaryResult = main.ONOScli.summary() |
| 197 | linkNum = json.loads( summaryResult )[ "links" ] |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 198 | listResult = main.ONOScli.links( jsonFormat=False ) |
| 199 | main.log.info( listResult ) |
pingping-lin | 3f091d6 | 2015-09-29 12:00:05 -0700 | [diff] [blame] | 200 | if linkNum < 100: |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 201 | main.log.error( "Link number is wrong!" ) |
| 202 | time.sleep( int( main.params['timers']['TopoDiscovery'] ) ) |
| 203 | listResult = main.ONOScli.links( jsonFormat=False ) |
pingping-lin | 3f091d6 | 2015-09-29 12:00:05 -0700 | [diff] [blame] | 204 | main.log.info( listResult ) |
| 205 | main.cleanup() |
| 206 | main.exit() |
| 207 | |
pingping-lin | b3ebd3f | 2015-09-28 22:17:05 -0700 | [diff] [blame] | 208 | main.step( "Activate sdn-ip application" ) |
| 209 | activeSDNIPresult = main.ONOScli.activateApp( "org.onosproject.sdnip" ) |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 210 | utilities.assert_equals( expect=main.TRUE, |
| 211 | actual=activeSDNIPresult, |
| 212 | onpass="Activate SDN-IP succeeded", |
| 213 | onfail="Activate SDN-IP failed" ) |
pingping-lin | 3f091d6 | 2015-09-29 12:00:05 -0700 | [diff] [blame] | 214 | if not activeSDNIPresult: |
| 215 | main.log.info( "Activate SDN-IP failed!" ) |
| 216 | main.cleanup() |
| 217 | main.exit() |
| 218 | |
pingping-lin | b3ebd3f | 2015-09-28 22:17:05 -0700 | [diff] [blame] | 219 | |
| 220 | main.log.info( "Wait SDN-IP to finish installing connectivity intents \ |
pingping-lin | b702c60 | 2015-09-10 17:00:29 -0700 | [diff] [blame] | 221 | and the BGP paths in data plane are ready..." ) |
pingping-lin | 28e7b21 | 2015-09-10 10:14:58 -0700 | [diff] [blame] | 222 | time.sleep( int( main.params[ 'timers' ][ 'SdnIpSetup' ] ) ) |
pingping-lin | b702c60 | 2015-09-10 17:00:29 -0700 | [diff] [blame] | 223 | main.log.info( "Wait Quagga to finish delivery all routes to each \ |
| 224 | other and to sdn-ip, plus finish installing all intents..." ) |
pingping-lin | 28e7b21 | 2015-09-10 10:14:58 -0700 | [diff] [blame] | 225 | time.sleep( int( main.params[ 'timers' ][ 'RouteDelivery' ] ) ) |
| 226 | time.sleep( int( main.params[ 'timers' ][ 'PathAvailable' ] ) ) |
| 227 | |
| 228 | |
pingping-lin | 4f80c49 | 2015-09-15 14:34:42 -0700 | [diff] [blame] | 229 | def CASE102( self, main ): |
| 230 | ''' |
| 231 | This test case is to load the methods from other Python files. |
| 232 | ''' |
alison | e4121a9 | 2016-11-22 16:31:36 -0800 | [diff] [blame] | 233 | import imp |
| 234 | |
pingping-lin | b3ebd3f | 2015-09-28 22:17:05 -0700 | [diff] [blame] | 235 | main.case( "Loading methods from other Python file" ) |
pingping-lin | 4f80c49 | 2015-09-15 14:34:42 -0700 | [diff] [blame] | 236 | # load the methods from other file |
| 237 | wrapperFile = main.params[ 'DEPENDENCY' ][ 'wrapper1' ] |
| 238 | main.Functions = imp.load_source( wrapperFile, |
| 239 | main.dependencyPath + |
| 240 | wrapperFile + |
| 241 | ".py" ) |
| 242 | |
| 243 | |
pingping-lin | 0ce6062 | 2015-09-10 14:37:33 -0700 | [diff] [blame] | 244 | def CASE1( self, main ): |
| 245 | ''' |
alison | e4121a9 | 2016-11-22 16:31:36 -0800 | [diff] [blame] | 246 | ping test from 7 bgp peers to BGP speaker |
pingping-lin | 0ce6062 | 2015-09-10 14:37:33 -0700 | [diff] [blame] | 247 | ''' |
pingping-lin | 950b50d | 2015-09-14 12:00:08 -0700 | [diff] [blame] | 248 | |
pingping-lin | b3ebd3f | 2015-09-28 22:17:05 -0700 | [diff] [blame] | 249 | main.case( "Ping tests between BGP peers and speakers" ) |
alison | e4121a9 | 2016-11-22 16:31:36 -0800 | [diff] [blame] | 250 | main.Functions.pingSpeakerToPeer( main, speakers=[ "spk1" ], |
| 251 | peers=[ "p64514", "p64515", "p64516" ], |
| 252 | expectAllSuccess=True ) |
pingping-lin | 0ce6062 | 2015-09-10 14:37:33 -0700 | [diff] [blame] | 253 | |
alison | e4121a9 | 2016-11-22 16:31:36 -0800 | [diff] [blame] | 254 | main.Functions.pingSpeakerToPeer( main, speakers=[ "spk2" ], |
| 255 | peers=[ "p64517", "p64518" ], |
| 256 | expectAllSuccess=True ) |
| 257 | |
| 258 | main.Functions.pingSpeakerToPeer( main, speakers=[ "spk3" ], |
| 259 | peers=[ "p64519", "p64520" ], |
| 260 | expectAllSuccess=True ) |
pingping-lin | 950b50d | 2015-09-14 12:00:08 -0700 | [diff] [blame] | 261 | |
pingping-lin | 0ce6062 | 2015-09-10 14:37:33 -0700 | [diff] [blame] | 262 | def CASE2( self, main ): |
| 263 | ''' |
| 264 | point-to-point intents test for each BGP peer and BGP speaker pair |
| 265 | ''' |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 266 | import time |
alison | e4121a9 | 2016-11-22 16:31:36 -0800 | [diff] [blame] | 267 | from operator import eq |
| 268 | |
pingping-lin | b3ebd3f | 2015-09-28 22:17:05 -0700 | [diff] [blame] | 269 | main.case( "Check point-to-point intents" ) |
pingping-lin | 0ce6062 | 2015-09-10 14:37:33 -0700 | [diff] [blame] | 270 | main.log.info( "There are %s BGP peers in total " |
| 271 | % main.params[ 'config' ][ 'peerNum' ] ) |
pingping-lin | b3ebd3f | 2015-09-28 22:17:05 -0700 | [diff] [blame] | 272 | main.step( "Check P2P intents number from ONOS CLI" ) |
pingping-lin | 0ce6062 | 2015-09-10 14:37:33 -0700 | [diff] [blame] | 273 | |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 274 | getIntentsResult = main.ONOScli.intents( jsonFormat=True ) |
pingping-lin | 0ce6062 | 2015-09-10 14:37:33 -0700 | [diff] [blame] | 275 | bgpIntentsActualNum = \ |
| 276 | main.QuaggaCliSpeaker1.extractActualBgpIntentNum( getIntentsResult ) |
| 277 | bgpIntentsExpectedNum = int( main.params[ 'config' ][ 'peerNum' ] ) * 6 |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 278 | if bgpIntentsActualNum != bgpIntentsExpectedNum: |
| 279 | time.sleep( int( main.params['timers']['RouteDelivery'] ) ) |
Jon Hall | fabd7e5 | 2016-04-19 19:20:59 -0700 | [diff] [blame] | 280 | getIntentsResult = main.ONOScli.intents( jsonFormat=True ) |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 281 | bgpIntentsActualNum = \ |
| 282 | main.QuaggaCliSpeaker1.extractActualBgpIntentNum( getIntentsResult ) |
pingping-lin | 0ce6062 | 2015-09-10 14:37:33 -0700 | [diff] [blame] | 283 | main.log.info( "bgpIntentsExpected num is:" ) |
| 284 | main.log.info( bgpIntentsExpectedNum ) |
| 285 | main.log.info( "bgpIntentsActual num is:" ) |
| 286 | main.log.info( bgpIntentsActualNum ) |
| 287 | utilities.assertEquals( \ |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 288 | expect=True, |
| 289 | actual=eq( bgpIntentsExpectedNum, bgpIntentsActualNum ), |
| 290 | onpass="PointToPointIntent Intent Num is correct!", |
| 291 | onfail="PointToPointIntent Intent Num is wrong!" ) |
pingping-lin | 0ce6062 | 2015-09-10 14:37:33 -0700 | [diff] [blame] | 292 | |
| 293 | |
| 294 | def CASE3( self, main ): |
| 295 | ''' |
| 296 | routes and intents check to all BGP peers |
| 297 | ''' |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 298 | import time |
pingping-lin | b3ebd3f | 2015-09-28 22:17:05 -0700 | [diff] [blame] | 299 | main.case( "Check routes and M2S intents to all BGP peers" ) |
pingping-lin | 0ce6062 | 2015-09-10 14:37:33 -0700 | [diff] [blame] | 300 | |
pingping-lin | 28e7b21 | 2015-09-10 10:14:58 -0700 | [diff] [blame] | 301 | allRoutesExpected = [] |
| 302 | allRoutesExpected.append( "4.0.0.0/24" + "/" + "10.0.4.1" ) |
| 303 | allRoutesExpected.append( "5.0.0.0/24" + "/" + "10.0.5.1" ) |
| 304 | allRoutesExpected.append( "6.0.0.0/24" + "/" + "10.0.6.1" ) |
| 305 | |
alison | e4121a9 | 2016-11-22 16:31:36 -0800 | [diff] [blame] | 306 | allRoutesExpected.append( "7.0.0.0/24" + "/" + "10.0.7.1" ) |
| 307 | allRoutesExpected.append( "8.0.0.0/24" + "/" + "10.0.8.1" ) |
| 308 | allRoutesExpected.append( "9.0.0.0/24" + "/" + "10.0.9.1" ) |
| 309 | allRoutesExpected.append( "20.0.0.0/24" + "/" + "10.0.20.1" ) |
| 310 | |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 311 | getRoutesResult = main.ONOScli.routes( jsonFormat=True ) |
pingping-lin | 28e7b21 | 2015-09-10 10:14:58 -0700 | [diff] [blame] | 312 | allRoutesActual = \ |
| 313 | main.QuaggaCliSpeaker1.extractActualRoutesMaster( getRoutesResult ) |
| 314 | allRoutesStrExpected = str( sorted( allRoutesExpected ) ) |
| 315 | allRoutesStrActual = str( allRoutesActual ).replace( 'u', "" ) |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 316 | if allRoutesStrActual != allRoutesStrExpected: |
| 317 | time.sleep( int( main.params['timers']['RouteDelivery'] ) ) |
Jon Hall | fabd7e5 | 2016-04-19 19:20:59 -0700 | [diff] [blame] | 318 | getRoutesResult = main.ONOScli.routes( jsonFormat=True ) |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 319 | allRoutesActual = \ |
| 320 | main.QuaggaCliSpeaker1.extractActualRoutesMaster( getRoutesResult ) |
| 321 | allRoutesStrActual = str( allRoutesActual ).replace( 'u', "" ) |
pingping-lin | 28e7b21 | 2015-09-10 10:14:58 -0700 | [diff] [blame] | 322 | |
| 323 | main.step( "Check routes installed" ) |
| 324 | main.log.info( "Routes expected:" ) |
| 325 | main.log.info( allRoutesStrExpected ) |
| 326 | main.log.info( "Routes get from ONOS CLI:" ) |
| 327 | main.log.info( allRoutesStrActual ) |
| 328 | utilities.assertEquals( \ |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 329 | expect=allRoutesStrExpected, actual=allRoutesStrActual, |
| 330 | onpass="Routes are correct!", |
| 331 | onfail="Routes are wrong!" ) |
pingping-lin | 28e7b21 | 2015-09-10 10:14:58 -0700 | [diff] [blame] | 332 | |
pingping-lin | b3ebd3f | 2015-09-28 22:17:05 -0700 | [diff] [blame] | 333 | main.step( "Check M2S intents installed" ) |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 334 | getIntentsResult = main.ONOScli.intents( jsonFormat=True ) |
pingping-lin | 28e7b21 | 2015-09-10 10:14:58 -0700 | [diff] [blame] | 335 | routeIntentsActualNum = \ |
| 336 | main.QuaggaCliSpeaker1.extractActualRouteIntentNum( getIntentsResult ) |
alison | e4121a9 | 2016-11-22 16:31:36 -0800 | [diff] [blame] | 337 | routeIntentsExpectedNum = 7 |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 338 | if routeIntentsActualNum != routeIntentsExpectedNum: |
| 339 | time.sleep( int( main.params['timers']['RouteDelivery'] ) ) |
Jon Hall | fabd7e5 | 2016-04-19 19:20:59 -0700 | [diff] [blame] | 340 | getIntentsResult = main.ONOScli.intents( jsonFormat=True ) |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 341 | routeIntentsActualNum = \ |
| 342 | main.QuaggaCliSpeaker1.extractActualRouteIntentNum( getIntentsResult ) |
pingping-lin | 28e7b21 | 2015-09-10 10:14:58 -0700 | [diff] [blame] | 343 | |
| 344 | main.log.info( "MultiPointToSinglePoint Intent Num expected is:" ) |
| 345 | main.log.info( routeIntentsExpectedNum ) |
| 346 | main.log.info( "MultiPointToSinglePoint Intent NUM Actual is:" ) |
| 347 | main.log.info( routeIntentsActualNum ) |
| 348 | utilities.assertEquals( \ |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 349 | expect=routeIntentsExpectedNum, |
| 350 | actual=routeIntentsActualNum, |
| 351 | onpass="MultiPointToSinglePoint Intent Num is correct!", |
| 352 | onfail="MultiPointToSinglePoint Intent Num is wrong!" ) |
pingping-lin | 28e7b21 | 2015-09-10 10:14:58 -0700 | [diff] [blame] | 353 | |
pingping-lin | bab7f8a | 2015-09-21 17:33:36 -0700 | [diff] [blame] | 354 | main.step( "Check whether all flow status are ADDED" ) |
Jon Hall | 1aa0560 | 2016-04-05 10:25:39 -0700 | [diff] [blame] | 355 | flowCheck = utilities.retry( main.ONOScli.checkFlowsState, |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 356 | main.FALSE, |
| 357 | kwargs={'isPENDING':False}, |
| 358 | attempts=10 ) |
pingping-lin | bab7f8a | 2015-09-21 17:33:36 -0700 | [diff] [blame] | 359 | utilities.assertEquals( \ |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 360 | expect=main.TRUE, |
| 361 | actual=flowCheck, |
| 362 | onpass="Flow status is correct!", |
| 363 | onfail="Flow status is wrong!" ) |
pingping-lin | bab7f8a | 2015-09-21 17:33:36 -0700 | [diff] [blame] | 364 | |
pingping-lin | 950b50d | 2015-09-14 12:00:08 -0700 | [diff] [blame] | 365 | |
| 366 | def CASE4( self, main ): |
| 367 | ''' |
| 368 | Ping test in data plane for each route |
| 369 | ''' |
pingping-lin | b3ebd3f | 2015-09-28 22:17:05 -0700 | [diff] [blame] | 370 | main.case( "Ping test for each route, all hosts behind BGP peers" ) |
alison | e4121a9 | 2016-11-22 16:31:36 -0800 | [diff] [blame] | 371 | #No vlan |
pingping-lin | 829428d | 2015-09-22 20:50:00 -0700 | [diff] [blame] | 372 | main.Functions.pingHostToHost( main, |
alison | e4121a9 | 2016-11-22 16:31:36 -0800 | [diff] [blame] | 373 | hosts=[ "h64514", "h64515", "h64516" ], |
| 374 | expectAllSuccess=True ) |
| 375 | #vlan 10 |
| 376 | main.Functions.pingHostToHost( main, |
| 377 | hosts=[ "h64519", "h64520" ], |
| 378 | expectAllSuccess=True ) |
pingping-lin | 4f80c49 | 2015-09-15 14:34:42 -0700 | [diff] [blame] | 379 | |
alison | e4121a9 | 2016-11-22 16:31:36 -0800 | [diff] [blame] | 380 | # vlan 20 |
| 381 | main.Functions.pingHostToHost( main, |
| 382 | hosts=[ "h64517", "h64518" ], |
| 383 | expectAllSuccess=True ) |
pingping-lin | 4f80c49 | 2015-09-15 14:34:42 -0700 | [diff] [blame] | 384 | |
| 385 | def CASE5( self, main ): |
| 386 | ''' |
| 387 | Cut links to peers one by one, check routes/intents |
| 388 | ''' |
| 389 | import time |
pingping-lin | b3ebd3f | 2015-09-28 22:17:05 -0700 | [diff] [blame] | 390 | main.case( "Bring down links and check routes/intents" ) |
alison | e4121a9 | 2016-11-22 16:31:36 -0800 | [diff] [blame] | 391 | main.step( "Bring down the link between sw32 and p64514" ) |
| 392 | linkResult1 = main.Mininet.link( END1="sw32", END2="p64514", |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 393 | OPTION="down" ) |
| 394 | utilities.assertEquals( expect=main.TRUE, |
| 395 | actual=linkResult1, |
| 396 | onpass="Bring down link succeeded!", |
| 397 | onfail="Bring down link failed!" ) |
pingping-lin | b3ebd3f | 2015-09-28 22:17:05 -0700 | [diff] [blame] | 398 | |
| 399 | if linkResult1 == main.TRUE: |
pingping-lin | 4f80c49 | 2015-09-15 14:34:42 -0700 | [diff] [blame] | 400 | time.sleep( int( main.params[ 'timers' ][ 'RouteDelivery' ] ) ) |
alison | e4121a9 | 2016-11-22 16:31:36 -0800 | [diff] [blame] | 401 | main.Functions.checkRouteNum( main, 6 ) #We have 7 links between peers and sw. After one link down, 7-1=6. |
| 402 | main.Functions.checkM2SintentNum( main, 6 ) |
pingping-lin | 4f80c49 | 2015-09-15 14:34:42 -0700 | [diff] [blame] | 403 | else: |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 404 | main.log.error( "Bring down link failed!" ) |
pingping-lin | b3ebd3f | 2015-09-28 22:17:05 -0700 | [diff] [blame] | 405 | main.cleanup() |
| 406 | main.exit() |
pingping-lin | 4f80c49 | 2015-09-15 14:34:42 -0700 | [diff] [blame] | 407 | |
alison | e4121a9 | 2016-11-22 16:31:36 -0800 | [diff] [blame] | 408 | main.step( "Bring down the link between sw8 and p64515" ) |
| 409 | linkResult2 = main.Mininet.link( END1="sw8", END2="p64515", |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 410 | OPTION="down" ) |
| 411 | utilities.assertEquals( expect=main.TRUE, |
| 412 | actual=linkResult2, |
| 413 | onpass="Bring down link succeeded!", |
| 414 | onfail="Bring down link failed!" ) |
pingping-lin | b3ebd3f | 2015-09-28 22:17:05 -0700 | [diff] [blame] | 415 | if linkResult2 == main.TRUE: |
pingping-lin | 4f80c49 | 2015-09-15 14:34:42 -0700 | [diff] [blame] | 416 | time.sleep( int( main.params[ 'timers' ][ 'RouteDelivery' ] ) ) |
alison | e4121a9 | 2016-11-22 16:31:36 -0800 | [diff] [blame] | 417 | main.Functions.checkRouteNum( main, 5 ) #2 links down, 7-2=5. |
| 418 | main.Functions.checkM2SintentNum( main, 5 ) |
pingping-lin | 4f80c49 | 2015-09-15 14:34:42 -0700 | [diff] [blame] | 419 | else: |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 420 | main.log.error( "Bring down link failed!" ) |
pingping-lin | b3ebd3f | 2015-09-28 22:17:05 -0700 | [diff] [blame] | 421 | main.cleanup() |
| 422 | main.exit() |
pingping-lin | 4f80c49 | 2015-09-15 14:34:42 -0700 | [diff] [blame] | 423 | |
alison | e4121a9 | 2016-11-22 16:31:36 -0800 | [diff] [blame] | 424 | main.step( "Bring down the link between sw28 and p64516" ) |
| 425 | linkResult3 = main.Mininet.link( END1="sw28", END2="p64516", |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 426 | OPTION="down" ) |
| 427 | utilities.assertEquals( expect=main.TRUE, |
| 428 | actual=linkResult3, |
| 429 | onpass="Bring down link succeeded!", |
| 430 | onfail="Bring down link failed!" ) |
pingping-lin | b3ebd3f | 2015-09-28 22:17:05 -0700 | [diff] [blame] | 431 | if linkResult3 == main.TRUE: |
pingping-lin | 4f80c49 | 2015-09-15 14:34:42 -0700 | [diff] [blame] | 432 | time.sleep( int( main.params[ 'timers' ][ 'RouteDelivery' ] ) ) |
alison | e4121a9 | 2016-11-22 16:31:36 -0800 | [diff] [blame] | 433 | main.Functions.checkRouteNum( main, 4 ) #3 links downs 7-3=4 |
| 434 | main.Functions.checkM2SintentNum( main, 4 ) |
pingping-lin | 4f80c49 | 2015-09-15 14:34:42 -0700 | [diff] [blame] | 435 | else: |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 436 | main.log.error( "Bring down link failed!" ) |
pingping-lin | b3ebd3f | 2015-09-28 22:17:05 -0700 | [diff] [blame] | 437 | main.cleanup() |
| 438 | main.exit() |
pingping-lin | 4f80c49 | 2015-09-15 14:34:42 -0700 | [diff] [blame] | 439 | |
pingping-lin | bab7f8a | 2015-09-21 17:33:36 -0700 | [diff] [blame] | 440 | main.step( "Check whether all flow status are ADDED" ) |
Jon Hall | 1aa0560 | 2016-04-05 10:25:39 -0700 | [diff] [blame] | 441 | flowCheck = utilities.retry( main.ONOScli.checkFlowsState, |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 442 | main.FALSE, |
| 443 | kwargs={'isPENDING':False}, |
| 444 | attempts=10 ) |
pingping-lin | bab7f8a | 2015-09-21 17:33:36 -0700 | [diff] [blame] | 445 | utilities.assertEquals( \ |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 446 | expect=main.TRUE, |
| 447 | actual=flowCheck, |
| 448 | onpass="Flow status is correct!", |
| 449 | onfail="Flow status is wrong!" ) |
pingping-lin | bab7f8a | 2015-09-21 17:33:36 -0700 | [diff] [blame] | 450 | |
pingping-lin | 829428d | 2015-09-22 20:50:00 -0700 | [diff] [blame] | 451 | # Ping test |
alison | e4121a9 | 2016-11-22 16:31:36 -0800 | [diff] [blame] | 452 | main.Functions.pingSpeakerToPeer( main, speakers=["spk1"], |
| 453 | peers=["p64514", "p64515", "p64516"], |
| 454 | expectAllSuccess=False ) |
| 455 | |
pingping-lin | 829428d | 2015-09-22 20:50:00 -0700 | [diff] [blame] | 456 | main.Functions.pingHostToHost( main, |
alison | e4121a9 | 2016-11-22 16:31:36 -0800 | [diff] [blame] | 457 | hosts=["h64514", "h64515", "h64516"], |
| 458 | expectAllSuccess=False ) |
pingping-lin | 4f80c49 | 2015-09-15 14:34:42 -0700 | [diff] [blame] | 459 | |
pingping-lin | 829428d | 2015-09-22 20:50:00 -0700 | [diff] [blame] | 460 | |
| 461 | def CASE6( self, main ): |
pingping-lin | 4f80c49 | 2015-09-15 14:34:42 -0700 | [diff] [blame] | 462 | ''' |
| 463 | Recover links to peers one by one, check routes/intents |
| 464 | ''' |
| 465 | import time |
pingping-lin | b3ebd3f | 2015-09-28 22:17:05 -0700 | [diff] [blame] | 466 | main.case( "Bring up links and check routes/intents" ) |
alison | e4121a9 | 2016-11-22 16:31:36 -0800 | [diff] [blame] | 467 | main.step( "Bring up the link between sw32 and p64514" ) |
| 468 | linkResult1 = main.Mininet.link( END1="sw32", END2="p64514", |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 469 | OPTION="up" ) |
| 470 | utilities.assertEquals( expect=main.TRUE, |
| 471 | actual=linkResult1, |
| 472 | onpass="Bring up link succeeded!", |
| 473 | onfail="Bring up link failed!" ) |
pingping-lin | b3ebd3f | 2015-09-28 22:17:05 -0700 | [diff] [blame] | 474 | if linkResult1 == main.TRUE: |
pingping-lin | 4f80c49 | 2015-09-15 14:34:42 -0700 | [diff] [blame] | 475 | time.sleep( int( main.params[ 'timers' ][ 'RouteDelivery' ] ) ) |
alison | e4121a9 | 2016-11-22 16:31:36 -0800 | [diff] [blame] | 476 | main.Functions.checkRouteNum( main, 5 ) #one links up, 4+1=5 |
| 477 | main.Functions.checkM2SintentNum( main, 5 ) |
pingping-lin | 4f80c49 | 2015-09-15 14:34:42 -0700 | [diff] [blame] | 478 | else: |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 479 | main.log.error( "Bring up link failed!" ) |
pingping-lin | b3ebd3f | 2015-09-28 22:17:05 -0700 | [diff] [blame] | 480 | main.cleanup() |
| 481 | main.exit() |
pingping-lin | 4f80c49 | 2015-09-15 14:34:42 -0700 | [diff] [blame] | 482 | |
alison | e4121a9 | 2016-11-22 16:31:36 -0800 | [diff] [blame] | 483 | main.step( "Bring up the link between sw8 and p64515" ) |
| 484 | linkResult2 = main.Mininet.link( END1="sw8", END2="p64515", |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 485 | OPTION="up" ) |
| 486 | utilities.assertEquals( expect=main.TRUE, |
| 487 | actual=linkResult2, |
| 488 | onpass="Bring up link succeeded!", |
| 489 | onfail="Bring up link failed!" ) |
pingping-lin | b3ebd3f | 2015-09-28 22:17:05 -0700 | [diff] [blame] | 490 | if linkResult2 == main.TRUE: |
pingping-lin | 4f80c49 | 2015-09-15 14:34:42 -0700 | [diff] [blame] | 491 | time.sleep( int( main.params[ 'timers' ][ 'RouteDelivery' ] ) ) |
alison | e4121a9 | 2016-11-22 16:31:36 -0800 | [diff] [blame] | 492 | main.Functions.checkRouteNum( main, 6 ) |
| 493 | main.Functions.checkM2SintentNum( main, 6 ) |
pingping-lin | 4f80c49 | 2015-09-15 14:34:42 -0700 | [diff] [blame] | 494 | else: |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 495 | main.log.error( "Bring up link failed!" ) |
pingping-lin | b3ebd3f | 2015-09-28 22:17:05 -0700 | [diff] [blame] | 496 | main.cleanup() |
| 497 | main.exit() |
pingping-lin | 4f80c49 | 2015-09-15 14:34:42 -0700 | [diff] [blame] | 498 | |
alison | e4121a9 | 2016-11-22 16:31:36 -0800 | [diff] [blame] | 499 | main.step( "Bring up the link between sw28 and p64516" ) |
| 500 | linkResult3 = main.Mininet.link( END1="sw28", END2="p64516", |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 501 | OPTION="up" ) |
| 502 | utilities.assertEquals( expect=main.TRUE, |
| 503 | actual=linkResult3, |
| 504 | onpass="Bring up link succeeded!", |
| 505 | onfail="Bring up link failed!" ) |
pingping-lin | b3ebd3f | 2015-09-28 22:17:05 -0700 | [diff] [blame] | 506 | if linkResult3 == main.TRUE: |
pingping-lin | 4f80c49 | 2015-09-15 14:34:42 -0700 | [diff] [blame] | 507 | time.sleep( int( main.params[ 'timers' ][ 'RouteDelivery' ] ) ) |
alison | e4121a9 | 2016-11-22 16:31:36 -0800 | [diff] [blame] | 508 | main.Functions.checkRouteNum( main, 7 ) |
| 509 | main.Functions.checkM2SintentNum( main, 7 ) |
pingping-lin | 4f80c49 | 2015-09-15 14:34:42 -0700 | [diff] [blame] | 510 | else: |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 511 | main.log.error( "Bring up link failed!" ) |
pingping-lin | b3ebd3f | 2015-09-28 22:17:05 -0700 | [diff] [blame] | 512 | main.cleanup() |
| 513 | main.exit() |
pingping-lin | bab7f8a | 2015-09-21 17:33:36 -0700 | [diff] [blame] | 514 | |
| 515 | main.step( "Check whether all flow status are ADDED" ) |
Jon Hall | 1aa0560 | 2016-04-05 10:25:39 -0700 | [diff] [blame] | 516 | flowCheck = utilities.retry( main.ONOScli.checkFlowsState, |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 517 | main.FALSE, |
| 518 | kwargs={'isPENDING':False}, |
| 519 | attempts=10 ) |
pingping-lin | bab7f8a | 2015-09-21 17:33:36 -0700 | [diff] [blame] | 520 | utilities.assertEquals( \ |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 521 | expect=main.TRUE, |
| 522 | actual=flowCheck, |
| 523 | onpass="Flow status is correct!", |
| 524 | onfail="Flow status is wrong!" ) |
pingping-lin | 829428d | 2015-09-22 20:50:00 -0700 | [diff] [blame] | 525 | |
| 526 | # Ping test |
alison | e4121a9 | 2016-11-22 16:31:36 -0800 | [diff] [blame] | 527 | main.Functions.pingSpeakerToPeer( main, speakers=["spk1"], |
| 528 | peers=["p64514", "p64515", "p64516"], |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 529 | expectAllSuccess=True ) |
pingping-lin | 829428d | 2015-09-22 20:50:00 -0700 | [diff] [blame] | 530 | main.Functions.pingHostToHost( main, |
alison | e4121a9 | 2016-11-22 16:31:36 -0800 | [diff] [blame] | 531 | hosts=["h64514", "h64515", "h64516"], |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 532 | expectAllSuccess=True ) |
pingping-lin | 8244a3b | 2015-09-16 13:36:56 -0700 | [diff] [blame] | 533 | |
| 534 | |
pingping-lin | 829428d | 2015-09-22 20:50:00 -0700 | [diff] [blame] | 535 | def CASE7( self, main ): |
pingping-lin | 8244a3b | 2015-09-16 13:36:56 -0700 | [diff] [blame] | 536 | ''' |
pingping-lin | 829428d | 2015-09-22 20:50:00 -0700 | [diff] [blame] | 537 | Shut down a edge switch, check P-2-P and M-2-S intents, ping test |
pingping-lin | 8244a3b | 2015-09-16 13:36:56 -0700 | [diff] [blame] | 538 | ''' |
| 539 | import time |
pingping-lin | b3ebd3f | 2015-09-28 22:17:05 -0700 | [diff] [blame] | 540 | main.case( "Stop edge sw32,check P-2-P and M-2-S intents, ping test" ) |
pingping-lin | 8244a3b | 2015-09-16 13:36:56 -0700 | [diff] [blame] | 541 | main.step( "Stop sw32" ) |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 542 | result = main.Mininet.switch( SW="sw32", OPTION="stop" ) |
| 543 | utilities.assertEquals( expect=main.TRUE, actual=result, |
| 544 | onpass="Stopping switch succeeded!", |
| 545 | onfail="Stopping switch failed!" ) |
pingping-lin | b3ebd3f | 2015-09-28 22:17:05 -0700 | [diff] [blame] | 546 | |
pingping-lin | 8244a3b | 2015-09-16 13:36:56 -0700 | [diff] [blame] | 547 | if result == main.TRUE: |
| 548 | time.sleep( int( main.params[ 'timers' ][ 'RouteDelivery' ] ) ) |
alison | e4121a9 | 2016-11-22 16:31:36 -0800 | [diff] [blame] | 549 | main.Functions.checkRouteNum( main, 6 ) #stop one sw, which bring one link between peer and sw down. |
| 550 | main.Functions.checkM2SintentNum( main, 6 ) |
| 551 | main.Functions.checkP2PintentNum( main, 36 ) #6 intents from sw to speakers x 6 intents to sw x 2 intents between them |
pingping-lin | 8244a3b | 2015-09-16 13:36:56 -0700 | [diff] [blame] | 552 | else: |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 553 | main.log.error( "Stopping switch failed!" ) |
pingping-lin | b3ebd3f | 2015-09-28 22:17:05 -0700 | [diff] [blame] | 554 | main.cleanup() |
| 555 | main.exit() |
pingping-lin | 8244a3b | 2015-09-16 13:36:56 -0700 | [diff] [blame] | 556 | |
pingping-lin | 829428d | 2015-09-22 20:50:00 -0700 | [diff] [blame] | 557 | main.step( "Check ping between hosts behind BGP peers" ) |
alison | e4121a9 | 2016-11-22 16:31:36 -0800 | [diff] [blame] | 558 | result1 = main.Mininet.pingHost( src="h64514", target="h64515" ) |
| 559 | result2 = main.Mininet.pingHost( src="h64515", target="h64516" ) |
| 560 | result3 = main.Mininet.pingHost( src="h64514", target="h64516" ) |
pingping-lin | 829428d | 2015-09-22 20:50:00 -0700 | [diff] [blame] | 561 | |
| 562 | pingResult1 = ( result1 == main.FALSE ) and ( result2 == main.TRUE ) \ |
| 563 | and ( result3 == main.FALSE ) |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 564 | utilities.assert_equals( expect=True, actual=pingResult1, |
| 565 | onpass="Ping test result is correct", |
| 566 | onfail="Ping test result is wrong" ) |
pingping-lin | 829428d | 2015-09-22 20:50:00 -0700 | [diff] [blame] | 567 | |
| 568 | if pingResult1 == False: |
| 569 | main.cleanup() |
| 570 | main.exit() |
| 571 | |
| 572 | main.step( "Check ping between BGP peers and speakers" ) |
alison | e4121a9 | 2016-11-22 16:31:36 -0800 | [diff] [blame] | 573 | result4 = main.Mininet.pingHost( src="spk1", target="p64514" ) |
| 574 | result5 = main.Mininet.pingHost( src="spk1", target="p64515" ) |
| 575 | result6 = main.Mininet.pingHost( src="spk1", target="p64516" ) |
pingping-lin | 829428d | 2015-09-22 20:50:00 -0700 | [diff] [blame] | 576 | |
| 577 | pingResult2 = ( result4 == main.FALSE ) and ( result5 == main.TRUE ) \ |
| 578 | and ( result6 == main.TRUE ) |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 579 | utilities.assert_equals( expect=True, actual=pingResult2, |
| 580 | onpass="Speaker1 ping peers successful", |
| 581 | onfail="Speaker1 ping peers NOT successful" ) |
pingping-lin | 829428d | 2015-09-22 20:50:00 -0700 | [diff] [blame] | 582 | |
| 583 | if pingResult2 == False: |
| 584 | main.cleanup() |
| 585 | main.exit() |
| 586 | |
pingping-lin | bab7f8a | 2015-09-21 17:33:36 -0700 | [diff] [blame] | 587 | main.step( "Check whether all flow status are ADDED" ) |
Jon Hall | 1aa0560 | 2016-04-05 10:25:39 -0700 | [diff] [blame] | 588 | flowCheck = utilities.retry( main.ONOScli.checkFlowsState, |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 589 | main.FALSE, |
| 590 | kwargs={'isPENDING':False}, |
| 591 | attempts=10 ) |
pingping-lin | bab7f8a | 2015-09-21 17:33:36 -0700 | [diff] [blame] | 592 | utilities.assertEquals( \ |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 593 | expect=main.TRUE, |
| 594 | actual=flowCheck, |
| 595 | onpass="Flow status is correct!", |
| 596 | onfail="Flow status is wrong!" ) |
pingping-lin | 8244a3b | 2015-09-16 13:36:56 -0700 | [diff] [blame] | 597 | |
pingping-lin | d791d34 | 2015-09-17 18:34:31 -0700 | [diff] [blame] | 598 | |
pingping-lin | 8244a3b | 2015-09-16 13:36:56 -0700 | [diff] [blame] | 599 | def CASE8( self, main ): |
pingping-lin | d791d34 | 2015-09-17 18:34:31 -0700 | [diff] [blame] | 600 | ''' |
pingping-lin | b3ebd3f | 2015-09-28 22:17:05 -0700 | [diff] [blame] | 601 | Bring up the edge switch (sw32) which was shut down in CASE7, |
pingping-lin | d791d34 | 2015-09-17 18:34:31 -0700 | [diff] [blame] | 602 | check P-2-P and M-2-S intents, ping test |
| 603 | ''' |
| 604 | import time |
pingping-lin | b3ebd3f | 2015-09-28 22:17:05 -0700 | [diff] [blame] | 605 | main.case( "Start the edge sw32, check P-2-P and M-2-S intents, ping test" ) |
pingping-lin | d791d34 | 2015-09-17 18:34:31 -0700 | [diff] [blame] | 606 | main.step( "Start sw32" ) |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 607 | result1 = main.Mininet.switch( SW="sw32", OPTION="start" ) |
pingping-lin | b3ebd3f | 2015-09-28 22:17:05 -0700 | [diff] [blame] | 608 | utilities.assertEquals( \ |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 609 | expect=main.TRUE, |
| 610 | actual=result1, |
| 611 | onpass="Starting switch succeeded!", |
| 612 | onfail="Starting switch failed!" ) |
pingping-lin | b3ebd3f | 2015-09-28 22:17:05 -0700 | [diff] [blame] | 613 | |
pingping-lin | d791d34 | 2015-09-17 18:34:31 -0700 | [diff] [blame] | 614 | result2 = main.Mininet.assignSwController( "sw32", ONOS1Ip ) |
pingping-lin | b3ebd3f | 2015-09-28 22:17:05 -0700 | [diff] [blame] | 615 | utilities.assertEquals( \ |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 616 | expect=main.TRUE, |
| 617 | actual=result2, |
| 618 | onpass="Connect switch to ONOS succeeded!", |
| 619 | onfail="Connect switch to ONOS failed!" ) |
pingping-lin | d791d34 | 2015-09-17 18:34:31 -0700 | [diff] [blame] | 620 | |
| 621 | if result1 and result2: |
| 622 | time.sleep( int( main.params[ 'timers' ][ 'RouteDelivery' ] ) ) |
alison | e4121a9 | 2016-11-22 16:31:36 -0800 | [diff] [blame] | 623 | main.Functions.checkRouteNum( main, 7 ) |
| 624 | main.Functions.checkM2SintentNum( main, 7 ) |
| 625 | main.Functions.checkP2PintentNum( main, 42 ) |
pingping-lin | d791d34 | 2015-09-17 18:34:31 -0700 | [diff] [blame] | 626 | else: |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 627 | main.log.error( "Starting switch failed!" ) |
pingping-lin | d791d34 | 2015-09-17 18:34:31 -0700 | [diff] [blame] | 628 | main.cleanup() |
pingping-lin | b3ebd3f | 2015-09-28 22:17:05 -0700 | [diff] [blame] | 629 | main.exit() |
pingping-lin | 4f80c49 | 2015-09-15 14:34:42 -0700 | [diff] [blame] | 630 | |
pingping-lin | bab7f8a | 2015-09-21 17:33:36 -0700 | [diff] [blame] | 631 | main.step( "Check whether all flow status are ADDED" ) |
Jon Hall | 1aa0560 | 2016-04-05 10:25:39 -0700 | [diff] [blame] | 632 | flowCheck = utilities.retry( main.ONOScli.checkFlowsState, |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 633 | main.FALSE, |
| 634 | kwargs={'isPENDING':False}, |
| 635 | attempts=10 ) |
pingping-lin | bab7f8a | 2015-09-21 17:33:36 -0700 | [diff] [blame] | 636 | utilities.assertEquals( \ |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 637 | expect=main.TRUE, |
| 638 | actual=flowCheck, |
| 639 | onpass="Flow status is correct!", |
| 640 | onfail="Flow status is wrong!" ) |
pingping-lin | bab7f8a | 2015-09-21 17:33:36 -0700 | [diff] [blame] | 641 | |
pingping-lin | 829428d | 2015-09-22 20:50:00 -0700 | [diff] [blame] | 642 | # Ping test |
alison | e4121a9 | 2016-11-22 16:31:36 -0800 | [diff] [blame] | 643 | main.Functions.pingSpeakerToPeer( main, speakers=["spk1"], |
| 644 | peers=["p64514", "p64515", "p64516"], |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 645 | expectAllSuccess=True ) |
pingping-lin | 829428d | 2015-09-22 20:50:00 -0700 | [diff] [blame] | 646 | main.Functions.pingHostToHost( main, |
alison | e4121a9 | 2016-11-22 16:31:36 -0800 | [diff] [blame] | 647 | hosts=["h64514", "h64515", "h64516"], |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 648 | expectAllSuccess=True ) |
pingping-lin | bab7f8a | 2015-09-21 17:33:36 -0700 | [diff] [blame] | 649 | |
pingping-lin | 829428d | 2015-09-22 20:50:00 -0700 | [diff] [blame] | 650 | |
| 651 | def CASE9( self, main ): |
pingping-lin | bab7f8a | 2015-09-21 17:33:36 -0700 | [diff] [blame] | 652 | ''' |
| 653 | Bring down a switch in best path, check: |
| 654 | route number, P2P intent number, M2S intent number, ping test |
| 655 | ''' |
pingping-lin | b3ebd3f | 2015-09-28 22:17:05 -0700 | [diff] [blame] | 656 | main.case( "Stop sw11 located in best path, \ |
pingping-lin | bab7f8a | 2015-09-21 17:33:36 -0700 | [diff] [blame] | 657 | check route number, P2P intent number, M2S intent number, ping test" ) |
| 658 | |
pingping-lin | 581a366 | 2015-09-29 17:43:39 -0700 | [diff] [blame] | 659 | main.log.info( "Check the flow number correctness before stopping sw11" ) |
alison | e4121a9 | 2016-11-22 16:31:36 -0800 | [diff] [blame] | 660 | main.Functions.checkFlowNum( main, "sw11", 43 ) |
pingping-lin | bab7f8a | 2015-09-21 17:33:36 -0700 | [diff] [blame] | 661 | main.Functions.checkFlowNum( main, "sw1", 3 ) |
alison | e4121a9 | 2016-11-22 16:31:36 -0800 | [diff] [blame] | 662 | main.Functions.checkFlowNum( main, "sw7", 34 ) |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 663 | main.log.debug( main.Mininet.checkFlows( "sw11" ) ) |
| 664 | main.log.debug( main.Mininet.checkFlows( "sw1" ) ) |
| 665 | main.log.debug( main.Mininet.checkFlows( "sw7" ) ) |
pingping-lin | bab7f8a | 2015-09-21 17:33:36 -0700 | [diff] [blame] | 666 | |
| 667 | main.step( "Stop sw11" ) |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 668 | result = main.Mininet.switch( SW="sw11", OPTION="stop" ) |
| 669 | utilities.assertEquals( expect=main.TRUE, actual=result, |
| 670 | onpass="Stopping switch succeeded!", |
| 671 | onfail="Stopping switch failed!" ) |
pingping-lin | bab7f8a | 2015-09-21 17:33:36 -0700 | [diff] [blame] | 672 | if result: |
| 673 | time.sleep( int( main.params[ 'timers' ][ 'RouteDelivery' ] ) ) |
pingping-lin | b3ebd3f | 2015-09-28 22:17:05 -0700 | [diff] [blame] | 674 | time.sleep( int( main.params[ 'timers' ][ 'RouteDelivery' ] ) ) |
alison | e4121a9 | 2016-11-22 16:31:36 -0800 | [diff] [blame] | 675 | main.Functions.checkRouteNum( main, 7 ) |
| 676 | main.Functions.checkM2SintentNum( main, 7 ) |
| 677 | main.Functions.checkP2PintentNum( main, 42 ) |
pingping-lin | bab7f8a | 2015-09-21 17:33:36 -0700 | [diff] [blame] | 678 | else: |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 679 | main.log.error( "Stopping switch failed!" ) |
pingping-lin | bab7f8a | 2015-09-21 17:33:36 -0700 | [diff] [blame] | 680 | main.cleanup() |
pingping-lin | b3ebd3f | 2015-09-28 22:17:05 -0700 | [diff] [blame] | 681 | main.exit() |
pingping-lin | bab7f8a | 2015-09-21 17:33:36 -0700 | [diff] [blame] | 682 | |
| 683 | main.step( "Check whether all flow status are ADDED" ) |
Jon Hall | 1aa0560 | 2016-04-05 10:25:39 -0700 | [diff] [blame] | 684 | flowCheck = utilities.retry( main.ONOScli.checkFlowsState, |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 685 | main.FALSE, |
| 686 | kwargs={'isPENDING':False}, |
| 687 | attempts=10 ) |
pingping-lin | bab7f8a | 2015-09-21 17:33:36 -0700 | [diff] [blame] | 688 | utilities.assertEquals( \ |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 689 | expect=main.TRUE, |
| 690 | actual=flowCheck, |
| 691 | onpass="Flow status is correct!", |
| 692 | onfail="Flow status is wrong!" ) |
pingping-lin | 829428d | 2015-09-22 20:50:00 -0700 | [diff] [blame] | 693 | # Ping test |
alison | e4121a9 | 2016-11-22 16:31:36 -0800 | [diff] [blame] | 694 | main.Functions.pingSpeakerToPeer( main, speakers=["spk1"], |
| 695 | peers=["p64514", "p64515", "p64516"], |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 696 | expectAllSuccess=True ) |
pingping-lin | 829428d | 2015-09-22 20:50:00 -0700 | [diff] [blame] | 697 | main.Functions.pingHostToHost( main, |
alison | e4121a9 | 2016-11-22 16:31:36 -0800 | [diff] [blame] | 698 | hosts=["h64514", "h64515", "h64516"], |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 699 | expectAllSuccess=True ) |
pingping-lin | bab7f8a | 2015-09-21 17:33:36 -0700 | [diff] [blame] | 700 | |
| 701 | |
| 702 | def CASE10( self, main ): |
| 703 | ''' |
| 704 | Bring up the switch which was stopped in CASE9, check: |
| 705 | route number, P2P intent number, M2S intent number, ping test |
| 706 | ''' |
pingping-lin | b3ebd3f | 2015-09-28 22:17:05 -0700 | [diff] [blame] | 707 | main.case( "Start sw11 which was stopped in CASE9, \ |
pingping-lin | bab7f8a | 2015-09-21 17:33:36 -0700 | [diff] [blame] | 708 | check route number, P2P intent number, M2S intent number, ping test" ) |
pingping-lin | b3ebd3f | 2015-09-28 22:17:05 -0700 | [diff] [blame] | 709 | |
pingping-lin | 581a366 | 2015-09-29 17:43:39 -0700 | [diff] [blame] | 710 | main.log.info( "Check the flow status before starting sw11" ) |
alison | e4121a9 | 2016-11-22 16:31:36 -0800 | [diff] [blame] | 711 | main.Functions.checkFlowNum( main, "sw1", 33 ) |
| 712 | main.Functions.checkFlowNum( main, "sw7", 28 ) |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 713 | main.log.debug( main.Mininet.checkFlows( "sw1" ) ) |
| 714 | main.log.debug( main.Mininet.checkFlows( "sw7" ) ) |
pingping-lin | b3ebd3f | 2015-09-28 22:17:05 -0700 | [diff] [blame] | 715 | |
pingping-lin | bab7f8a | 2015-09-21 17:33:36 -0700 | [diff] [blame] | 716 | main.step( "Start sw11" ) |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 717 | result1 = main.Mininet.switch( SW="sw11", OPTION="start" ) |
| 718 | utilities.assertEquals( expect=main.TRUE, actual=result1, |
| 719 | onpass="Starting switch succeeded!", |
| 720 | onfail="Starting switch failed!" ) |
pingping-lin | 0351dee | 2015-09-28 13:26:35 -0700 | [diff] [blame] | 721 | result2 = main.Mininet.assignSwController( "sw11", ONOS1Ip ) |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 722 | utilities.assertEquals( expect=main.TRUE, actual=result2, |
| 723 | onpass="Connect switch to ONOS succeeded!", |
| 724 | onfail="Connect switch to ONOS failed!" ) |
pingping-lin | 0351dee | 2015-09-28 13:26:35 -0700 | [diff] [blame] | 725 | if result1 and result2: |
pingping-lin | bab7f8a | 2015-09-21 17:33:36 -0700 | [diff] [blame] | 726 | time.sleep( int( main.params[ 'timers' ][ 'RouteDelivery' ] ) ) |
alison | e4121a9 | 2016-11-22 16:31:36 -0800 | [diff] [blame] | 727 | main.Functions.checkRouteNum( main, 7 ) |
| 728 | main.Functions.checkM2SintentNum( main, 7 ) |
| 729 | main.Functions.checkP2PintentNum( main, 42 ) |
pingping-lin | bab7f8a | 2015-09-21 17:33:36 -0700 | [diff] [blame] | 730 | |
pingping-lin | 3f091d6 | 2015-09-29 12:00:05 -0700 | [diff] [blame] | 731 | main.log.debug( main.Mininet.checkFlows( "sw11" ) ) |
| 732 | main.log.debug( main.Mininet.checkFlows( "sw1" ) ) |
| 733 | main.log.debug( main.Mininet.checkFlows( "sw7" ) ) |
pingping-lin | bab7f8a | 2015-09-21 17:33:36 -0700 | [diff] [blame] | 734 | else: |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 735 | main.log.error( "Starting switch failed!" ) |
pingping-lin | bab7f8a | 2015-09-21 17:33:36 -0700 | [diff] [blame] | 736 | main.cleanup() |
pingping-lin | b3ebd3f | 2015-09-28 22:17:05 -0700 | [diff] [blame] | 737 | main.exit() |
pingping-lin | bab7f8a | 2015-09-21 17:33:36 -0700 | [diff] [blame] | 738 | |
| 739 | main.step( "Check whether all flow status are ADDED" ) |
Jon Hall | 1aa0560 | 2016-04-05 10:25:39 -0700 | [diff] [blame] | 740 | flowCheck = utilities.retry( main.ONOScli.checkFlowsState, |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 741 | main.FALSE, |
| 742 | kwargs={'isPENDING':False}, |
| 743 | attempts=10 ) |
pingping-lin | bab7f8a | 2015-09-21 17:33:36 -0700 | [diff] [blame] | 744 | utilities.assertEquals( \ |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 745 | expect=main.TRUE, |
| 746 | actual=flowCheck, |
| 747 | onpass="Flow status is correct!", |
| 748 | onfail="Flow status is wrong!" ) |
pingping-lin | 829428d | 2015-09-22 20:50:00 -0700 | [diff] [blame] | 749 | # Ping test |
alison | e4121a9 | 2016-11-22 16:31:36 -0800 | [diff] [blame] | 750 | main.Functions.pingSpeakerToPeer( main, speakers=["spk1"], |
| 751 | peers=["p64514", "p64515", "p64516"], |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 752 | expectAllSuccess=True ) |
pingping-lin | 829428d | 2015-09-22 20:50:00 -0700 | [diff] [blame] | 753 | main.Functions.pingHostToHost( main, |
alison | e4121a9 | 2016-11-22 16:31:36 -0800 | [diff] [blame] | 754 | hosts=["h64514", "h64515", "h64516"], |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 755 | expectAllSuccess=True ) |