Skip to content

Commit 1d03c55

Browse files
kcudnikyxieca
authored andcommitted
Do not store invalid OIDs from FDB notification into ASIC DB (sonic-net#503)
1 parent 6bc64ee commit 1d03c55

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

syncd/syncd_notifications.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,12 @@ void process_on_fdb_event(
340340

341341
sendntf &= check_fdb_event_notification_data(*fdb);
342342

343+
if (!sendntf)
344+
{
345+
SWSS_LOG_ERROR("invalid OIDs in fdb notifications, NOT translating and NOT storing in ASIC DB");
346+
continue;
347+
}
348+
343349
SWSS_LOG_DEBUG("fdb %u: type: %d", i, fdb->event_type);
344350

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

0 commit comments

Comments
 (0)