---
title: copp
slug: enterprise-v6p1/F3g--copp
createdAt: 2025-12-17T08:18:23.918Z
---

COPP yang module for sonic-mgmt-asterfusion

# <font color="#1d50a2">YANG Tree Diagram</font>

```none
module: asternos-copp
  +--rw copps
     +--rw copp* [name]
        +--rw name                 copp-packet-type
        +--ro trap-ids*            identityref
        +--rw trap-action          copp-packet-action
        +--ro trap-priority?       uint8
        +--ro queue?               uint8
        +--ro mode?                traffic-behavior:policy-mode
        +--ro meter-type?          traffic-behavior:meter-type
        +--ro cbs?                 uint32
        +--rw cir                  uint32
        +--ro red-packet-action?   copp-packet-action

  rpcs:
    +---x show-counters-copp
    |  +---w input
    |  |  +---w packet-type?   copp-packet-type
    |  +--ro output
    |     +--ro data?   <anydata>
    +---x clear-counters-copp
       +--ro output
          +--ro data?   <anydata>
```

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

## <font color="#1d50a2">Resource List</font>

| **Path**                      | **Access** |
| ----------------------------- | ---------- |
| /copps                        | Read-Write |
| /copps/copp                   | Read-Write |
| /copps/copp/name              | Read-Write |
| /copps/copp/trap-ids          | Read-Only  |
| /copps/copp/trap-action       | Read-Write |
| /copps/copp/trap-priority     | Read-Only  |
| /copps/copp/queue             | Read-Only  |
| /copps/copp/mode              | Read-Only  |
| /copps/copp/meter-type        | Read-Only  |
| /copps/copp/cbs               | Read-Only  |
| /copps/copp/cir               | Read-Write |
| /copps/copp/red-packet-action | Read-Only  |

## <font color="#1d50a2">Detailed Nodes</font>

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

**Path**

/copps

**Node Type**

container

**Description**

COPP group configuration

**Access**

Read-Write

### <font color="#1d50a2">/copps/copp</font>

**Path**

/copps/copp

**Node Type**

list

**Description**

List of COPP group

**Access**

Read-Write

### <font color="#1d50a2">/copps/copp/name</font>

**Path**

/copps/copp/name

**Node Type**

leaf

**Description**

COPP group class name

**Access**

Read-Write

**Data Type**

\<YANG type copp-packet-type>

**Constraints**

Enumeration with options:

- acl
- arp
- bfd
- bfdv6
- bgp
- default
- dhcp
- dhcpv6
- eapol
- ftp
- iccp
- icmp
- igmp
- ip2me
- isis
- mtu\_error
- lacp
- ldp
- lldp
- mld
- ndp
- ospf
- ospfv6
- pim
- ptp
- sample\_packet
- snmp
- snp
- ssh
- stp
- telnet
- tftp
- ttl\_error
- vrrp
- vrrpv6
- lbdt

### <font color="#1d50a2">/copps/copp/trap-ids</font>

**Path**

/copps/copp/trap-ids

**Node Type**

leaf-list

**Description**

Name of trap ids

**Access**

Read-Only

**Data Type**

\<YANG type identityref>

**Constraints**

IdentityRef with options:

- bgp
- iccp
- vrrpv6
- ospfv6
- icmp\_echo
- mld\_v2\_report
- eapol
- dhcpv6
- ssh
- ip2me
- lacp
- mld\_v1\_report
- arp\_resp
- lldp
- telnet
- bgpv6
- acl
- igmp\_query
- neigh\_discovery
- stp
- snp
- dhcp
- sample\_packet
- arp\_req
- igmp\_v1\_report
- igmp\_v3\_report
- bfd
- isis
- pim
- vrrp
- snmp
- l3\_mtu\_error
- ospf
- ttl\_error
- ftp
- mld\_v1\_done
- ptp
- bfdv6
- igmp\_leave
- ldp
- mld\_v1\_v2
- igmp\_v2\_report
- tftp
- lbdt

### <font color="#1d50a2">/copps/copp/trap-action</font>

**Path**

/copps/copp/trap-action

**Node Type**

leaf

**Description**

COPP trap action refers to how a network device responds when it detects traffic that exceeds the configured limits or matches specific policies

**Access**

Read-Write

**Data Type**

\<YANG type copp-packet-action>

**Constraints**

Enumeration with options:

- drop
- trap
- copy
- forward

**Mandatory**

Yes

### <font color="#1d50a2">/copps/copp/trap-priority</font>

**Path**

/copps/copp/trap-priority

**Node Type**

leaf

**Description**

Trap priority

**Access**

Read-Only

**Data Type**

\<YANG type uint8>

### <font color="#1d50a2">/copps/copp/queue</font>

**Path**

/copps/copp/queue

**Node Type**

leaf

**Description**

CPU Rx queue

**Access**

Read-Only

**Data Type**

\<YANG type uint8>

**Constraints**

Valid range: 0 to 7

### <font color="#1d50a2">/copps/copp/mode</font>

**Path**

/copps/copp/mode

**Node Type**

leaf

**Description**

Policer mode

**Access**

Read-Only

**Data Type**

\<YANG type policy-mode>

**Constraints**

Enumeration with options:

- sr-tcm
- tr-tcm

### <font color="#1d50a2">/copps/copp/meter-type</font>

**Path**

/copps/copp/meter-type

**Node Type**

leaf

**Description**

Policer meter type

**Access**

Read-Only

**Data Type**

\<YANG type meter-type>

**Constraints**

Enumeration with options:

- packets
- bytes

### <font color="#1d50a2">/copps/copp/cbs</font>

**Path**

/copps/copp/cbs

**Node Type**

leaf

**Description**

Committed burst size for the dual-rate token bucket policer.

This value represents the depth of the token bucket.

**Access**

Read-Only

**Data Type**

\<YANG type uint32>

### <font color="#1d50a2">/copps/copp/cir</font>

**Path**

/copps/copp/cir

**Node Type**

leaf

**Description**

Committed information rate for the dual-rate token bucket policer.

This value represents the rate at which tokens are added to the primary bucket.

**Access**

Read-Write

**Data Type**

\<YANG type uint32>

**Constraints**

Valid range: 125 to 10000

**Mandatory**

Yes

### <font color="#1d50a2">/copps/copp/red-packet-action</font>

**Path**

/copps/copp/red-packet-action

**Node Type**

leaf

**Description**

Red packet action refers to a specific action taken when packets that are deemed critical or potentially harmful are detected

**Access**

Read-Only

**Data Type**

\<YANG type copp-packet-action>

**Constraints**

Enumeration with options:

- drop
- trap
- copy
- forward

