Skip to content

Commit

Permalink
[teamsyncd]: Check if LAG exists before removing (#1069)
Browse files Browse the repository at this point in the history
Signed-off-by: Shu0T1an ChenG <[email protected]>
  • Loading branch information
stcheng authored Oct 2, 2019
1 parent 175f3de commit fee1aaa
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions teamsyncd/teamsync.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,11 @@ void TeamSync::onMsg(int nlmsg_type, struct nl_object *obj)

if (nlmsg_type == RTM_DELLINK)
{
/* Remove LAG ports and delete LAG */
removeLag(lagName);
if (m_teamSelectables.find(lagName) != m_teamSelectables.end())
{
/* Remove LAG ports and delete LAG */
removeLag(lagName);
}
return;
}

Expand Down

0 comments on commit fee1aaa

Please sign in to comment.