Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[teamsyncd] Update "oper_status" of LAG_TABLE in state_db (#3192) #3194

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
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
3 changes: 2 additions & 1 deletion teamsyncd/teamsync.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,10 @@ void TeamSync::addLag(const string &lagName, int ifindex, bool admin_state,
if (m_teamSelectables.find(lagName) != m_teamSelectables.end())
{
auto tsync = m_teamSelectables[lagName];
if (tsync->admin_state == admin_state && tsync->mtu == mtu)
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;
}
Expand Down
1 change: 1 addition & 0 deletions teamsyncd/teamsync.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ class TeamSync : public NetMsg
/* member_name -> enabled|disabled */
std::map<std::string, bool> m_lagMembers;
bool admin_state;
bool oper_state;
unsigned int mtu;
protected:
int onChange();
Expand Down
Loading