Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion tests/copp/scripts/update_copp_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,22 @@ def generate_limited_pps_config(pps_limit, input_config_file, output_config_file
# Setting these two values to pps_limit restricts the policer to allowing exactly
# that number of packets per second, which is what we want for our tests.
# For queue4_group3, use the default value in copp
# configuration as this is lower than 600 PPS
# configuration as this is lower than 600 PPS.
# For queue1_group3, we aim to rate limit punted traffic to a very low rate of 200 PPS.
# This is done to prevent any impact on more critical punted traffic and
# is specifically applied to traffic associated with the NEIGHBOR_MISS trap ID.
if tg == "queue4_group3":
if asic_type == "cisco-8000":
group_config["cir"] = "400"
group_config["cbs"] = "400"
else:
continue
elif tg == "queue1_group3":
if asic_type == "cisco-8000":
group_config["cir"] = "200"
group_config["cbs"] = "200"
else:
continue
else:
if "cir" in group_config:
group_config["cir"] = pps_limit
Expand Down
Loading