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) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014RetWKFZFG1ZHcitQAyhwM
This commit is contained in:
2026-08-21 11:28:06 +08:00
co-authored by Claude Opus 5
parent d065db7d71
commit b66ae47a58
2 changed files with 28 additions and 6 deletions
+15 -5
View File
@@ -1,6 +1,6 @@
; ============================================================================= ; =============================================================================
; Script A for Blanton ; Script A for Blanton
; Version : V1.0.4 ; Version : V1.0.5
; Date : 2026-08-21 ; Date : 2026-08-21
; Author : ETWen ; Author : ETWen
; ============================================================================= ; =============================================================================
@@ -18,6 +18,10 @@
; ScriptA Add Wait DUT Ready ; ScriptA Add Wait DUT Ready
; V1.0.4 2026-08-21 utils/wait_init.ttl Wait on bcmcmd port-up ; V1.0.4 2026-08-21 utils/wait_init.ttl Wait on bcmcmd port-up
; count (both units > 216) ; 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" include "config.ttl"
@@ -56,6 +60,10 @@ sendln cmd
wait prompt_sonic_root wait prompt_sonic_root
sendln "show boot" sendln "show boot"
; ========== EEPROM Info ==========
wait prompt_sonic_root
sendln "hpe-eeprom-tlv show --bus 4 --addr 0x50"
; ========== Wait DUT Init ========== ; ========== Wait DUT Init ==========
wait prompt_sonic_root wait prompt_sonic_root
include "utils/wait_init.ttl" 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 ========== ; ========== Check PCIE tree + PCIE link status + GET PCIE bandwidth Test ==========
include "utils/pcie_bus.ttl" include "utils/pcie_bus.ttl"
; ========== Check History ==========
;wait prompt_sonic_root
;sendln "command"
; ========== Check Margin ========== ; ========== Check Margin ==========
if EN_Margin = 1 then if EN_Margin = 1 then
include "utils/show_margin_status.ttl" include "utils/show_margin_status.ttl"
@@ -114,6 +118,12 @@ wait prompt_sonic_root
sendln "show interfaces status Ethernet513,Ethernet514" sendln "show interfaces status Ethernet513,Ethernet514"
; ========== First Traffic Test ========== ; ========== 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 wait prompt_sonic_root
sendln "blanton_traffic_linespeed ps" sendln "blanton_traffic_linespeed ps"
wait prompt_sonic_root wait prompt_sonic_root
+13 -1
View File
@@ -52,12 +52,24 @@ wait prompt_sonic_root
sendln "jobs" 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 wait prompt_sonic_root
sendln "show interfaces status Ethernet513,Ethernet514" sendln "show interfaces status Ethernet513,Ethernet514"
; ========== Traffic START ========== ; ========== 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 wait prompt_sonic_root
sendln "blanton_traffic_linespeed ps" sendln "blanton_traffic_linespeed ps"
wait prompt_sonic_root wait prompt_sonic_root