From b66ae47a586815bd03d58da9e45579c1995ef652 Mon Sep 17 00:00:00 2001 From: ETWen Date: Fri, 21 Aug 2026 11:28:06 +0800 Subject: [PATCH] feat(ttl): Read EEPROM, quiet LLDP and clear lpmode before traffic Script A: `hpe-eeprom-tlv show --bus 4 --addr 0x50` after `show boot`, so the board identity is on record next to the image it booted. The empty Check History placeholder is dropped. Script A and B: disable the lldp feature and `config save -y` before the traffic stage, so the switch stops sourcing its own frames and the loopback pair counters reflect only the injected burst. Script B: `sfputil lpmode off` on Ethernet513/514 before reading their status -- a transceiver left in low-power mode will not link. Script A -> V1.0.5, with the history covering the Script B changes too, per this project's convention of keeping one consolidated log in A. Co-Authored-By: Claude Opus 5 (1M context) Claude-Session: https://claude.ai/code/session_014RetWKFZFG1ZHcitQAyhwM --- src/Script_ABC_Blanton/1_Blanton_Script_A.ttl | 20 ++++++++++++++----- src/Script_ABC_Blanton/2_Blanton_Script_B.ttl | 14 ++++++++++++- 2 files changed, 28 insertions(+), 6 deletions(-) diff --git a/src/Script_ABC_Blanton/1_Blanton_Script_A.ttl b/src/Script_ABC_Blanton/1_Blanton_Script_A.ttl index 53701f2..3b3470e 100644 --- a/src/Script_ABC_Blanton/1_Blanton_Script_A.ttl +++ b/src/Script_ABC_Blanton/1_Blanton_Script_A.ttl @@ -1,6 +1,6 @@ ; ============================================================================= ; Script A for Blanton -; Version : V1.0.4 +; Version : V1.0.5 ; Date : 2026-08-21 ; Author : ETWen ; ============================================================================= @@ -18,6 +18,10 @@ ; ScriptA Add Wait DUT Ready ; V1.0.4 2026-08-21 utils/wait_init.ttl Wait on bcmcmd port-up ; count (both units > 216) +; V1.0.5 2026-08-21 ScriptA Add EEPROM info (hpe-eeprom-tlv --bus 4 --addr 0x50) +; ScriptA Remove empty Check History block +; ScriptA/B Disable lldp + config save before traffic (silent MAC) +; ScriptB Add sfputil lpmode off Ethernet513/514 ; ============================================================================= include "config.ttl" @@ -56,6 +60,10 @@ sendln cmd wait prompt_sonic_root sendln "show boot" +; ========== EEPROM Info ========== +wait prompt_sonic_root +sendln "hpe-eeprom-tlv show --bus 4 --addr 0x50" + ; ========== Wait DUT Init ========== wait prompt_sonic_root include "utils/wait_init.ttl" @@ -91,10 +99,6 @@ include "utils/show_pcie_error_reg_SSD.ttl" ; ========== Check PCIE tree + PCIE link status + GET PCIE bandwidth Test ========== include "utils/pcie_bus.ttl" -; ========== Check History ========== - ;wait prompt_sonic_root - ;sendln "command" - ; ========== Check Margin ========== if EN_Margin = 1 then include "utils/show_margin_status.ttl" @@ -114,6 +118,12 @@ wait prompt_sonic_root sendln "show interfaces status Ethernet513,Ethernet514" ; ========== First Traffic Test ========== +; Silent MAC +wait prompt_sonic_root +sendln "config feature state lldp disabled" +wait prompt_sonic_root +sendln "config save -y" + wait prompt_sonic_root sendln "blanton_traffic_linespeed ps" 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 0dad193..6e7ba83 100644 --- a/src/Script_ABC_Blanton/2_Blanton_Script_B.ttl +++ b/src/Script_ABC_Blanton/2_Blanton_Script_B.ttl @@ -52,12 +52,24 @@ wait prompt_sonic_root sendln "jobs" -; ========== 100G Port Status ========== +; ========== 100G Port ========== +; Lpmode Disable +wait prompt_sonic_root +sendln "sudo sfputil lpmode off Ethernet513" +wait prompt_sonic_root +sendln "sudo sfputil lpmode off Ethernet514" + wait prompt_sonic_root sendln "show interfaces status Ethernet513,Ethernet514" ; ========== Traffic START ========== +; Silent MAC +wait prompt_sonic_root +sendln "config feature state lldp disabled" +wait prompt_sonic_root +sendln "config save -y" + wait prompt_sonic_root sendln "blanton_traffic_linespeed ps" wait prompt_sonic_root