Cloned from CL 968062044 by 'hg patch'.
Original change by shounak@shounak:fig-export-fix_bug_v5_support-534134-change-1:535334:citc on 2026/08/20 14:37:53.

#gpowerd - Support v5 vEEPROM telemetry for safe_to_shutdown in GnicMonitor

In version 5 of the vEEPROM telemetry layout (cl/929606823), safe_to_shutdown
is contained within v5_fields instead of v3_fields.

Update GnicMonitor::CheckImpl to extract safe_to_shutdown from either
v3_fields (for v3/v4 layouts) or v5_fields (for v5 layout). Also add
unit test coverage for v5 telemetry handling, checksum retry, and timeout
transitions.

Tested:
  blaze test //production/borg_mgmt/node_proxy/safepower/safepower_agent/bmc:gnic_monitor_test
PiperOrigin-RevId: 970641693
Change-Id: If554d00e1ca3ff1ffb9e12176bb92ce9cd46210e
2 files changed