Skip to content
Ask AI

copp

COPP yang module for sonic-mgmt-asterfusion

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>
PathAccess
/coppsRead-Write
/copps/coppRead-Write
/copps/copp/nameRead-Write
/copps/copp/trap-idsRead-Only
/copps/copp/trap-actionRead-Write
/copps/copp/trap-priorityRead-Only
/copps/copp/queueRead-Only
/copps/copp/modeRead-Only
/copps/copp/meter-typeRead-Only
/copps/copp/cbsRead-Only
/copps/copp/cirRead-Write
/copps/copp/red-packet-actionRead-Only

Path

/copps

Node Type

container

Description

COPP group configuration

Access

Read-Write

Path

/copps/copp

Node Type

list

Description

List of COPP group

Access

Read-Write

Path

/copps/copp/name

Node Type

leaf

Description

COPP group class name

Access

Read-Write

Data 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

Path

/copps/copp/trap-ids

Node Type

leaf-list

Description

Name of trap ids

Access

Read-Only

Data Type

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

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

Constraints

Enumeration with options:

  • drop
  • trap
  • copy
  • forward

Mandatory

Yes

Path

/copps/copp/trap-priority

Node Type

leaf

Description

Trap priority

Access

Read-Only

Data Type

Path

/copps/copp/queue

Node Type

leaf

Description

CPU Rx queue

Access

Read-Only

Data Type

Constraints

Valid range: 0 to 7

Path

/copps/copp/mode

Node Type

leaf

Description

Policer mode

Access

Read-Only

Data Type

Constraints

Enumeration with options:

  • sr-tcm
  • tr-tcm

Path

/copps/copp/meter-type

Node Type

leaf

Description

Policer meter type

Access

Read-Only

Data Type

Constraints

Enumeration with options:

  • packets
  • bytes

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

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

Constraints

Valid range: 125 to 10000

Mandatory

Yes

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

Constraints

Enumeration with options:

  • drop
  • trap
  • copy
  • forward