@@ -491,14 +491,10 @@ task_process_status CoppOrch::processCoppRule(Consumer& consumer)
491
491
{
492
492
auto trap_gr_attr = trap_gr_attribs[ind];
493
493
494
- sai_status = sai_hostif_api->set_hostif_trap_group_attribute (
495
- m_trap_group_map[trap_group_name], &trap_gr_attr);
494
+ sai_status = sai_hostif_api->set_hostif_trap_group_attribute (m_trap_group_map[trap_group_name], &trap_gr_attr);
496
495
if (sai_status != SAI_STATUS_SUCCESS)
497
496
{
498
- SWSS_LOG_ERROR (" Failed to apply attribute:%d to trap group:%" PRIx64 " "
499
- " , name:%s, error:%d\n " , trap_gr_attr.id ,
500
- m_trap_group_map[trap_group_name], trap_group_name.c_str (),
501
- sai_status);
497
+ SWSS_LOG_ERROR (" Failed to apply attribute:%d to trap group:%" PRIx64 " , name:%s, error:%d\n " , trap_gr_attr.id , m_trap_group_map[trap_group_name], trap_group_name.c_str (), sai_status);
502
498
return task_process_status::task_failed;
503
499
}
504
500
SWSS_LOG_NOTICE (" Set trap group %s to host interface" , trap_group_name.c_str ());
@@ -509,13 +505,10 @@ task_process_status CoppOrch::processCoppRule(Consumer& consumer)
509
505
{
510
506
sai_object_id_t new_trap;
511
507
512
- sai_status = sai_hostif_api->create_hostif_trap_group (&new_trap, gSwitchId ,
513
- (uint32_t )trap_gr_attribs.size (),
514
- trap_gr_attribs.data ());
508
+ sai_status = sai_hostif_api->create_hostif_trap_group (&new_trap, gSwitchId , (uint32_t )trap_gr_attribs.size (), trap_gr_attribs.data ());
515
509
if (sai_status != SAI_STATUS_SUCCESS)
516
510
{
517
- SWSS_LOG_ERROR (" Failed to create host interface trap group %s, rc=%d" ,
518
- trap_group_name.c_str (), sai_status);
511
+ SWSS_LOG_ERROR (" Failed to create host interface trap group %s, rc=%d" , trap_group_name.c_str (), sai_status);
519
512
return task_process_status::task_failed;
520
513
}
521
514
0 commit comments