File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -1656,6 +1656,28 @@ class AsicView
1656
1656
{
1657
1657
std::shared_ptr<SaiAttr> attr = std::make_shared<SaiAttr>(field.first , field.second );
1658
1658
1659
+ if (obj->getObjectType () == SAI_OBJECT_TYPE_ACL_COUNTER)
1660
+ {
1661
+ auto * meta = attr->getAttrMetadata ();
1662
+
1663
+ switch (meta->attrid )
1664
+ {
1665
+
1666
+ case SAI_ACL_COUNTER_ATTR_PACKETS:
1667
+ case SAI_ACL_COUNTER_ATTR_BYTES:
1668
+
1669
+ // when reading asic view, ignore acl counter packets and bytes
1670
+ // this will result to not compare them during comparison logic
1671
+
1672
+ SWSS_LOG_INFO (" ignoring %s for %s" , meta->attridname , obj->str_object_id .c_str ());
1673
+
1674
+ continue ;
1675
+
1676
+ default :
1677
+ break ;
1678
+ }
1679
+ }
1680
+
1659
1681
obj->setAttr (attr);
1660
1682
1661
1683
/*
You can’t perform that action at this time.
0 commit comments