We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 567de6b commit 29a6bc4Copy full SHA for 29a6bc4
orchagent/portsorch.cpp
@@ -3812,9 +3812,9 @@ bool PortsOrch::initPort(const PortConfig &port)
3812
}
3813
if (flex_counters_orch->getPortAttrCountersState())
3814
{
3815
- if (p.m_type == Port::Type::PHY && supportsPortAttr(p.m_port_id, p.m_alias.c_str()))
+ if (p.m_type == Port::Type::PHY && !m_supported_phy_attrs.empty())
3816
3817
- if (!m_supported_phy_attrs.empty())
+ if (supportsPortAttr(p.m_port_id, p.m_alias.c_str()))
3818
3819
auto port_attr_stats = generateCounterStats(m_supported_phy_attrs, sai_serialize_port_attr);
3820
port_attr_manager.setCounterIdList(p.m_port_id,
0 commit comments