Skip to content

Commit

Permalink
Deactivate mirror session only when session status is true in updateL…
Browse files Browse the repository at this point in the history
…agMember (#1666)

Deactivate mirror session only when the status is true in updateLagMember
  • Loading branch information
shi-su authored and Shi Su committed Aug 18, 2021
1 parent be12482 commit 941875a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion orchagent/mirrororch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1370,7 +1370,10 @@ void MirrorOrch::updateLagMember(const LagMemberUpdate& update)
// If LAG is empty, deactivate session
if (update.lag.m_members.empty())
{
deactivateSession(name, session);
if (session.status)
{
deactivateSession(name, session);
}
session.neighborInfo.portId = SAI_OBJECT_TYPE_NULL;
}
// Switch to a new member of the LAG
Expand Down

0 comments on commit 941875a

Please sign in to comment.