Jeremy Ronquillo | b27ce4c | 2017-07-17 12:41:28 -0700 | [diff] [blame] | 1 | """ |
Jeremy Ronquillo | 23fb216 | 2017-09-15 14:59:57 -0700 | [diff] [blame^] | 2 | Copyright 2016 Open Networking Foundation ( ONF ) |
Jeremy Ronquillo | b27ce4c | 2017-07-17 12:41:28 -0700 | [diff] [blame] | 3 | |
| 4 | Please refer questions to either the onos test mailing list at <onos-test@onosproject.org>, |
| 5 | the System Testing Plans and Results wiki page at <https://wiki.onosproject.org/x/voMg>, |
| 6 | or the System Testing Guide page at <https://wiki.onosproject.org/x/WYQg> |
| 7 | |
| 8 | TestON is free software: you can redistribute it and/or modify |
| 9 | it under the terms of the GNU General Public License as published by |
| 10 | the Free Software Foundation, either version 2 of the License, or |
Jeremy Ronquillo | 23fb216 | 2017-09-15 14:59:57 -0700 | [diff] [blame^] | 11 | ( at your option ) any later version. |
Jeremy Ronquillo | b27ce4c | 2017-07-17 12:41:28 -0700 | [diff] [blame] | 12 | |
| 13 | TestON is distributed in the hope that it will be useful, |
| 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 | GNU General Public License for more details. |
| 17 | |
| 18 | You should have received a copy of the GNU General Public License |
| 19 | along with TestON. If not, see <http://www.gnu.org/licenses/>. |
| 20 | """ |
pingping-lin | 28e7b21 | 2015-09-10 10:14:58 -0700 | [diff] [blame] | 21 | # Testing the functionality of SDN-IP with single ONOS instance |
Jeremy Ronquillo | 23fb216 | 2017-09-15 14:59:57 -0700 | [diff] [blame^] | 22 | |
| 23 | |
pingping-lin | 5bb663b | 2015-09-24 11:47:50 -0700 | [diff] [blame] | 24 | class USECASE_SdnipFunction: |
pingping-lin | 28e7b21 | 2015-09-10 10:14:58 -0700 | [diff] [blame] | 25 | |
| 26 | def __init__( self ): |
| 27 | self.default = '' |
| 28 | global branchName |
| 29 | |
pingping-lin | b702c60 | 2015-09-10 17:00:29 -0700 | [diff] [blame] | 30 | def CASE100( self, main ): |
| 31 | """ |
| 32 | Start mininet |
| 33 | """ |
| 34 | import os |
Jon Hall | 70b768c | 2016-04-19 08:38:29 -0700 | [diff] [blame] | 35 | main.case( "Setup the Mininet testbed" ) |
pingping-lin | b702c60 | 2015-09-10 17:00:29 -0700 | [diff] [blame] | 36 | main.dependencyPath = main.testDir + \ |
| 37 | main.params[ 'DEPENDENCY' ][ 'path' ] |
| 38 | main.topology = main.params[ 'DEPENDENCY' ][ 'topology' ] |
| 39 | |
| 40 | main.step( "Starting Mininet Topology" ) |
| 41 | topology = main.dependencyPath + main.topology |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 42 | topoResult = main.Mininet.startNet( topoFile=topology ) |
| 43 | utilities.assert_equals( expect=main.TRUE, |
| 44 | actual=topoResult, |
| 45 | onpass="Successfully loaded topology", |
| 46 | onfail="Failed to load topology" ) |
pingping-lin | b702c60 | 2015-09-10 17:00:29 -0700 | [diff] [blame] | 47 | # Exit if topology did not load properly |
| 48 | if not topoResult: |
Devin Lim | 4407596 | 2017-08-11 10:56:37 -0700 | [diff] [blame] | 49 | main.cleanAndExit() |
pingping-lin | 5bb663b | 2015-09-24 11:47:50 -0700 | [diff] [blame] | 50 | main.step( "Connect switches to controller" ) |
| 51 | |
pingping-lin | 5bb663b | 2015-09-24 11:47:50 -0700 | [diff] [blame] | 52 | # connect all switches to controller |
| 53 | swResult = main.TRUE |
Jeremy Ronquillo | 23fb216 | 2017-09-15 14:59:57 -0700 | [diff] [blame^] | 54 | for i in range( 1, int( main.params[ 'config' ][ 'switchNum' ] ) + 1 ): |
pingping-lin | 5bb663b | 2015-09-24 11:47:50 -0700 | [diff] [blame] | 55 | sw = "sw%s" % ( i ) |
Devin Lim | 142b534 | 2017-07-20 15:22:39 -0700 | [diff] [blame] | 56 | swResult = swResult and \ |
| 57 | main.Mininet.assignSwController( sw, main.Cluster.active( 0 ).ipAddress ) |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 58 | utilities.assert_equals( expect=main.TRUE, |
| 59 | actual=swResult, |
| 60 | onpass="Successfully connect all switches to ONOS", |
| 61 | onfail="Failed to connect all switches to ONOS" ) |
pingping-lin | 5bb663b | 2015-09-24 11:47:50 -0700 | [diff] [blame] | 62 | if not swResult: |
Devin Lim | 4407596 | 2017-08-11 10:56:37 -0700 | [diff] [blame] | 63 | main.cleanAndExit() |
pingping-lin | 5bb663b | 2015-09-24 11:47:50 -0700 | [diff] [blame] | 64 | |
| 65 | main.step( "Set up tunnel from Mininet node to onos node" ) |
Devin Lim | 142b534 | 2017-07-20 15:22:39 -0700 | [diff] [blame] | 66 | forwarding1 = '%s:2000:%s:2000' % ( '1.1.1.2', main.Cluster.active( 0 ).ipAddress ) |
pingping-lin | 5bb663b | 2015-09-24 11:47:50 -0700 | [diff] [blame] | 67 | command = 'ssh -nNT -o "PasswordAuthentication no" \ |
Devin Lim | 142b534 | 2017-07-20 15:22:39 -0700 | [diff] [blame] | 68 | -o "StrictHostKeyChecking no" -l sdn -L %s %s & ' % \ |
| 69 | ( forwarding1, main.Cluster.active( 0 ).ipAddress ) |
pingping-lin | 5bb663b | 2015-09-24 11:47:50 -0700 | [diff] [blame] | 70 | |
| 71 | tunnelResult = main.TRUE |
| 72 | tunnelResult = main.Mininet.node( "root", command ) |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 73 | utilities.assert_equals( expect=True, |
| 74 | actual=( "PasswordAuthentication" in tunnelResult ), |
| 75 | onpass="Created tunnel succeeded", |
| 76 | onfail="Create tunnel failed" ) |
Jeremy Ronquillo | 23fb216 | 2017-09-15 14:59:57 -0700 | [diff] [blame^] | 77 | if ( "PasswordAuthentication" not in tunnelResult ): |
Devin Lim | 4407596 | 2017-08-11 10:56:37 -0700 | [diff] [blame] | 78 | main.cleanAndExit() |
pingping-lin | 5bb663b | 2015-09-24 11:47:50 -0700 | [diff] [blame] | 79 | |
pingping-lin | b702c60 | 2015-09-10 17:00:29 -0700 | [diff] [blame] | 80 | def CASE101( self, main ): |
pingping-lin | 28e7b21 | 2015-09-10 10:14:58 -0700 | [diff] [blame] | 81 | """ |
pingping-lin | ea32cf8 | 2015-10-08 22:37:37 -0700 | [diff] [blame] | 82 | Package ONOS and install it |
pingping-lin | 28e7b21 | 2015-09-10 10:14:58 -0700 | [diff] [blame] | 83 | Startup sequence: |
| 84 | cell <name> |
| 85 | onos-verify-cell |
pingping-lin | 28e7b21 | 2015-09-10 10:14:58 -0700 | [diff] [blame] | 86 | onos-package |
| 87 | onos-install -f |
| 88 | onos-wait-for-start |
| 89 | """ |
pingping-lin | 28e7b21 | 2015-09-10 10:14:58 -0700 | [diff] [blame] | 90 | import time |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 91 | import os |
Devin Lim | 58046fa | 2017-07-05 16:55:00 -0700 | [diff] [blame] | 92 | try: |
| 93 | from tests.USECASE.dependencies.sdnipBaseFunction import SdnBase |
| 94 | except ImportError: |
| 95 | main.log.error( "sdnBase not found. exiting the test" ) |
Devin Lim | 4407596 | 2017-08-11 10:56:37 -0700 | [diff] [blame] | 96 | main.cleanAndExit() |
Devin Lim | 58046fa | 2017-07-05 16:55:00 -0700 | [diff] [blame] | 97 | try: |
| 98 | main.sdnBase |
| 99 | except ( NameError, AttributeError ): |
| 100 | main.sdnBase = SdnBase() |
| 101 | |
| 102 | main.sdnBase.initSetup() |
pingping-lin | 28e7b21 | 2015-09-10 10:14:58 -0700 | [diff] [blame] | 103 | |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 104 | def CASE200( self, main ): |
alison | e4121a9 | 2016-11-22 16:31:36 -0800 | [diff] [blame] | 105 | import json |
| 106 | import time |
| 107 | |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 108 | main.case( "Activate sdn-ip application" ) |
| 109 | main.log.info( "waiting link discovery......" ) |
Jeremy Ronquillo | 23fb216 | 2017-09-15 14:59:57 -0700 | [diff] [blame^] | 110 | time.sleep( int( main.params[ 'timers' ][ 'TopoDiscovery' ] ) ) |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 111 | |
pingping-lin | b3ebd3f | 2015-09-28 22:17:05 -0700 | [diff] [blame] | 112 | main.log.info( "Get links in the network" ) |
Devin Lim | 142b534 | 2017-07-20 15:22:39 -0700 | [diff] [blame] | 113 | summaryResult = main.Cluster.active( 0 ).CLI.summary() |
pingping-lin | 3f091d6 | 2015-09-29 12:00:05 -0700 | [diff] [blame] | 114 | linkNum = json.loads( summaryResult )[ "links" ] |
Devin Lim | 142b534 | 2017-07-20 15:22:39 -0700 | [diff] [blame] | 115 | listResult = main.Cluster.active( 0 ).CLI.links( jsonFormat=False ) |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 116 | main.log.info( listResult ) |
pingping-lin | 3f091d6 | 2015-09-29 12:00:05 -0700 | [diff] [blame] | 117 | if linkNum < 100: |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 118 | main.log.error( "Link number is wrong!" ) |
Jeremy Ronquillo | 23fb216 | 2017-09-15 14:59:57 -0700 | [diff] [blame^] | 119 | time.sleep( int( main.params[ 'timers' ][ 'TopoDiscovery' ] ) ) |
Devin Lim | 142b534 | 2017-07-20 15:22:39 -0700 | [diff] [blame] | 120 | listResult = main.Cluster.active( 0 ).CLI.links( jsonFormat=False ) |
pingping-lin | 3f091d6 | 2015-09-29 12:00:05 -0700 | [diff] [blame] | 121 | main.log.info( listResult ) |
Devin Lim | 4407596 | 2017-08-11 10:56:37 -0700 | [diff] [blame] | 122 | main.cleanAndExit() |
pingping-lin | 3f091d6 | 2015-09-29 12:00:05 -0700 | [diff] [blame] | 123 | |
pingping-lin | b3ebd3f | 2015-09-28 22:17:05 -0700 | [diff] [blame] | 124 | main.step( "Activate sdn-ip application" ) |
Devin Lim | 142b534 | 2017-07-20 15:22:39 -0700 | [diff] [blame] | 125 | activeSDNIPresult = main.Cluster.active( 0 ).CLI.activateApp( "org.onosproject.sdnip" ) |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 126 | utilities.assert_equals( expect=main.TRUE, |
| 127 | actual=activeSDNIPresult, |
| 128 | onpass="Activate SDN-IP succeeded", |
| 129 | onfail="Activate SDN-IP failed" ) |
pingping-lin | 3f091d6 | 2015-09-29 12:00:05 -0700 | [diff] [blame] | 130 | if not activeSDNIPresult: |
| 131 | main.log.info( "Activate SDN-IP failed!" ) |
Devin Lim | 4407596 | 2017-08-11 10:56:37 -0700 | [diff] [blame] | 132 | main.cleanAndExit() |
pingping-lin | 3f091d6 | 2015-09-29 12:00:05 -0700 | [diff] [blame] | 133 | |
pingping-lin | b3ebd3f | 2015-09-28 22:17:05 -0700 | [diff] [blame] | 134 | main.log.info( "Wait SDN-IP to finish installing connectivity intents \ |
pingping-lin | b702c60 | 2015-09-10 17:00:29 -0700 | [diff] [blame] | 135 | and the BGP paths in data plane are ready..." ) |
pingping-lin | 28e7b21 | 2015-09-10 10:14:58 -0700 | [diff] [blame] | 136 | time.sleep( int( main.params[ 'timers' ][ 'SdnIpSetup' ] ) ) |
pingping-lin | b702c60 | 2015-09-10 17:00:29 -0700 | [diff] [blame] | 137 | main.log.info( "Wait Quagga to finish delivery all routes to each \ |
| 138 | other and to sdn-ip, plus finish installing all intents..." ) |
pingping-lin | 28e7b21 | 2015-09-10 10:14:58 -0700 | [diff] [blame] | 139 | time.sleep( int( main.params[ 'timers' ][ 'RouteDelivery' ] ) ) |
| 140 | time.sleep( int( main.params[ 'timers' ][ 'PathAvailable' ] ) ) |
| 141 | |
pingping-lin | 4f80c49 | 2015-09-15 14:34:42 -0700 | [diff] [blame] | 142 | def CASE102( self, main ): |
Jeremy Ronquillo | 23fb216 | 2017-09-15 14:59:57 -0700 | [diff] [blame^] | 143 | """ |
pingping-lin | 4f80c49 | 2015-09-15 14:34:42 -0700 | [diff] [blame] | 144 | This test case is to load the methods from other Python files. |
Jeremy Ronquillo | 23fb216 | 2017-09-15 14:59:57 -0700 | [diff] [blame^] | 145 | """ |
alison | e4121a9 | 2016-11-22 16:31:36 -0800 | [diff] [blame] | 146 | import imp |
| 147 | |
pingping-lin | b3ebd3f | 2015-09-28 22:17:05 -0700 | [diff] [blame] | 148 | main.case( "Loading methods from other Python file" ) |
pingping-lin | 4f80c49 | 2015-09-15 14:34:42 -0700 | [diff] [blame] | 149 | # load the methods from other file |
| 150 | wrapperFile = main.params[ 'DEPENDENCY' ][ 'wrapper1' ] |
| 151 | main.Functions = imp.load_source( wrapperFile, |
| 152 | main.dependencyPath + |
| 153 | wrapperFile + |
| 154 | ".py" ) |
| 155 | |
pingping-lin | 0ce6062 | 2015-09-10 14:37:33 -0700 | [diff] [blame] | 156 | def CASE1( self, main ): |
Jeremy Ronquillo | 23fb216 | 2017-09-15 14:59:57 -0700 | [diff] [blame^] | 157 | """ |
alison | e4121a9 | 2016-11-22 16:31:36 -0800 | [diff] [blame] | 158 | ping test from 7 bgp peers to BGP speaker |
Jeremy Ronquillo | 23fb216 | 2017-09-15 14:59:57 -0700 | [diff] [blame^] | 159 | """ |
pingping-lin | b3ebd3f | 2015-09-28 22:17:05 -0700 | [diff] [blame] | 160 | main.case( "Ping tests between BGP peers and speakers" ) |
alison | e4121a9 | 2016-11-22 16:31:36 -0800 | [diff] [blame] | 161 | main.Functions.pingSpeakerToPeer( main, speakers=[ "spk1" ], |
| 162 | peers=[ "p64514", "p64515", "p64516" ], |
| 163 | expectAllSuccess=True ) |
pingping-lin | 0ce6062 | 2015-09-10 14:37:33 -0700 | [diff] [blame] | 164 | |
alison | e4121a9 | 2016-11-22 16:31:36 -0800 | [diff] [blame] | 165 | main.Functions.pingSpeakerToPeer( main, speakers=[ "spk2" ], |
| 166 | peers=[ "p64517", "p64518" ], |
| 167 | expectAllSuccess=True ) |
| 168 | |
| 169 | main.Functions.pingSpeakerToPeer( main, speakers=[ "spk3" ], |
| 170 | peers=[ "p64519", "p64520" ], |
| 171 | expectAllSuccess=True ) |
pingping-lin | 950b50d | 2015-09-14 12:00:08 -0700 | [diff] [blame] | 172 | |
pingping-lin | 0ce6062 | 2015-09-10 14:37:33 -0700 | [diff] [blame] | 173 | def CASE2( self, main ): |
Jeremy Ronquillo | 23fb216 | 2017-09-15 14:59:57 -0700 | [diff] [blame^] | 174 | """ |
pingping-lin | 0ce6062 | 2015-09-10 14:37:33 -0700 | [diff] [blame] | 175 | point-to-point intents test for each BGP peer and BGP speaker pair |
Jeremy Ronquillo | 23fb216 | 2017-09-15 14:59:57 -0700 | [diff] [blame^] | 176 | """ |
Devin Lim | 58046fa | 2017-07-05 16:55:00 -0700 | [diff] [blame] | 177 | main.sdnBase.pToPIntentTest( 6 ) |
pingping-lin | 0ce6062 | 2015-09-10 14:37:33 -0700 | [diff] [blame] | 178 | |
pingping-lin | 0ce6062 | 2015-09-10 14:37:33 -0700 | [diff] [blame] | 179 | def CASE3( self, main ): |
Jeremy Ronquillo | 23fb216 | 2017-09-15 14:59:57 -0700 | [diff] [blame^] | 180 | """ |
pingping-lin | 0ce6062 | 2015-09-10 14:37:33 -0700 | [diff] [blame] | 181 | routes and intents check to all BGP peers |
Jeremy Ronquillo | 23fb216 | 2017-09-15 14:59:57 -0700 | [diff] [blame^] | 182 | """ |
pingping-lin | b3ebd3f | 2015-09-28 22:17:05 -0700 | [diff] [blame] | 183 | main.case( "Check routes and M2S intents to all BGP peers" ) |
pingping-lin | 0ce6062 | 2015-09-10 14:37:33 -0700 | [diff] [blame] | 184 | |
pingping-lin | 28e7b21 | 2015-09-10 10:14:58 -0700 | [diff] [blame] | 185 | allRoutesExpected = [] |
| 186 | allRoutesExpected.append( "4.0.0.0/24" + "/" + "10.0.4.1" ) |
| 187 | allRoutesExpected.append( "5.0.0.0/24" + "/" + "10.0.5.1" ) |
| 188 | allRoutesExpected.append( "6.0.0.0/24" + "/" + "10.0.6.1" ) |
alison | e4121a9 | 2016-11-22 16:31:36 -0800 | [diff] [blame] | 189 | allRoutesExpected.append( "7.0.0.0/24" + "/" + "10.0.7.1" ) |
| 190 | allRoutesExpected.append( "8.0.0.0/24" + "/" + "10.0.8.1" ) |
| 191 | allRoutesExpected.append( "9.0.0.0/24" + "/" + "10.0.9.1" ) |
| 192 | allRoutesExpected.append( "20.0.0.0/24" + "/" + "10.0.20.1" ) |
| 193 | |
Devin Lim | 58046fa | 2017-07-05 16:55:00 -0700 | [diff] [blame] | 194 | main.sdnBase.routeAndIntentCheck( allRoutesExpected, 7 ) |
pingping-lin | bab7f8a | 2015-09-21 17:33:36 -0700 | [diff] [blame] | 195 | |
pingping-lin | 950b50d | 2015-09-14 12:00:08 -0700 | [diff] [blame] | 196 | def CASE4( self, main ): |
Jeremy Ronquillo | 23fb216 | 2017-09-15 14:59:57 -0700 | [diff] [blame^] | 197 | """ |
pingping-lin | 950b50d | 2015-09-14 12:00:08 -0700 | [diff] [blame] | 198 | Ping test in data plane for each route |
Jeremy Ronquillo | 23fb216 | 2017-09-15 14:59:57 -0700 | [diff] [blame^] | 199 | """ |
pingping-lin | b3ebd3f | 2015-09-28 22:17:05 -0700 | [diff] [blame] | 200 | main.case( "Ping test for each route, all hosts behind BGP peers" ) |
Jeremy Ronquillo | 23fb216 | 2017-09-15 14:59:57 -0700 | [diff] [blame^] | 201 | # No vlan |
pingping-lin | 829428d | 2015-09-22 20:50:00 -0700 | [diff] [blame] | 202 | main.Functions.pingHostToHost( main, |
alison | e4121a9 | 2016-11-22 16:31:36 -0800 | [diff] [blame] | 203 | hosts=[ "h64514", "h64515", "h64516" ], |
| 204 | expectAllSuccess=True ) |
Jeremy Ronquillo | 23fb216 | 2017-09-15 14:59:57 -0700 | [diff] [blame^] | 205 | # vlan 10 |
alison | e4121a9 | 2016-11-22 16:31:36 -0800 | [diff] [blame] | 206 | main.Functions.pingHostToHost( main, |
| 207 | hosts=[ "h64519", "h64520" ], |
| 208 | expectAllSuccess=True ) |
pingping-lin | 4f80c49 | 2015-09-15 14:34:42 -0700 | [diff] [blame] | 209 | |
alison | e4121a9 | 2016-11-22 16:31:36 -0800 | [diff] [blame] | 210 | # vlan 20 |
| 211 | main.Functions.pingHostToHost( main, |
| 212 | hosts=[ "h64517", "h64518" ], |
| 213 | expectAllSuccess=True ) |
pingping-lin | 4f80c49 | 2015-09-15 14:34:42 -0700 | [diff] [blame] | 214 | |
| 215 | def CASE5( self, main ): |
Jeremy Ronquillo | 23fb216 | 2017-09-15 14:59:57 -0700 | [diff] [blame^] | 216 | """ |
pingping-lin | 4f80c49 | 2015-09-15 14:34:42 -0700 | [diff] [blame] | 217 | Cut links to peers one by one, check routes/intents |
Jeremy Ronquillo | 23fb216 | 2017-09-15 14:59:57 -0700 | [diff] [blame^] | 218 | """ |
Devin Lim | 58046fa | 2017-07-05 16:55:00 -0700 | [diff] [blame] | 219 | main.sdnBase.linkUpDownCheck( "p64514", "p64515", "p64516", |
| 220 | 6, 6, 5, 5, 4, 4, |
| 221 | "spk1", [ "h64514", "h64515", "h64516" ], |
| 222 | "down" ) |
pingping-lin | 4f80c49 | 2015-09-15 14:34:42 -0700 | [diff] [blame] | 223 | |
pingping-lin | 829428d | 2015-09-22 20:50:00 -0700 | [diff] [blame] | 224 | def CASE6( self, main ): |
Jeremy Ronquillo | 23fb216 | 2017-09-15 14:59:57 -0700 | [diff] [blame^] | 225 | """ |
pingping-lin | 4f80c49 | 2015-09-15 14:34:42 -0700 | [diff] [blame] | 226 | Recover links to peers one by one, check routes/intents |
Jeremy Ronquillo | 23fb216 | 2017-09-15 14:59:57 -0700 | [diff] [blame^] | 227 | """ |
Devin Lim | 58046fa | 2017-07-05 16:55:00 -0700 | [diff] [blame] | 228 | main.sdnBase.linkUpDownCheck( "p64514", "p64515", "p64516", |
| 229 | 5, 5, 6, 6, 7, 7, |
| 230 | "spk1", [ "h64514", "h64515", "h64516" ], |
| 231 | "up" ) |
pingping-lin | 8244a3b | 2015-09-16 13:36:56 -0700 | [diff] [blame] | 232 | |
pingping-lin | 829428d | 2015-09-22 20:50:00 -0700 | [diff] [blame] | 233 | def CASE7( self, main ): |
Jeremy Ronquillo | 23fb216 | 2017-09-15 14:59:57 -0700 | [diff] [blame^] | 234 | """ |
pingping-lin | 829428d | 2015-09-22 20:50:00 -0700 | [diff] [blame] | 235 | Shut down a edge switch, check P-2-P and M-2-S intents, ping test |
Jeremy Ronquillo | 23fb216 | 2017-09-15 14:59:57 -0700 | [diff] [blame^] | 236 | """ |
pingping-lin | 8244a3b | 2015-09-16 13:36:56 -0700 | [diff] [blame] | 237 | import time |
pingping-lin | b3ebd3f | 2015-09-28 22:17:05 -0700 | [diff] [blame] | 238 | 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] | 239 | main.step( "Stop sw32" ) |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 240 | result = main.Mininet.switch( SW="sw32", OPTION="stop" ) |
| 241 | utilities.assertEquals( expect=main.TRUE, actual=result, |
| 242 | onpass="Stopping switch succeeded!", |
| 243 | onfail="Stopping switch failed!" ) |
pingping-lin | b3ebd3f | 2015-09-28 22:17:05 -0700 | [diff] [blame] | 244 | |
pingping-lin | 8244a3b | 2015-09-16 13:36:56 -0700 | [diff] [blame] | 245 | if result == main.TRUE: |
| 246 | time.sleep( int( main.params[ 'timers' ][ 'RouteDelivery' ] ) ) |
Jeremy Ronquillo | 23fb216 | 2017-09-15 14:59:57 -0700 | [diff] [blame^] | 247 | main.Functions.checkRouteNum( main, 6 ) # stop one sw, which bring one link between peer and sw down. |
alison | e4121a9 | 2016-11-22 16:31:36 -0800 | [diff] [blame] | 248 | main.Functions.checkM2SintentNum( main, 6 ) |
Jeremy Ronquillo | 23fb216 | 2017-09-15 14:59:57 -0700 | [diff] [blame^] | 249 | 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] | 250 | else: |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 251 | main.log.error( "Stopping switch failed!" ) |
Devin Lim | 4407596 | 2017-08-11 10:56:37 -0700 | [diff] [blame] | 252 | main.cleanAndExit() |
pingping-lin | 8244a3b | 2015-09-16 13:36:56 -0700 | [diff] [blame] | 253 | |
pingping-lin | 829428d | 2015-09-22 20:50:00 -0700 | [diff] [blame] | 254 | main.step( "Check ping between hosts behind BGP peers" ) |
alison | e4121a9 | 2016-11-22 16:31:36 -0800 | [diff] [blame] | 255 | result1 = main.Mininet.pingHost( src="h64514", target="h64515" ) |
| 256 | result2 = main.Mininet.pingHost( src="h64515", target="h64516" ) |
| 257 | result3 = main.Mininet.pingHost( src="h64514", target="h64516" ) |
pingping-lin | 829428d | 2015-09-22 20:50:00 -0700 | [diff] [blame] | 258 | |
| 259 | pingResult1 = ( result1 == main.FALSE ) and ( result2 == main.TRUE ) \ |
| 260 | and ( result3 == main.FALSE ) |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 261 | utilities.assert_equals( expect=True, actual=pingResult1, |
| 262 | onpass="Ping test result is correct", |
| 263 | onfail="Ping test result is wrong" ) |
pingping-lin | 829428d | 2015-09-22 20:50:00 -0700 | [diff] [blame] | 264 | |
Jeremy Ronquillo | 23fb216 | 2017-09-15 14:59:57 -0700 | [diff] [blame^] | 265 | if not pingResult1: |
Devin Lim | 4407596 | 2017-08-11 10:56:37 -0700 | [diff] [blame] | 266 | main.cleanAndExit() |
pingping-lin | 829428d | 2015-09-22 20:50:00 -0700 | [diff] [blame] | 267 | |
| 268 | main.step( "Check ping between BGP peers and speakers" ) |
alison | e4121a9 | 2016-11-22 16:31:36 -0800 | [diff] [blame] | 269 | result4 = main.Mininet.pingHost( src="spk1", target="p64514" ) |
| 270 | result5 = main.Mininet.pingHost( src="spk1", target="p64515" ) |
| 271 | result6 = main.Mininet.pingHost( src="spk1", target="p64516" ) |
pingping-lin | 829428d | 2015-09-22 20:50:00 -0700 | [diff] [blame] | 272 | |
| 273 | pingResult2 = ( result4 == main.FALSE ) and ( result5 == main.TRUE ) \ |
| 274 | and ( result6 == main.TRUE ) |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 275 | utilities.assert_equals( expect=True, actual=pingResult2, |
| 276 | onpass="Speaker1 ping peers successful", |
| 277 | onfail="Speaker1 ping peers NOT successful" ) |
pingping-lin | 829428d | 2015-09-22 20:50:00 -0700 | [diff] [blame] | 278 | |
Jeremy Ronquillo | 23fb216 | 2017-09-15 14:59:57 -0700 | [diff] [blame^] | 279 | if not pingResult2: |
Devin Lim | 4407596 | 2017-08-11 10:56:37 -0700 | [diff] [blame] | 280 | main.cleanAndExit() |
pingping-lin | 829428d | 2015-09-22 20:50:00 -0700 | [diff] [blame] | 281 | |
pingping-lin | bab7f8a | 2015-09-21 17:33:36 -0700 | [diff] [blame] | 282 | main.step( "Check whether all flow status are ADDED" ) |
Devin Lim | 142b534 | 2017-07-20 15:22:39 -0700 | [diff] [blame] | 283 | flowCheck = utilities.retry( main.Cluster.active( 0 ).CLI.checkFlowsState, |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 284 | main.FALSE, |
Jeremy Ronquillo | 23fb216 | 2017-09-15 14:59:57 -0700 | [diff] [blame^] | 285 | kwargs={ 'isPENDING': False }, |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 286 | attempts=10 ) |
Jeremy Ronquillo | 23fb216 | 2017-09-15 14:59:57 -0700 | [diff] [blame^] | 287 | utilities.assertEquals( |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 288 | expect=main.TRUE, |
| 289 | actual=flowCheck, |
| 290 | onpass="Flow status is correct!", |
| 291 | onfail="Flow status is wrong!" ) |
pingping-lin | 8244a3b | 2015-09-16 13:36:56 -0700 | [diff] [blame] | 292 | |
| 293 | def CASE8( self, main ): |
Jeremy Ronquillo | 23fb216 | 2017-09-15 14:59:57 -0700 | [diff] [blame^] | 294 | """ |
| 295 | Bring up the edge switch ( sw32 ) which was shut down in CASE7, |
pingping-lin | d791d34 | 2015-09-17 18:34:31 -0700 | [diff] [blame] | 296 | check P-2-P and M-2-S intents, ping test |
Jeremy Ronquillo | 23fb216 | 2017-09-15 14:59:57 -0700 | [diff] [blame^] | 297 | """ |
pingping-lin | d791d34 | 2015-09-17 18:34:31 -0700 | [diff] [blame] | 298 | import time |
pingping-lin | b3ebd3f | 2015-09-28 22:17:05 -0700 | [diff] [blame] | 299 | 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] | 300 | main.step( "Start sw32" ) |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 301 | result1 = main.Mininet.switch( SW="sw32", OPTION="start" ) |
Jeremy Ronquillo | 23fb216 | 2017-09-15 14:59:57 -0700 | [diff] [blame^] | 302 | utilities.assertEquals( |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 303 | expect=main.TRUE, |
| 304 | actual=result1, |
| 305 | onpass="Starting switch succeeded!", |
| 306 | onfail="Starting switch failed!" ) |
pingping-lin | b3ebd3f | 2015-09-28 22:17:05 -0700 | [diff] [blame] | 307 | |
Devin Lim | 142b534 | 2017-07-20 15:22:39 -0700 | [diff] [blame] | 308 | result2 = main.Mininet.assignSwController( "sw32", main.Cluster.active( 0 ).ipAddress ) |
Jeremy Ronquillo | 23fb216 | 2017-09-15 14:59:57 -0700 | [diff] [blame^] | 309 | utilities.assertEquals( |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 310 | expect=main.TRUE, |
| 311 | actual=result2, |
| 312 | onpass="Connect switch to ONOS succeeded!", |
| 313 | onfail="Connect switch to ONOS failed!" ) |
pingping-lin | d791d34 | 2015-09-17 18:34:31 -0700 | [diff] [blame] | 314 | |
| 315 | if result1 and result2: |
| 316 | time.sleep( int( main.params[ 'timers' ][ 'RouteDelivery' ] ) ) |
alison | e4121a9 | 2016-11-22 16:31:36 -0800 | [diff] [blame] | 317 | main.Functions.checkRouteNum( main, 7 ) |
| 318 | main.Functions.checkM2SintentNum( main, 7 ) |
| 319 | main.Functions.checkP2PintentNum( main, 42 ) |
pingping-lin | d791d34 | 2015-09-17 18:34:31 -0700 | [diff] [blame] | 320 | else: |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 321 | main.log.error( "Starting switch failed!" ) |
Devin Lim | 4407596 | 2017-08-11 10:56:37 -0700 | [diff] [blame] | 322 | main.cleanAndExit() |
pingping-lin | 4f80c49 | 2015-09-15 14:34:42 -0700 | [diff] [blame] | 323 | |
pingping-lin | bab7f8a | 2015-09-21 17:33:36 -0700 | [diff] [blame] | 324 | main.step( "Check whether all flow status are ADDED" ) |
Devin Lim | 142b534 | 2017-07-20 15:22:39 -0700 | [diff] [blame] | 325 | flowCheck = utilities.retry( main.Cluster.active( 0 ).CLI.checkFlowsState, |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 326 | main.FALSE, |
Jeremy Ronquillo | 23fb216 | 2017-09-15 14:59:57 -0700 | [diff] [blame^] | 327 | kwargs={ 'isPENDING': False }, |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 328 | attempts=10 ) |
Jeremy Ronquillo | 23fb216 | 2017-09-15 14:59:57 -0700 | [diff] [blame^] | 329 | utilities.assertEquals( |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 330 | expect=main.TRUE, |
| 331 | actual=flowCheck, |
| 332 | onpass="Flow status is correct!", |
| 333 | onfail="Flow status is wrong!" ) |
pingping-lin | bab7f8a | 2015-09-21 17:33:36 -0700 | [diff] [blame] | 334 | |
pingping-lin | 829428d | 2015-09-22 20:50:00 -0700 | [diff] [blame] | 335 | # Ping test |
Jeremy Ronquillo | 23fb216 | 2017-09-15 14:59:57 -0700 | [diff] [blame^] | 336 | main.Functions.pingSpeakerToPeer( main, speakers=[ "spk1" ], |
| 337 | peers=[ "p64514", "p64515", "p64516" ], |
| 338 | expectAllSuccess=True ) |
pingping-lin | 829428d | 2015-09-22 20:50:00 -0700 | [diff] [blame] | 339 | main.Functions.pingHostToHost( main, |
Jeremy Ronquillo | 23fb216 | 2017-09-15 14:59:57 -0700 | [diff] [blame^] | 340 | hosts=[ "h64514", "h64515", "h64516" ], |
| 341 | expectAllSuccess=True ) |
pingping-lin | 829428d | 2015-09-22 20:50:00 -0700 | [diff] [blame] | 342 | |
| 343 | def CASE9( self, main ): |
Jeremy Ronquillo | 23fb216 | 2017-09-15 14:59:57 -0700 | [diff] [blame^] | 344 | """ |
pingping-lin | bab7f8a | 2015-09-21 17:33:36 -0700 | [diff] [blame] | 345 | Bring down a switch in best path, check: |
| 346 | route number, P2P intent number, M2S intent number, ping test |
Jeremy Ronquillo | 23fb216 | 2017-09-15 14:59:57 -0700 | [diff] [blame^] | 347 | """ |
pingping-lin | b3ebd3f | 2015-09-28 22:17:05 -0700 | [diff] [blame] | 348 | main.case( "Stop sw11 located in best path, \ |
pingping-lin | bab7f8a | 2015-09-21 17:33:36 -0700 | [diff] [blame] | 349 | check route number, P2P intent number, M2S intent number, ping test" ) |
| 350 | |
pingping-lin | 581a366 | 2015-09-29 17:43:39 -0700 | [diff] [blame] | 351 | main.log.info( "Check the flow number correctness before stopping sw11" ) |
alison | e4121a9 | 2016-11-22 16:31:36 -0800 | [diff] [blame] | 352 | main.Functions.checkFlowNum( main, "sw11", 43 ) |
pingping-lin | bab7f8a | 2015-09-21 17:33:36 -0700 | [diff] [blame] | 353 | main.Functions.checkFlowNum( main, "sw1", 3 ) |
alison | e4121a9 | 2016-11-22 16:31:36 -0800 | [diff] [blame] | 354 | main.Functions.checkFlowNum( main, "sw7", 34 ) |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 355 | main.log.debug( main.Mininet.checkFlows( "sw11" ) ) |
| 356 | main.log.debug( main.Mininet.checkFlows( "sw1" ) ) |
| 357 | main.log.debug( main.Mininet.checkFlows( "sw7" ) ) |
pingping-lin | bab7f8a | 2015-09-21 17:33:36 -0700 | [diff] [blame] | 358 | |
| 359 | main.step( "Stop sw11" ) |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 360 | result = main.Mininet.switch( SW="sw11", OPTION="stop" ) |
| 361 | utilities.assertEquals( expect=main.TRUE, actual=result, |
| 362 | onpass="Stopping switch succeeded!", |
| 363 | onfail="Stopping switch failed!" ) |
pingping-lin | bab7f8a | 2015-09-21 17:33:36 -0700 | [diff] [blame] | 364 | if result: |
| 365 | time.sleep( int( main.params[ 'timers' ][ 'RouteDelivery' ] ) ) |
pingping-lin | b3ebd3f | 2015-09-28 22:17:05 -0700 | [diff] [blame] | 366 | time.sleep( int( main.params[ 'timers' ][ 'RouteDelivery' ] ) ) |
alison | e4121a9 | 2016-11-22 16:31:36 -0800 | [diff] [blame] | 367 | main.Functions.checkRouteNum( main, 7 ) |
| 368 | main.Functions.checkM2SintentNum( main, 7 ) |
| 369 | main.Functions.checkP2PintentNum( main, 42 ) |
pingping-lin | bab7f8a | 2015-09-21 17:33:36 -0700 | [diff] [blame] | 370 | else: |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 371 | main.log.error( "Stopping switch failed!" ) |
Devin Lim | 4407596 | 2017-08-11 10:56:37 -0700 | [diff] [blame] | 372 | main.cleanAndExit() |
pingping-lin | bab7f8a | 2015-09-21 17:33:36 -0700 | [diff] [blame] | 373 | |
| 374 | main.step( "Check whether all flow status are ADDED" ) |
Devin Lim | 142b534 | 2017-07-20 15:22:39 -0700 | [diff] [blame] | 375 | flowCheck = utilities.retry( main.Cluster.active( 0 ).CLI.checkFlowsState, |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 376 | main.FALSE, |
Jeremy Ronquillo | 23fb216 | 2017-09-15 14:59:57 -0700 | [diff] [blame^] | 377 | kwargs={ 'isPENDING': False }, |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 378 | attempts=10 ) |
Jeremy Ronquillo | 23fb216 | 2017-09-15 14:59:57 -0700 | [diff] [blame^] | 379 | utilities.assertEquals( |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 380 | expect=main.TRUE, |
| 381 | actual=flowCheck, |
| 382 | onpass="Flow status is correct!", |
| 383 | onfail="Flow status is wrong!" ) |
pingping-lin | 829428d | 2015-09-22 20:50:00 -0700 | [diff] [blame] | 384 | # Ping test |
Jeremy Ronquillo | 23fb216 | 2017-09-15 14:59:57 -0700 | [diff] [blame^] | 385 | main.Functions.pingSpeakerToPeer( main, speakers=[ "spk1" ], |
| 386 | peers=[ "p64514", "p64515", "p64516" ], |
| 387 | expectAllSuccess=True ) |
pingping-lin | 829428d | 2015-09-22 20:50:00 -0700 | [diff] [blame] | 388 | main.Functions.pingHostToHost( main, |
Jeremy Ronquillo | 23fb216 | 2017-09-15 14:59:57 -0700 | [diff] [blame^] | 389 | hosts=[ "h64514", "h64515", "h64516" ], |
| 390 | expectAllSuccess=True ) |
pingping-lin | bab7f8a | 2015-09-21 17:33:36 -0700 | [diff] [blame] | 391 | |
| 392 | def CASE10( self, main ): |
Jeremy Ronquillo | 23fb216 | 2017-09-15 14:59:57 -0700 | [diff] [blame^] | 393 | """ |
pingping-lin | bab7f8a | 2015-09-21 17:33:36 -0700 | [diff] [blame] | 394 | Bring up the switch which was stopped in CASE9, check: |
| 395 | route number, P2P intent number, M2S intent number, ping test |
Jeremy Ronquillo | 23fb216 | 2017-09-15 14:59:57 -0700 | [diff] [blame^] | 396 | """ |
pingping-lin | b3ebd3f | 2015-09-28 22:17:05 -0700 | [diff] [blame] | 397 | main.case( "Start sw11 which was stopped in CASE9, \ |
pingping-lin | bab7f8a | 2015-09-21 17:33:36 -0700 | [diff] [blame] | 398 | check route number, P2P intent number, M2S intent number, ping test" ) |
pingping-lin | b3ebd3f | 2015-09-28 22:17:05 -0700 | [diff] [blame] | 399 | |
pingping-lin | 581a366 | 2015-09-29 17:43:39 -0700 | [diff] [blame] | 400 | main.log.info( "Check the flow status before starting sw11" ) |
alison | e4121a9 | 2016-11-22 16:31:36 -0800 | [diff] [blame] | 401 | main.Functions.checkFlowNum( main, "sw1", 33 ) |
| 402 | main.Functions.checkFlowNum( main, "sw7", 28 ) |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 403 | main.log.debug( main.Mininet.checkFlows( "sw1" ) ) |
| 404 | main.log.debug( main.Mininet.checkFlows( "sw7" ) ) |
pingping-lin | b3ebd3f | 2015-09-28 22:17:05 -0700 | [diff] [blame] | 405 | |
pingping-lin | bab7f8a | 2015-09-21 17:33:36 -0700 | [diff] [blame] | 406 | main.step( "Start sw11" ) |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 407 | result1 = main.Mininet.switch( SW="sw11", OPTION="start" ) |
| 408 | utilities.assertEquals( expect=main.TRUE, actual=result1, |
| 409 | onpass="Starting switch succeeded!", |
| 410 | onfail="Starting switch failed!" ) |
Devin Lim | 142b534 | 2017-07-20 15:22:39 -0700 | [diff] [blame] | 411 | result2 = main.Mininet.assignSwController( "sw11", main.Cluster.active( 0 ).ipAddress ) |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 412 | utilities.assertEquals( expect=main.TRUE, actual=result2, |
| 413 | onpass="Connect switch to ONOS succeeded!", |
| 414 | onfail="Connect switch to ONOS failed!" ) |
pingping-lin | 0351dee | 2015-09-28 13:26:35 -0700 | [diff] [blame] | 415 | if result1 and result2: |
pingping-lin | bab7f8a | 2015-09-21 17:33:36 -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, 7 ) |
| 418 | main.Functions.checkM2SintentNum( main, 7 ) |
| 419 | main.Functions.checkP2PintentNum( main, 42 ) |
pingping-lin | bab7f8a | 2015-09-21 17:33:36 -0700 | [diff] [blame] | 420 | |
pingping-lin | 3f091d6 | 2015-09-29 12:00:05 -0700 | [diff] [blame] | 421 | main.log.debug( main.Mininet.checkFlows( "sw11" ) ) |
| 422 | main.log.debug( main.Mininet.checkFlows( "sw1" ) ) |
| 423 | main.log.debug( main.Mininet.checkFlows( "sw7" ) ) |
pingping-lin | bab7f8a | 2015-09-21 17:33:36 -0700 | [diff] [blame] | 424 | else: |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 425 | main.log.error( "Starting switch failed!" ) |
Devin Lim | 4407596 | 2017-08-11 10:56:37 -0700 | [diff] [blame] | 426 | main.cleanAndExit() |
pingping-lin | bab7f8a | 2015-09-21 17:33:36 -0700 | [diff] [blame] | 427 | |
| 428 | main.step( "Check whether all flow status are ADDED" ) |
Devin Lim | 142b534 | 2017-07-20 15:22:39 -0700 | [diff] [blame] | 429 | flowCheck = utilities.retry( main.Cluster.active( 0 ).CLI.checkFlowsState, |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 430 | main.FALSE, |
Jeremy Ronquillo | 23fb216 | 2017-09-15 14:59:57 -0700 | [diff] [blame^] | 431 | kwargs={ 'isPENDING': False }, |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 432 | attempts=10 ) |
Jeremy Ronquillo | 23fb216 | 2017-09-15 14:59:57 -0700 | [diff] [blame^] | 433 | utilities.assertEquals( |
Jon Hall | 6e9897d | 2016-02-29 14:41:32 -0800 | [diff] [blame] | 434 | expect=main.TRUE, |
| 435 | actual=flowCheck, |
| 436 | onpass="Flow status is correct!", |
| 437 | onfail="Flow status is wrong!" ) |
pingping-lin | 829428d | 2015-09-22 20:50:00 -0700 | [diff] [blame] | 438 | # Ping test |
Jeremy Ronquillo | 23fb216 | 2017-09-15 14:59:57 -0700 | [diff] [blame^] | 439 | main.Functions.pingSpeakerToPeer( main, speakers=[ "spk1" ], |
| 440 | peers=[ "p64514", "p64515", "p64516" ], |
| 441 | expectAllSuccess=True ) |
pingping-lin | 829428d | 2015-09-22 20:50:00 -0700 | [diff] [blame] | 442 | main.Functions.pingHostToHost( main, |
Jeremy Ronquillo | 23fb216 | 2017-09-15 14:59:57 -0700 | [diff] [blame^] | 443 | hosts=[ "h64514", "h64515", "h64516" ], |
| 444 | expectAllSuccess=True ) |