[copp]: Add queue4_group4 CoPP group and ospf/ospfv6 trap in copp_cfg.j2#729
Open
iris00522 wants to merge 1 commit into
Open
[copp]: Add queue4_group4 CoPP group and ospf/ospfv6 trap in copp_cfg.j2#729iris00522 wants to merge 1 commit into
iris00522 wants to merge 1 commit into
Conversation
Signed-off-by: iris_hsu <iris_hsu@edge-core.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why I did it
OSPFv2 / OSPFv6 control plane packets did not have a dedicated CoPP policer.
This change adds a new CoPP group
queue4_group4and registers the OSPF andOSPFv6 traps to it, so these protocol packets are trapped to the CPU and
policed on their own queue with a defined rate.
How I did it
Modified
files/image_config/copp/copp_cfg.j2:queue4_group4(queue 6, trap_priority 6, cir/cbs 100,
trap_action: trap).ospfentry underCOPP_TRAPwithtrap_ids: "ospf,ospfv6"mapped to
queue4_group4, so both OSPF and OSPFv6 packets are trapped tothis group.