Skip to content

Commit 543bd98

Browse files
stchengyxieca
authored andcommitted
[aclorch]: Fix table name in counter table for mirror rules (#1060)
In ACL combined mode, v4 and v6 rules are sharing the same physical table while having separated configuration tables. The daemon needs to use the configuration table name to store the counter information. Signed-off-by: Shu0T1an ChenG <[email protected]>
1 parent 12c29b4 commit 543bd98

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

orchagent/aclorch.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -3000,7 +3000,8 @@ void AclOrch::doTask(SelectableTimer &timer)
30003000
swss::FieldValueTuple fvtb("Bytes", to_string(cnt.bytes));
30013001
values.push_back(fvtb);
30023002

3003-
AclOrch::getCountersTable().set(table_it.second.id + ":" + rule_it.second->getId(), values, "");
3003+
AclOrch::getCountersTable().set(rule_it.second->getTableId() + ":"
3004+
+ rule_it.second->getId(), values, "");
30043005
}
30053006
values.clear();
30063007
}

0 commit comments

Comments
 (0)