Skip to content

Commit

Permalink
fix warmboot.AgentDscpMarkingTest.VerifyDscpMarking on J3
Browse files Browse the repository at this point in the history
Summary: fix warmboot.AgentDscpMarkingTest.VerifyDscpMarking by specifying the right ACL counter type

Reviewed By: zechengh09

Differential Revision:
D61621720

Privacy Context Container: L1125642

fbshipit-source-id: ae5ef32b63b54e41e7c66c50a8f9b914b0d984c5
  • Loading branch information
daiwei1983 authored and facebook-github-bot committed Aug 21, 2024
1 parent 1e75c88 commit 3621ef5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fboss/agent/test/utils/DscpMarkingUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ void addDscpCounterAcl(
auto acl = utility::addDscpAclToCfg(
hwAsic, config, kDscpCounterAclName(), utility::kIcpDscp());
acl->actionType() = actionType;
std::vector<cfg::CounterType> counterTypes{cfg::CounterType::PACKETS};
std::vector<cfg::CounterType> counterTypes =
utility::getAclCounterTypes({hwAsic});
utility::addTrafficCounter(config, kCounterName(), counterTypes);
cfg::MatchAction matchAction = cfg::MatchAction();
matchAction.counter() = kCounterName();
Expand Down

0 comments on commit 3621ef5

Please sign in to comment.