Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions sonic_platform_base/chassis_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading