Jeremy Ronquillo | b27ce4c | 2017-07-17 12:41:28 -0700 | [diff] [blame] | 1 | """ |
| 2 | Copyright 2015 Open Networking Foundation (ONF) |
| 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 |
| 11 | (at your option) any later version. |
| 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 | """ |
| 21 | |
YPZhang | 801d46d | 2016-08-08 13:26:28 -0700 | [diff] [blame] | 22 | ''' |
| 23 | SCPFportLat test |
| 24 | Test latency for port status change |
| 25 | Up & Down: |
| 26 | PortStatus --- Device --- Link --- Graph |
GlennRC | dc7ab01 | 2015-07-23 15:40:12 -0700 | [diff] [blame] | 27 | |
YPZhang | 801d46d | 2016-08-08 13:26:28 -0700 | [diff] [blame] | 28 | yunpeng@onlab.us |
| 29 | ''' |
GlennRC | dc7ab01 | 2015-07-23 15:40:12 -0700 | [diff] [blame] | 30 | class SCPFportLat: |
GlennRC | dc7ab01 | 2015-07-23 15:40:12 -0700 | [diff] [blame] | 31 | def __init__( self ): |
| 32 | self.default = '' |
| 33 | |
YPZhang | 801d46d | 2016-08-08 13:26:28 -0700 | [diff] [blame] | 34 | def CASE0( self, main ): |
GlennRC | dc7ab01 | 2015-07-23 15:40:12 -0700 | [diff] [blame] | 35 | import os |
YPZhang | 801d46d | 2016-08-08 13:26:28 -0700 | [diff] [blame] | 36 | import imp |
| 37 | ''' |
| 38 | - GIT |
| 39 | - BUILDING ONOS |
| 40 | Pull specific ONOS branch, then Build ONOS ono ONOS Bench. |
| 41 | This step is usually skipped. Because in a Jenkins driven automated |
| 42 | test env. We want Jenkins jobs to pull&build for flexibility to handle |
| 43 | different versions of ONOS. |
| 44 | - Construct tests variables |
| 45 | ''' |
Devin Lim | 58046fa | 2017-07-05 16:55:00 -0700 | [diff] [blame] | 46 | try: |
| 47 | from tests.dependencies.ONOSSetup import ONOSSetup |
| 48 | main.testSetUp = ONOSSetup() |
| 49 | except ImportError: |
| 50 | main.log.error( "ONOSSetup not found. exiting the test" ) |
| 51 | main.exit() |
| 52 | main.testSetUp.envSetupDescription() |
| 53 | stepResult = main.FALSE |
| 54 | try: |
| 55 | main.MN1Ip = main.params[ 'MN' ][ 'ip1' ] |
| 56 | main.dependencyPath = main.testOnDirectory + \ |
| 57 | main.params[ 'DEPENDENCY' ][ 'path' ] |
| 58 | main.dependencyFunc = main.params[ 'DEPENDENCY' ][ 'function' ] |
| 59 | main.topoName = main.params[ 'DEPENDENCY' ][ 'topology' ] |
| 60 | main.cellName = main.params[ 'ENV' ][ 'cellName' ] |
| 61 | main.apps = main.params[ 'ENV' ][ 'cellApps' ] |
| 62 | main.scale = ( main.params[ 'SCALE' ] ).split( "," ) |
| 63 | main.ofportStatus = main.params[ 'TSHARK' ][ 'ofpPortStatus' ] |
| 64 | main.tsharkResultPath = main.params[ 'TSHARK' ][ 'tsharkReusltPath' ] |
| 65 | main.sampleSize = int( main.params[ 'TEST' ][ 'sampleSize' ] ) |
| 66 | main.warmUp = int( main.params[ 'TEST' ][ 'warmUp' ] ) |
| 67 | main.maxProcessTime = int( main.params[ 'TEST' ][ 'maxProcessTime' ] ) |
| 68 | main.dbFileName = main.params[ 'DATABASE' ][ 'dbName' ] |
| 69 | main.startUpSleep = int( main.params[ 'SLEEP' ][ 'startup' ] ) |
| 70 | main.measurementSleep = int( main.params[ 'SLEEP' ][ 'measure' ] ) |
| 71 | main.maxScale = int( main.params[ 'max' ] ) |
Devin Lim | 142b534 | 2017-07-20 15:22:39 -0700 | [diff] [blame] | 72 | main.defaultTopoCfg = main.params[ 'CFG' ][ 'defaultTopo' ] |
Devin Lim | 58046fa | 2017-07-05 16:55:00 -0700 | [diff] [blame] | 73 | main.interface = main.params[ 'TEST' ][ 'interface' ] |
| 74 | main.timeout = int( main.params[ 'TIMEOUT' ][ 'timeout' ] ) |
| 75 | main.MNSleep = int( main.params[ 'SLEEP' ][ 'mininet' ] ) |
| 76 | main.device = main.params[ 'TEST' ][ 'device' ] |
| 77 | main.debug = main.params[ 'TEST' ][ 'debug' ] |
GlennRC | dc7ab01 | 2015-07-23 15:40:12 -0700 | [diff] [blame] | 78 | |
Devin Lim | 58046fa | 2017-07-05 16:55:00 -0700 | [diff] [blame] | 79 | if main.debug == "True": |
| 80 | main.debug = True |
| 81 | else: |
| 82 | main.debug = False |
GlennRC | dc7ab01 | 2015-07-23 15:40:12 -0700 | [diff] [blame] | 83 | |
Devin Lim | 142b534 | 2017-07-20 15:22:39 -0700 | [diff] [blame] | 84 | stepResult = main.testSetUp.envSetup() |
Devin Lim | 58046fa | 2017-07-05 16:55:00 -0700 | [diff] [blame] | 85 | main.log.info( "Create Database file " + main.dbFileName ) |
| 86 | resultsDB = open( main.dbFileName, "w+" ) |
| 87 | resultsDB.close() |
YPZhang | 801d46d | 2016-08-08 13:26:28 -0700 | [diff] [blame] | 88 | |
Devin Lim | 58046fa | 2017-07-05 16:55:00 -0700 | [diff] [blame] | 89 | main.portFunc = imp.load_source( main.dependencyFunc, |
| 90 | main.dependencyPath + |
| 91 | main.dependencyFunc + |
| 92 | ".py" ) |
| 93 | except Exception as e: |
| 94 | main.testSetUp.envSetupException( e ) |
| 95 | main.testSetUp.evnSetupConclusion( stepResult ) |
| 96 | main.commit = main.commit.split( " " )[ 1 ] |
GlennRC | dc7ab01 | 2015-07-23 15:40:12 -0700 | [diff] [blame] | 97 | |
YPZhang | 801d46d | 2016-08-08 13:26:28 -0700 | [diff] [blame] | 98 | def CASE1( self, main ): |
| 99 | # Clean up test environment and set up |
| 100 | import time |
Devin Lim | 142b534 | 2017-07-20 15:22:39 -0700 | [diff] [blame] | 101 | main.testSetUp.ONOSSetUp( main.Mininet1, main.Cluster, True, |
| 102 | cellName=main.cellName, killRemoveMax=False ) |
YPZhang | 801d46d | 2016-08-08 13:26:28 -0700 | [diff] [blame] | 103 | |
| 104 | main.log.info( "Configure apps" ) |
Devin Lim | 142b534 | 2017-07-20 15:22:39 -0700 | [diff] [blame] | 105 | main.Cluster.active( 0 ).CLI.setCfg( main.defaultTopoCfg, |
| 106 | "maxEvents 1" ) |
| 107 | main.Cluster.active( 0 ).CLI.setCfg( main.defaultTopoCfg, |
| 108 | "maxBatchMs 0" ) |
| 109 | main.Cluster.active( 0 ).CLI.setCfg( main.defaultTopoCfg, |
| 110 | "maxIdleMs 0" ) |
| 111 | time.sleep( 1 ) |
YPZhang | 801d46d | 2016-08-08 13:26:28 -0700 | [diff] [blame] | 112 | main.log.info( "Copy topology file to Mininet" ) |
Devin Lim | 58046fa | 2017-07-05 16:55:00 -0700 | [diff] [blame] | 113 | main.ONOSbench.copyMininetFile( main.topoName, |
YPZhang | 801d46d | 2016-08-08 13:26:28 -0700 | [diff] [blame] | 114 | main.dependencyPath, |
| 115 | main.Mininet1.user_name, |
Devin Lim | 142b534 | 2017-07-20 15:22:39 -0700 | [diff] [blame] | 116 | main.Mininet1.ip_address ) |
Devin Lim | 58046fa | 2017-07-05 16:55:00 -0700 | [diff] [blame] | 117 | try: |
| 118 | from tests.dependencies.utils import Utils |
| 119 | except ImportError: |
| 120 | main.log.error( "Utils not found exiting the test" ) |
| 121 | main.exit() |
| 122 | try: |
| 123 | main.Utils |
| 124 | except ( NameError, AttributeError ): |
| 125 | main.Utils = Utils() |
| 126 | main.Utils.mininetCleanup( main.Mininet1 ) |
YPZhang | 801d46d | 2016-08-08 13:26:28 -0700 | [diff] [blame] | 127 | time.sleep( main.MNSleep ) |
| 128 | main.log.info( "Start new mininet topology" ) |
GlennRC | dc7ab01 | 2015-07-23 15:40:12 -0700 | [diff] [blame] | 129 | main.Mininet1.startNet() |
YPZhang | 801d46d | 2016-08-08 13:26:28 -0700 | [diff] [blame] | 130 | main.log.info( "Assign switch to controller to ONOS node 1" ) |
Devin Lim | 142b534 | 2017-07-20 15:22:39 -0700 | [diff] [blame] | 131 | time.sleep( 1 ) |
| 132 | main.Mininet1.assignSwController( sw='s1', |
| 133 | ip=main.Cluster.active( 0 ).ipAddress ) |
| 134 | main.Mininet1.assignSwController( sw='s2', |
| 135 | ip=main.Cluster.active( 0 ).ipAddress ) |
GlennRC | dc7ab01 | 2015-07-23 15:40:12 -0700 | [diff] [blame] | 136 | |
Devin Lim | 142b534 | 2017-07-20 15:22:39 -0700 | [diff] [blame] | 137 | time.sleep( 2 ) |
GlennRC | dc7ab01 | 2015-07-23 15:40:12 -0700 | [diff] [blame] | 138 | |
| 139 | def CASE2( self, main ): |
GlennRC | dc7ab01 | 2015-07-23 15:40:12 -0700 | [diff] [blame] | 140 | import time |
GlennRC | dc7ab01 | 2015-07-23 15:40:12 -0700 | [diff] [blame] | 141 | import numpy |
YPZhang | 801d46d | 2016-08-08 13:26:28 -0700 | [diff] [blame] | 142 | # dictionary for each node and each timestamps |
Devin Lim | 142b534 | 2017-07-20 15:22:39 -0700 | [diff] [blame] | 143 | resultDict = { 'up' : {}, 'down' : {} } |
YPZhang | 801d46d | 2016-08-08 13:26:28 -0700 | [diff] [blame] | 144 | for d in resultDict: |
Devin Lim | 142b534 | 2017-07-20 15:22:39 -0700 | [diff] [blame] | 145 | for i in range( 1, main.Cluster.numCtrls + 1 ): |
| 146 | resultDict[ d ][ 'node' + str( i ) ] = {} |
| 147 | resultDict[ d ][ 'node' + str( i ) ][ 'Ave' ] = {} |
| 148 | resultDict[ d ][ 'node' + str( i ) ][ 'Std' ] = {} |
| 149 | resultDict[ d ][ 'node' + str( i ) ][ 'EtoE' ] = [] |
| 150 | resultDict[ d ][ 'node' + str( i ) ][ 'PtoD' ] = [] |
| 151 | resultDict[ d ][ 'node' + str( i ) ][ 'DtoL' ] = [] |
| 152 | resultDict[ d ][ 'node' + str( i ) ][ 'LtoG' ] = [] |
YPZhang | 801d46d | 2016-08-08 13:26:28 -0700 | [diff] [blame] | 153 | for i in range( 1, main.sampleSize + main.warmUp ): |
| 154 | main.log.info( "==========================================" ) |
Devin Lim | 142b534 | 2017-07-20 15:22:39 -0700 | [diff] [blame] | 155 | main.log.info( "================iteration:{}==============".format( str ( i ) ) ) |
YPZhang | 801d46d | 2016-08-08 13:26:28 -0700 | [diff] [blame] | 156 | if i > main.warmUp: |
| 157 | # Portdown iteration |
Devin Lim | 142b534 | 2017-07-20 15:22:39 -0700 | [diff] [blame] | 158 | main.portFunc.capturePortStatusPack( main, |
| 159 | main.device, |
| 160 | main.interface, |
| 161 | "down", |
| 162 | resultDict, |
| 163 | False ) |
| 164 | time.sleep( 2 ) |
YPZhang | 801d46d | 2016-08-08 13:26:28 -0700 | [diff] [blame] | 165 | # PortUp iteration |
Devin Lim | 142b534 | 2017-07-20 15:22:39 -0700 | [diff] [blame] | 166 | main.portFunc.capturePortStatusPack( main, |
| 167 | main.device, |
| 168 | main.interface, |
| 169 | "up", |
| 170 | resultDict, |
| 171 | False ) |
GlennRC | dc7ab01 | 2015-07-23 15:40:12 -0700 | [diff] [blame] | 172 | else: |
YPZhang | 801d46d | 2016-08-08 13:26:28 -0700 | [diff] [blame] | 173 | # if warm up, keep old result dictionary |
Devin Lim | 142b534 | 2017-07-20 15:22:39 -0700 | [diff] [blame] | 174 | main.portFunc.capturePortStatusPack( main, |
| 175 | main.device, |
| 176 | main.interface, |
| 177 | "down", |
| 178 | resultDict, |
| 179 | True ) |
| 180 | main.portFunc.capturePortStatusPack( main, |
| 181 | main.device, |
| 182 | main.interface, |
| 183 | "up", |
| 184 | resultDict, |
| 185 | True ) |
GlennRC | dc7ab01 | 2015-07-23 15:40:12 -0700 | [diff] [blame] | 186 | |
YPZhang | 801d46d | 2016-08-08 13:26:28 -0700 | [diff] [blame] | 187 | # Dictionary for result |
| 188 | maxDict = {} |
Devin Lim | 58046fa | 2017-07-05 16:55:00 -0700 | [diff] [blame] | 189 | maxDict[ 'down' ] = {} |
| 190 | maxDict[ 'up' ] = {} |
| 191 | maxDict[ 'down' ][ 'max' ] = 0 |
| 192 | maxDict[ 'up' ][ 'max' ] = 0 |
| 193 | maxDict[ 'down' ][ 'node' ] = 0 |
| 194 | maxDict[ 'up' ][ 'node' ] = 0 |
YPZhang | 801d46d | 2016-08-08 13:26:28 -0700 | [diff] [blame] | 195 | EtoEtemp = 0 |
| 196 | for d in resultDict: |
Devin Lim | 142b534 | 2017-07-20 15:22:39 -0700 | [diff] [blame] | 197 | for i in range( 1, main.Cluster.numCtrls + 1 ): |
YPZhang | 801d46d | 2016-08-08 13:26:28 -0700 | [diff] [blame] | 198 | # calculate average and std for result, and grep the max End to End data |
Devin Lim | 142b534 | 2017-07-20 15:22:39 -0700 | [diff] [blame] | 199 | EtoEtemp = numpy.average( resultDict[ d ][ 'node' + str( i ) ][ 'EtoE' ] ) |
| 200 | resultDict[ d ][ 'node' + str( i ) ][ 'Ave' ][ 'EtoE' ] = EtoEtemp |
| 201 | if maxDict[ d ][ 'max' ] < EtoEtemp: |
YPZhang | 801d46d | 2016-08-08 13:26:28 -0700 | [diff] [blame] | 202 | # get max End to End latency |
Devin Lim | 142b534 | 2017-07-20 15:22:39 -0700 | [diff] [blame] | 203 | maxDict[ d ][ 'max' ] = EtoEtemp |
| 204 | maxDict[ d ][ 'node' ] = i |
| 205 | resultDict[ d ][ 'node' + str( i ) ][ 'Ave' ][ 'PtoD' ] = numpy.average( resultDict[ d ][ 'node' + str( i ) ][ 'PtoD' ] ) |
| 206 | resultDict[ d ][ 'node' + str( i ) ][ 'Ave' ][ 'DtoL' ] = numpy.average( resultDict[ d ][ 'node' + str( i ) ][ 'DtoL' ] ) |
| 207 | resultDict[ d ][ 'node' + str( i ) ][ 'Ave' ][ 'LtoG' ] = numpy.average( resultDict[ d ][ 'node' + str( i ) ][ 'LtoG' ] ) |
GlennRC | dc7ab01 | 2015-07-23 15:40:12 -0700 | [diff] [blame] | 208 | |
Devin Lim | 142b534 | 2017-07-20 15:22:39 -0700 | [diff] [blame] | 209 | resultDict[ d ][ 'node' + str( i ) ][ 'Std' ][ 'EtoE' ] = numpy.std( resultDict[ d ][ 'node' + str( i ) ][ 'EtoE' ] ) |
| 210 | resultDict[ d ][ 'node' + str( i ) ][ 'Std' ][ 'PtoD' ] = numpy.std( resultDict[ d ][ 'node' + str( i ) ][ 'PtoD' ] ) |
| 211 | resultDict[ d ][ 'node' + str( i ) ][ 'Std' ][ 'DtoL' ] = numpy.std( resultDict[ d ][ 'node' + str( i ) ][ 'DtoL' ] ) |
| 212 | resultDict[ d ][ 'node' + str( i ) ][ 'Std' ][ 'LtoG' ] = numpy.std( resultDict[ d ][ 'node' + str( i ) ][ 'LtoG' ] ) |
GlennRC | dc7ab01 | 2015-07-23 15:40:12 -0700 | [diff] [blame] | 213 | |
Devin Lim | 142b534 | 2017-07-20 15:22:39 -0700 | [diff] [blame] | 214 | main.log.report( "=====node{} Summary:=====".format( str( i ) ) ) |
| 215 | main.log.report( "=============Port {}=======".format( str( d ) ) ) |
YPZhang | 801d46d | 2016-08-08 13:26:28 -0700 | [diff] [blame] | 216 | main.log.report( |
Devin Lim | 142b534 | 2017-07-20 15:22:39 -0700 | [diff] [blame] | 217 | "End to End average: {}".format( str( resultDict[ d ][ 'node' + str( i ) ][ 'Ave' ][ 'EtoE' ] ) ) ) |
YPZhang | 801d46d | 2016-08-08 13:26:28 -0700 | [diff] [blame] | 218 | main.log.report( |
Devin Lim | 142b534 | 2017-07-20 15:22:39 -0700 | [diff] [blame] | 219 | "End to End Std: {}".format( str( resultDict[ d ][ 'node' + str( i ) ][ 'Std' ][ 'EtoE' ] ) ) ) |
YPZhang | 801d46d | 2016-08-08 13:26:28 -0700 | [diff] [blame] | 220 | main.log.report( |
Devin Lim | 142b534 | 2017-07-20 15:22:39 -0700 | [diff] [blame] | 221 | "Package to Device average: {}".format( str( resultDict[ d ][ 'node' + str( i ) ][ 'Ave' ][ 'PtoD' ] ) ) ) |
YPZhang | 801d46d | 2016-08-08 13:26:28 -0700 | [diff] [blame] | 222 | main.log.report( |
Devin Lim | 142b534 | 2017-07-20 15:22:39 -0700 | [diff] [blame] | 223 | "Package to Device Std: {}".format( str( resultDict[ d ][ 'node' + str( i ) ][ 'Std' ][ 'PtoD' ] ) ) ) |
YPZhang | 801d46d | 2016-08-08 13:26:28 -0700 | [diff] [blame] | 224 | main.log.report( |
Devin Lim | 142b534 | 2017-07-20 15:22:39 -0700 | [diff] [blame] | 225 | "Device to Link average: {}".format( str( resultDict[ d ][ 'node' + str( i ) ][ 'Ave' ][ 'DtoL' ] ) ) ) |
YPZhang | 801d46d | 2016-08-08 13:26:28 -0700 | [diff] [blame] | 226 | main.log.report( |
Devin Lim | 142b534 | 2017-07-20 15:22:39 -0700 | [diff] [blame] | 227 | "Device to Link Std: {}".format( str( resultDict[ d ][ 'node' + str( i ) ][ 'Std' ][ 'DtoL' ] ) ) ) |
YPZhang | 801d46d | 2016-08-08 13:26:28 -0700 | [diff] [blame] | 228 | main.log.report( |
Devin Lim | 142b534 | 2017-07-20 15:22:39 -0700 | [diff] [blame] | 229 | "Link to Grapg average: {}".format( str( resultDict[ d ][ 'node' + str( i ) ][ 'Ave' ][ 'LtoG' ] ) ) ) |
YPZhang | 801d46d | 2016-08-08 13:26:28 -0700 | [diff] [blame] | 230 | main.log.report( |
Devin Lim | 142b534 | 2017-07-20 15:22:39 -0700 | [diff] [blame] | 231 | "Link to Grapg Std: {}".format( str( resultDict[ d ][ 'node' + str( i ) ][ 'Std' ][ 'LtoG' ] ) ) ) |
GlennRC | dc7ab01 | 2015-07-23 15:40:12 -0700 | [diff] [blame] | 232 | |
YPZhang | 801d46d | 2016-08-08 13:26:28 -0700 | [diff] [blame] | 233 | with open( main.dbFileName, "a" ) as dbFile: |
| 234 | # Scale number |
Devin Lim | 142b534 | 2017-07-20 15:22:39 -0700 | [diff] [blame] | 235 | temp = str( main.Cluster.numCtrls ) |
YPZhang | 801d46d | 2016-08-08 13:26:28 -0700 | [diff] [blame] | 236 | temp += ",'baremetal1'" |
| 237 | # put result |
Devin Lim | 58046fa | 2017-07-05 16:55:00 -0700 | [diff] [blame] | 238 | temp += "," + str( resultDict[ 'up' ][ 'node' + str( maxDict[ 'up' ][ 'node' ] ) ][ 'Ave' ][ 'EtoE' ] ) |
| 239 | temp += "," + str( resultDict[ 'up' ][ 'node' + str( maxDict[ 'up' ][ 'node' ] ) ][ 'Ave' ][ 'PtoD' ] ) |
| 240 | temp += "," + str( resultDict[ 'up' ][ 'node' + str( maxDict[ 'up' ][ 'node' ] ) ][ 'Ave' ][ 'DtoL' ] ) |
| 241 | temp += "," + str( resultDict[ 'up' ][ 'node' + str( maxDict[ 'up' ][ 'node' ] ) ][ 'Ave' ][ 'LtoG' ] ) |
| 242 | temp += "," + str( resultDict[ 'down' ][ 'node' + str( maxDict[ 'down' ][ 'node' ] ) ][ 'Ave' ][ 'EtoE' ] ) |
| 243 | temp += "," + str( resultDict[ 'down' ][ 'node' + str( maxDict[ 'down' ][ 'node' ] ) ][ 'Ave' ][ 'PtoD' ] ) |
| 244 | temp += "," + str( resultDict[ 'down' ][ 'node' + str( maxDict[ 'down' ][ 'node' ] ) ][ 'Ave' ][ 'DtoL' ] ) |
| 245 | temp += "," + str( resultDict[ 'down' ][ 'node' + str( maxDict[ 'down' ][ 'node' ] ) ][ 'Ave' ][ 'LtoG' ] ) |
chengchiyu | 074e3ef | 2016-08-24 16:32:32 -0700 | [diff] [blame] | 246 | |
Devin Lim | 58046fa | 2017-07-05 16:55:00 -0700 | [diff] [blame] | 247 | temp += "," + str( resultDict[ 'up' ][ 'node' + str( maxDict[ 'up' ][ 'node' ] ) ][ 'Std' ][ 'EtoE' ] ) |
| 248 | temp += "," + str( resultDict[ 'down' ][ 'node' + str( maxDict[ 'down' ][ 'node' ] ) ][ 'Std' ][ 'EtoE' ] ) |
chengchiyu | 074e3ef | 2016-08-24 16:32:32 -0700 | [diff] [blame] | 249 | |
YPZhang | 801d46d | 2016-08-08 13:26:28 -0700 | [diff] [blame] | 250 | temp += "\n" |
| 251 | dbFile.write( temp ) |
| 252 | dbFile.close() |