Skip to content

Commit

Permalink
[teamsyncd]: Fix LAG add: write MTU configuration. (#1437)
Browse files Browse the repository at this point in the history
  • Loading branch information
nazariig committed Sep 15, 2020
1 parent 7b15a65 commit f041c84
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions teamsyncd/teamsync.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,10 @@ void TeamSync::addLag(const string &lagName, int ifindex, bool admin_state,
std::vector<FieldValueTuple> fvVector;
FieldValueTuple a("admin_status", admin_state ? "up" : "down");
FieldValueTuple o("oper_status", oper_state ? "up" : "down");
FieldValueTuple m("mtu", std::to_string(mtu));
fvVector.push_back(a);
fvVector.push_back(o);
fvVector.push_back(m);
m_lagTable.set(lagName, fvVector);

SWSS_LOG_INFO("Add %s admin_status:%s oper_status:%s, mtu: %d",
Expand Down

0 comments on commit f041c84

Please sign in to comment.