Skip to content

Commit

Permalink
[teamsyncd]: Fix LAG add: write MTU configuration. (sonic-net#1423)
Browse files Browse the repository at this point in the history
Signed-off-by: Nazarii Hnydyn <nazariig@nvidia.com>
  • Loading branch information
nazariig authored Sep 11, 2020
1 parent 68d90e0 commit 4aa48d6
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 4aa48d6

Please sign in to comment.