From 0407bbe04f48cb25a88e4809d2e6a7761b8b51bf Mon Sep 17 00:00:00 2001 From: ETWen Date: Wed, 21 Oct 2026 22:50:25 +0800 Subject: [PATCH] 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 Claude-Session: https://claude.ai/code/session_0131orciRKrejchsuDk6UpXk --- src/Script_ABC_Blanton/1_Blanton_Script_A.ttl | 14 +++++++++++++- src/Script_ABC_Blanton/2_Blanton_Script_B.ttl | 4 ++++ src/Script_ABC_Blanton/3_Blanton_Script_C.ttl | 4 ++++ 3 files changed, 21 insertions(+), 1 deletion(-) diff --git a/src/Script_ABC_Blanton/1_Blanton_Script_A.ttl b/src/Script_ABC_Blanton/1_Blanton_Script_A.ttl index bf6be20..5b1701c 100644 --- a/src/Script_ABC_Blanton/1_Blanton_Script_A.ttl +++ b/src/Script_ABC_Blanton/1_Blanton_Script_A.ttl @@ -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 diff --git a/src/Script_ABC_Blanton/2_Blanton_Script_B.ttl b/src/Script_ABC_Blanton/2_Blanton_Script_B.ttl index f2f564e..dbe6fe5 100644 --- a/src/Script_ABC_Blanton/2_Blanton_Script_B.ttl +++ b/src/Script_ABC_Blanton/2_Blanton_Script_B.ttl @@ -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" diff --git a/src/Script_ABC_Blanton/3_Blanton_Script_C.ttl b/src/Script_ABC_Blanton/3_Blanton_Script_C.ttl index 0691ac1..ef87bd1 100644 --- a/src/Script_ABC_Blanton/3_Blanton_Script_C.ttl +++ b/src/Script_ABC_Blanton/3_Blanton_Script_C.ttl @@ -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