From 3f14956c91442a0f26da4e4b8c875154cd4f6bde Mon Sep 17 00:00:00 2001 From: Stepan Blyshchak <38952541+stepanblyschak@users.noreply.github.com> Date: Wed, 6 Mar 2019 16:19:27 +0200 Subject: [PATCH] [portsorch] fix bug in speed set (#806) Signed-off-by: Stepan Blyschak --- orchagent/portsorch.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/orchagent/portsorch.cpp b/orchagent/portsorch.cpp index 502b45d7218c..c16c2c00e1ad 100644 --- a/orchagent/portsorch.cpp +++ b/orchagent/portsorch.cpp @@ -1788,7 +1788,8 @@ void PortsOrch::doPortTask(Consumer &consumer) } SWSS_LOG_NOTICE("Set port %s speed to %u", alias.c_str(), speed); } - m_portList[alias].m_speed = speed; + p.m_speed = speed; + m_portList[alias] = p; } if (mtu != 0 && mtu != p.m_mtu)