feat(ttl): Run FDR around the traffic test and turn off unused lanes
When both switch units are enabled, Script A wraps its traffic baseline in blanton_fdr.sh start / clear / rdcnt / stop and runs the traffic for 40 s instead of 15 s, so the counters are read after the first 30 s interval is published. Script B starts and clears FDR with the traffic setup before the soak loop, and Script C reads and stops it around the traffic stop, so the counters cover the whole soak. The single-unit branches are unchanged. Script A runs unused_lanes.sh off before the BER baseline. Nothing turns the lanes back on. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0131orciRKrejchsuDk6UpXk
This commit is contained in:
@@ -1061,6 +1061,10 @@ sendln "config feature state lldp disabled"
|
||||
wait prompt_sonic_root
|
||||
sendln "config save -y"
|
||||
|
||||
; ========== Turn off unused lanes ==========
|
||||
wait prompt_sonic_root
|
||||
sendln "~/Blanton_Script/unused_lanes.sh off"
|
||||
|
||||
; ========== BER ==========
|
||||
; Baseline sweep, taken BEFORE the traffic run - ScriptC takes the closing
|
||||
; one after its traffic report, so the pair brackets the soak.
|
||||
@@ -1117,18 +1121,26 @@ if SWB_UNIT0 = 1 && SWB_UNIT1 = 1 then
|
||||
wait prompt_sonic_root
|
||||
sendln "blanton_traffic_linespeed init"
|
||||
wait prompt_sonic_root
|
||||
sendln "~/Blanton_Script/blanton_fdr.sh start"
|
||||
wait prompt_sonic_root
|
||||
sendln "blanton_traffic_linespeed clear"
|
||||
wait prompt_sonic_root
|
||||
sendln "~/Blanton_Script/blanton_fdr.sh clear"
|
||||
wait prompt_sonic_root
|
||||
sendln "sleep 5"
|
||||
wait prompt_sonic_root
|
||||
sendln "blanton_traffic_linespeed show"
|
||||
wait prompt_sonic_root
|
||||
sendln "blanton_traffic_linespeed start"
|
||||
wait prompt_sonic_root
|
||||
sendln "sleep 15"
|
||||
sendln "sleep 40"
|
||||
wait prompt_sonic_root
|
||||
sendln "~/Blanton_Script/blanton_fdr.sh rdcnt"
|
||||
wait prompt_sonic_root
|
||||
sendln "blanton_traffic_linespeed stop"
|
||||
wait prompt_sonic_root
|
||||
sendln "~/Blanton_Script/blanton_fdr.sh stop"
|
||||
wait prompt_sonic_root
|
||||
sendln "blanton_traffic_linespeed report"
|
||||
elseif SWB_UNIT0 = 1 && SWB_UNIT1 = 0 then
|
||||
wait prompt_sonic_root
|
||||
|
||||
@@ -138,8 +138,12 @@ if SWB_UNIT0 = 1 && SWB_UNIT1 = 1 then
|
||||
wait prompt_sonic_root
|
||||
sendln "blanton_traffic_linespeed init"
|
||||
wait prompt_sonic_root
|
||||
sendln "~/Blanton_Script/blanton_fdr.sh start"
|
||||
wait prompt_sonic_root
|
||||
sendln "blanton_traffic_linespeed clear"
|
||||
wait prompt_sonic_root
|
||||
sendln "~/Blanton_Script/blanton_fdr.sh clear"
|
||||
wait prompt_sonic_root
|
||||
sendln "sleep 5"
|
||||
wait prompt_sonic_root
|
||||
sendln "blanton_traffic_linespeed show"
|
||||
|
||||
@@ -85,9 +85,13 @@ sendln "show interfaces status Ethernet513,Ethernet514"
|
||||
|
||||
; ========== CHECK Traffic counters ==========
|
||||
if SWB_UNIT0 = 1 && SWB_UNIT1 = 1 then
|
||||
wait prompt_sonic_root
|
||||
sendln "~/Blanton_Script/blanton_fdr.sh rdcnt"
|
||||
wait prompt_sonic_root
|
||||
sendln "blanton_traffic_linespeed stop"
|
||||
wait prompt_sonic_root
|
||||
sendln "~/Blanton_Script/blanton_fdr.sh stop"
|
||||
wait prompt_sonic_root
|
||||
sendln "blanton_traffic_linespeed report"
|
||||
elseif SWB_UNIT0 = 1 && SWB_UNIT1 = 0 then
|
||||
wait prompt_sonic_root
|
||||
|
||||
Reference in New Issue
Block a user