---
title: CoPP
slug: aidc/vg-V-copp
createdAt: 2025-12-29T10:34:02.791Z
---

Control Plane Policing.

## <font color="#1d50a2">URLs Summary</font>

| **URL**                                 | **GET** | **POST** | **PATCH** | **PUT** | **DELETE** |
| --------------------------------------- | ------- | -------- | --------- | ------- | ---------- |
| /rest/v1/running/copp                   | Y       | N        | Y         | N       | N          |
| /rest/v1/running/copp/group/&#x7B;name} | Y       | Y        | Y         | N       | Y          |

## <font color="#1d50a2">Examples</font>

### <font color="#1d50a2">Get all CoPP configurations.</font>

```json
GET HTTPS://{switch IP}/rest/v1/running/copp
```

### <font color="#1d50a2">Create a CoPP group.</font>

```json
POST HTTPS://{switch IP}/rest/v1/running/copp/group
{
    "name": "copp-system-lldp",
    "cir": null,
    "cbs": null
}
```

## <font color="#1d50a2">Properties Descriptions</font>

### <font color="#1d50a2">CoPP groups</font>

**Tree Diagrams**

```plaintext
  +--rw copp
     +--rw group* [name]
        +--rw name
        +--ro trap-ids*
        +--ro queue?
        +--ro trap-priority?
        +--ro trap-action?
        +--ro mode?
        +--ro meter-type?
        +--rw cbs?
        +--rw cir?
        +--ro red-packet-action?
        +--ro green-packet-action?
        +--ro yellow-packet-action?
```

**Table of Properties**

| **Name**             | **Required** | **Type/Range**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | **Description**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| -------------------- | ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| copp                 | M            |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | Path-only node, has no configurable value.<br />CoPP group configuration                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| group                | M            |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | (sub-property of copp)<br />Path-only node, has no configurable value.<br />List of CoPP group                                                                                                                                                                                                                                                                                                                                                                                                                              |
| name                 | M            | "copp-system-ttl\_err"<br />"copp-system-static\_fdb\_move"<br />"copp-system-bgp"<br />"copp-system-bfd"<br />"copp-system-ospf"<br />"copp-system-vrrp"<br />"copp-system-isis"<br />"copp-system-lacp"<br />"copp-system-stp"<br />"copp-system-arp"<br />"copp-system-neigh\_discovery"<br />"copp-system-macsec"<br />"copp-system-lldp"<br />"copp-system-igmp"<br />"copp-system-udld"<br />"copp-system-pim"<br />"copp-system-dhcp\_relay"<br />"copp-system-sflow"<br />"copp-system-ip2me"<br />"copp-system-nat"<br />"copp-system-ptp"<br />"copp-system-pvrst"<br />"copp-system-vrrpv6"<br />"copp-system-mld"<br />"copp-system-ssh"<br />"copp-system-snmp"<br />"copp-system-l3\_mtu\_error"<br />"copp-system-ldp" | (sub-property of group)<br />CoPP group class name; Current platform support names like "copp-system-xxx" that define specific class                                                                                                                                                                                                                                                                                                                                                                                        |
| trap-ids             | RO           | "bgp"<br />"bgpv6"<br />"bfd"<br />"bfdv6"<br />"ospf"<br />"ospfv6"<br />"vrrp"<br />"isis"<br />"lacp"<br />"stp"<br />"arp\_req"<br />"arp\_resp"<br />"neigh\_discovery"<br />"eapol"<br />"src\_nat\_miss"<br />"dest\_nat\_miss"<br />"lldp"<br />"udld"<br />"dhcp"<br />"dhcpv6"<br />"ip2me"<br />"igmp\_query"<br />"igmp\_leave"<br />"igmp\_v1\_report"<br />"igmp\_v2\_report"<br />"igmp\_v3\_report"<br />"sample\_packet"<br />"static\_fdb\_move"<br />"ttl\_error"<br />"pim"<br />"ptp"<br />"pvrst"<br />"vrrpv6"<br />"mld\_v1\_v2"<br />"mld\_v1\_report"<br />"mld\_v2\_report"<br />"mld\_v1\_done"<br />"ssh"<br />"l3\_mtu\_error"<br />"snmp"<br />"ldp"                                                   | (sub-property of group)<br />Value of trap ids does not support to configure; Trap-ids mostly is associated with class-name, for examle: isis is the trap-id of copp-system-isis. Here're some special trap-ids worthy of remark: bgp, bgpv6 -> copp-system-bgp bfd, bfdv6 -> copp-system-bfd ospf, ospfv6 -> copp-system-ospf arp\_req, arp\_resp -> copp-system-arp src\_nat\_miss, dest\_nat\_miss -> copp-system-nat igmp\_query, igmp\_leave, igmg\_v1\_report, igmp\_v2\_report, igmp\_v3\_report -> copp-system-igmp |
| queue                | RO           | 0..7                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | (sub-property of group)<br />CPU Rx queue<br />Default value: 0                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| trap-priority        | RO           | 0..255                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | (sub-property of group)<br />Trap priority; Normally the same as queue                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| trap-action          | RO           | "drop"<br />"trap"<br />"copy"<br />"forward"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | (sub-property of group)<br />COPP trap action refers to how a network device responds when it detects traffic that exceeds the configured limits or matches specific policies                                                                                                                                                                                                                                                                                                                                               |
| mode                 | RO           | "sr-tcm"<br />"tr-tcm"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | (sub-property of group)<br />Policer mode<br />Default value: "sr-tcm"                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| meter-type           | RO           | "packets"<br />"bytes"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | (sub-property of group)<br />Policer meter type<br />Default value: "bytes"                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| cbs                  | O            | 0<br />1000..400000000000                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | (sub-property of group)<br />Committed burst size for the dual-rate token bucket policer. This value represents the depth of the token bucket. If platform is innovium, the value of cbs must greater than (cir \* 128 / 1000000)                                                                                                                                                                                                                                                                                           |
| cir                  | O            | 0<br />1000..400000000000                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | (sub-property of group)<br />Committed information rate for the dual-rate token bucket policer.This value represents the rate at which tokens are added to the primary bucket.                                                                                                                                                                                                                                                                                                                                              |
| red-packet-action    | RO           | "drop"<br />"trap"<br />"copy"<br />"forward"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | (sub-property of group)<br />Red packet action refers to a specific action taken when packets that are deemed critical or potentially harmful are detected<br />Default value: "drop"                                                                                                                                                                                                                                                                                                                                       |
| green-packet-action  | RO           | "drop"<br />"trap"<br />"copy"<br />"forward"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | (sub-property of group)<br />Green packet action refers to handling packets that are considered safe and fall within acceptable limits.                                                                                                                                                                                                                                                                                                                                                                                     |
| yellow-packet-action | RO           | "drop"<br />"trap"<br />"copy"<br />"forward"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | (sub-property of group)<br />Yellow packet action refers to how a network device handles packets that are classified as potentially problematic but not immediately harmful                                                                                                                                                                                                                                                                                                                                                 |

