diff --git a/orchagent/copporch.cpp b/orchagent/copporch.cpp index b7471d632955..29bbc8eb2f83 100644 --- a/orchagent/copporch.cpp +++ b/orchagent/copporch.cpp @@ -67,7 +67,8 @@ map trap_id_map = { {"snmp", SAI_HOSTIF_TRAP_TYPE_SNMP}, {"router_custom_range", SAI_HOSTIF_TRAP_TYPE_ROUTER_CUSTOM_RANGE_BASE}, {"l3_mtu_error", SAI_HOSTIF_TRAP_TYPE_L3_MTU_ERROR}, - {"ttl_error", SAI_HOSTIF_TRAP_TYPE_TTL_ERROR} + {"ttl_error", SAI_HOSTIF_TRAP_TYPE_TTL_ERROR}, + {"udld", SAI_HOSTIF_TRAP_TYPE_UDLD} }; map packet_action_map = { diff --git a/swssconfig/sample/00-copp.config.json b/swssconfig/sample/00-copp.config.json index e3400c65ca6d..c7b0473ffc48 100644 --- a/swssconfig/sample/00-copp.config.json +++ b/swssconfig/sample/00-copp.config.json @@ -34,8 +34,8 @@ "OP": "SET" }, { - "COPP_TABLE:trap.group.lldp.dhcp": { - "trap_ids": "lldp,dhcp", + "COPP_TABLE:trap.group.lldp.dhcp.udld": { + "trap_ids": "lldp,dhcp,udld", "trap_action":"trap", "trap_priority":"4", "queue": "4"