Skip to content

Commit

Permalink
Do not store invalid OIDs from FDB notification into ASIC DB (sonic-n…
Browse files Browse the repository at this point in the history
  • Loading branch information
kcudnik authored and yxieca committed Aug 13, 2019
1 parent 6bc64ee commit 1d03c55
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions syncd/syncd_notifications.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,12 @@ void process_on_fdb_event(

sendntf &= check_fdb_event_notification_data(*fdb);

if (!sendntf)
{
SWSS_LOG_ERROR("invalid OIDs in fdb notifications, NOT translating and NOT storing in ASIC DB");
continue;
}

SWSS_LOG_DEBUG("fdb %u: type: %d", i, fdb->event_type);

fdb->fdb_entry.switch_id = translate_rid_to_vid(fdb->fdb_entry.switch_id, SAI_NULL_OBJECT_ID);
Expand Down

0 comments on commit 1d03c55

Please sign in to comment.