Skip to content

Commit

Permalink
[copporch]: Add SAI_HOSTIF_TRAP_TYPE_UDLD (sonic-net#480)
Browse files Browse the repository at this point in the history
Signed-off-by: Shu0T1an ChenG <[email protected]>
  • Loading branch information
Shuotian Cheng authored and lguohan committed May 11, 2018
1 parent 78c86ca commit 0246df7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion orchagent/copporch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ map<string, sai_hostif_trap_type_t> 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<string, sai_packet_action_t> packet_action_map = {
Expand Down
4 changes: 2 additions & 2 deletions swssconfig/sample/00-copp.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 0246df7

Please sign in to comment.