From e958a6418e01dcea1678ab24eda904647a533013 Mon Sep 17 00:00:00 2001 From: lotus-nexthop Date: Fri, 13 Mar 2026 12:12:01 -0700 Subject: [PATCH] SONiC Platform API - Add eth0 behind unmanaged switch concept Signed-off-by: Lotus Fenn --- sonic_platform_base/chassis_base.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/sonic_platform_base/chassis_base.py b/sonic_platform_base/chassis_base.py index 68e570fe7..f2ccb21f1 100644 --- a/sonic_platform_base/chassis_base.py +++ b/sonic_platform_base/chassis_base.py @@ -790,6 +790,24 @@ def get_change_event(self, timeout=0): """ raise NotImplementedError + def get_management_port_link_status_override(self, intf: str) -> bool | None: + """ + Override the kernel-reported management port link status. + + On some platforms, the kernel-reported operstate for the management + interface may not reflect the true link state. Platform implementations + can override this method to query the real link state from hardware. + + Args: + intf: The management interface name (e.g., 'eth0'). + + Returns: + bool or None: True if the management port link is up, + False if down, + None if not implemented (default; use kernel operstate). + """ + return None + def get_bmc(self): """ Get bmc device on this chassis