cmd_td3_tr514_lr.soc (2119B)
1 # 2 # This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. 3 # 4 # Copyright 2007-2019 Broadcom Inc. All rights reserved. 5 # 6 # Trident3 Flex Port Sanity for LineRate Mode 7 # By default use config: $SDK/rc/config_td3_tr514_lr.bcm 8 9 # Set run command script not to fail on errors reported by commands 10 # this allows the script to continue if a test fails 11 set rcerror=false 12 13 # Set up test mode: don't stop on errors, show progress on each test 14 tm -stoponerror +progress 15 # Unselect all 16 ts -* 17 18 echo "testsuite: started: FlexPortSanityOversubScriptionMode" 19 20 # We need to print out port status since any cabling effects results. 21 *:ps 22 23 if $?1 'local full_test 1' 24 25 #Display some useful information 26 date 27 ver 28 soc 29 30 #Start Test 31 ################################################################## 32 #debug appl tests; 33 #config add port_flex_enable=1; 34 # 35 #tr 514 Tsc2=2x20G Tsc3=4x10G Tsc4=2x10G+20G PktSize=300; 36 #tr 514 Tsc2=4x10G Tsc3=2x20G Tsc4=20G+2x10G PktSize=300; 37 #tr 514 Tsc2=2x40G Tsc3=2x40G Tsc4=2x40G PktSize=300; 38 # 39 #tr 514 Tsc0=4x0G Tsc1=4x0G; 40 #tr 514 Tsc2=2x50G Tsc3=4x25G Tsc4=2x25G+50G PktSize=300; 41 #tr 514 Tsc2=4x25G Tsc3=2x50G Tsc4=50G+2x25G PktSize=300; 42 #tr 514 Tsc2=2x40G Tsc3=2x40G Tsc4=2x40G PktSize=300; 43 # 44 #tr 514 Tsc2=2x50G Tsc3=4x25G Tsc4=2x25G+50G Tsc4=50G+2x25G PktSize=300; 45 #tr 514 Tsc2=4x10G Tsc3=4x10G Tsc4=4x10G Tsc4=4x10G PktSize=300; 46 #tr 514 Tsc2=2x50G Tsc3=4x25G Tsc4=2x25G+50G Tsc4=50G+2x25G PktSize=300; 47 #tr 514 Tsc2=2x40G Tsc3=2x40G Tsc4=2x40G Tsc4=2x40G PktSize=300; 48 49 echo "Running FlexPort test for line rate mode..." 50 51 echo "tr 514 PktSize=300" 52 tr 514 PktSize=300 53 $done 54 ps 55 56 57 ################################################################## 58 #End Test 59 60 date 61 tl 62 local returnCode $? 63 64 echo Tests Complete. Reinitializing ... 65 config refresh 66 rcload rc.soc 67 counter off 68 l2mode off 69 70 # We want to show the return code from the tl command which 71 # lists the results. The automated test infrastructure keys off of this 72 # value 73 echo "testsuite: finished: FlexPortSanityLineRateMode: $returnCode"