Closed super-jiying closed 1 month ago
Fix for #3192
In teamSync::addLag method, update lag "oper_status" status in state_db.
bool lag_update = true; /* Return when the team instance has already been tracked */ if (m_teamSelectables.find(lagName) != m_teamSelectables.end()) { auto tsync = m_teamSelectables[lagName]; if (tsync->admin_state == admin_state && tsync->oper_state == oper_state && tsync->mtu == mtu) return; tsync->admin_state = admin_state; tsync->oper_state = oper_state; tsync->mtu = mtu; lag_update = false; } FieldValueTuple s("state", "ok"); fvVector.push_back(s); if (m_warmstart) { m_stateLagTablePreserved[lagName] = fvVector; } else { m_stateLagTable.set(lagName, fvVector); }
Manual Testing
@judyjoseph , @saiarcot895 , could you folks review?
What I did
Fix for #3192
How I did it
In teamSync::addLag method, update lag "oper_status" status in state_db.
How to verify it
Manual Testing