-
Notifications
You must be signed in to change notification settings - Fork 547
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
CRM incorrect processing for CRM_MPLS_NEXTHOP #2044
Comments
@smaheshm @qbdwlr @prsunny @kcudnik Please take a look @kperumalbfn FYI |
@smahesh @prsunny @kcudnik @kperumalbfn The fix in #2008 is completely wrong and likely still triggers the same error that it was supposed to fix. |
In
void CrmOrch::getResAvailableCounters()
forcase CrmResourceType::CRM_MPLS_NEXTHOP:
we dostatic_cast<sai_object_type_t>(crmResSaiAvailAttrMap.at(res.first)); but after this PR #2008 the value was changed from
SAI_OBJECT_TYPE_NEXT_HOP
toSAI_SWITCH_ATTR_AVAILABLE_IPV4_NEXTHOP_ENTRY
so the logic invoid CrmOrch::getResAvailableCounters()
forcase CrmResourceType::CRM_MPLS_NEXTHOP:
become broken and start produce the followin errors in SONiC:Link to related source code https://github.com/Azure/sonic-swss/blob/01c243a1cfa397065f9d8f5519168bc556cf6328/orchagent/crmorch.cpp#L589
https://github.com/Azure/sonic-swss/blob/01c243a1cfa397065f9d8f5519168bc556cf6328/orchagent/crmorch.cpp#L67
The text was updated successfully, but these errors were encountered: