You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Aug 17 21:10:39.473234 sonic ERR swss/orchagent: :- meta_generic_validation_set: SAI_POLICER_ATTR_METER_TYPE:SAI_ATTR_VALUE_TYPE_INT32 attr is create only and cannot be modified
Aug 17 21:10:39.473345 sonic ERR swss/orchagent: :- processCoppRule: Failed to apply attribute[2].id=0 to policer for trap group:default, error:-5
Aug 17 21:10:39.473345 sonic ERR swss/orchagent: :- doTask: Processing copp task item failed, exiting.
/**
* @brief Policer Meter Type
*
* @type sai_meter_type_t
* @flags MANDATORY_ON_CREATE | CREATE_ONLY
*/
SAI_POLICER_ATTR_METER_TYPE = SAI_POLICER_ATTR_START,
The text was updated successfully, but these errors were encountered:
It will be if possible. Actually there are few other create only attributes in saipolicer.h
We either make them create and set, or update SONiC code logic to handle them properly.
Attribute SAI_POLICER_ATTR_METER_TYPE is create only, while CoppOrch::processCoppRule() provided set interface for it.
https://github.com/Azure/sonic-swss/blob/136621b497d8a51577c7a33e67c7d0fb68a04f2d/orchagent/copporch.cpp#L379
The text was updated successfully, but these errors were encountered: