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.
- What I did
Command to display CoPP configuration
- How I did it
Update the show utility to fetch from APP_DB
- How to verify it
show copp config
- Previous command output (if the output of a command-line utility has changed)
NA
- New command output (if the output of a command-line utility has changed)
oot@sonic:/usr/local# show copp config
{
"COPP_TABLE:default": {
"value": {
"cbs": "600",
"cir": "600",
"meter_type": "packets",
"mode": "sr_tcm",
"queue": "0",
"red_action": "drop"
}
},
"COPP_TABLE:trap.group.arp": {
"value": {
"cbs": "600",
"cir": "600",
"meter_type": "packets",
"mode": "sr_tcm",
"queue": "4",
"red_action": "drop",
"trap_action": "copy",
"trap_ids": "arp_req,arp_resp,neigh_discovery",
"trap_priority": "4"
}
},
"COPP_TABLE:trap.group.bgp.lacp": {
"value": {
"queue": "4",
"trap_action": "trap",
"trap_ids": "bgp,bgpv6,lacp",
"trap_priority": "4"
}
},
"COPP_TABLE:trap.group.ip2me": {
"value": {
"cbs": "6000",
"cir": "6000",
"meter_type": "packets",
"mode": "sr_tcm",
"queue": "1",
"red_action": "drop",
"trap_action": "trap",
"trap_ids": "ip2me",
"trap_priority": "1"
}
},
"COPP_TABLE:trap.group.lldp.udld": {
"value": {
"queue": "4",
"trap_action": "trap",
"trap_ids": "lldp,udld",
"trap_priority": "4"
}
},
"COPP_TABLE:trap.group.nat": {
"value": {
"cbs": "600",
"cir": "600",
"meter_type": "packets",
"mode": "sr_tcm",
"queue": "1",
"red_action": "drop",
"trap_action": "trap",
"trap_ids": "src_nat_miss,dest_nat_miss",
"trap_priority": "1"
}
},
"COPP_TABLE:trap.group.sflow": {
"value": {
"cbs": "8000",
"cir": "8000",
"genetlink_mcgrp_name": "packets",
"genetlink_name": "psample",
"meter_type": "packets",
"mode": "sr_tcm",
"queue": "3",
"red_action": "drop",
"trap_action": "trap",
"trap_ids": "sample_packet",
"trap_priority": "3"
}
}
}