From 3cc4aab03cda1842d60472d35a1f2885e3b23308 Mon Sep 17 00:00:00 2001 From: Prabhat Aravind Date: Thu, 19 Dec 2024 23:36:23 +0000 Subject: [PATCH] Attach neighbor_miss trap to default trap group policed at 600pps Signed-off-by: Prabhat Aravind --- orchagent/copporch.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/orchagent/copporch.cpp b/orchagent/copporch.cpp index 6c6a7157e55..483f6841712 100644 --- a/orchagent/copporch.cpp +++ b/orchagent/copporch.cpp @@ -89,7 +89,8 @@ static map trap_id_map = { {"dest_nat_miss", SAI_HOSTIF_TRAP_TYPE_DNAT_MISS}, {"ldp", SAI_HOSTIF_TRAP_TYPE_LDP}, {"bfd_micro", SAI_HOSTIF_TRAP_TYPE_BFD_MICRO}, - {"bfdv6_micro", SAI_HOSTIF_TRAP_TYPE_BFDV6_MICRO} + {"bfdv6_micro", SAI_HOSTIF_TRAP_TYPE_BFDV6_MICRO}, + {"neighbor_miss", SAI_HOSTIF_TRAP_TYPE_NEIGHBOR_MISS} }; @@ -120,7 +121,8 @@ static map packet_action_map = { const string default_trap_group = "default"; const vector default_trap_ids = { - SAI_HOSTIF_TRAP_TYPE_TTL_ERROR + SAI_HOSTIF_TRAP_TYPE_TTL_ERROR, + SAI_HOSTIF_TRAP_TYPE_NEIGHBOR_MISS }; const uint HOSTIF_TRAP_COUNTER_POLLING_INTERVAL_MS = 10000; @@ -823,7 +825,8 @@ void CoppOrch::getTrapAddandRemoveList(string trap_group_name, { if ((trap_group_name != default_trap_group) || ((trap_group_name == default_trap_group) && - (it.first != SAI_HOSTIF_TRAP_TYPE_TTL_ERROR))) + (it.first != SAI_HOSTIF_TRAP_TYPE_TTL_ERROR) || + (it.first != SAI_HOSTIF_TRAP_TYPE_NEIGHBOR_MISS))) { rem_trap_ids.push_back(it.first); }