From 1f66b249950a0eab1ccfd2551e7ceaba68b9f365 Mon Sep 17 00:00:00 2001 From: Roy Date: Wed, 5 Nov 2025 20:54:08 +0000 Subject: [PATCH] Populate Lucius port oper status --- dataplane/saiserver/switch.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dataplane/saiserver/switch.go b/dataplane/saiserver/switch.go index 3f8d170b4..5d8134b02 100644 --- a/dataplane/saiserver/switch.go +++ b/dataplane/saiserver/switch.go @@ -1095,6 +1095,10 @@ func (sw *saiSwitch) PortStateChangeNotification(_ *saipb.PortStateChangeNotific } else if ed.GetPort().PortInfo.OperStatus == fwdpb.PortState_PORT_STATE_DISABLED_DOWN { status = saipb.PortOperStatus_PORT_OPER_STATUS_DOWN } + // update port oper status in the attribute map + sw.mgr.StoreAttributes(uint64(num), &saipb.PortAttribute{ + OperStatus: status.Enum(), + }) resp := &saipb.PortStateChangeNotificationResponse{ Data: []*saipb.PortOperStatusNotification{{ PortId: uint64(num),