Skip to content

Commit

Permalink
Ignore bridge port id in fdb consolidated event if value is NULL (son…
Browse files Browse the repository at this point in the history
  • Loading branch information
kcudnik authored and lguohan committed May 14, 2018
1 parent 75ed784 commit 7c29ecb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion meta/sai_meta.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4679,7 +4679,9 @@ void meta_sai_on_fdb_flush_event_consolidated(
continue;
}

if (bpid != NULL)
// only consider bridge port id if it's defined and value is not NULL
// since vendor can add this attribute to fdb_entry with NULL value
if (bpid != NULL && bpid->value.oid != SAI_NULL_OBJECT_ID)
{
if (it->second.find(SAI_FDB_ENTRY_ATTR_BRIDGE_PORT_ID) == it->second.end())
{
Expand Down

0 comments on commit 7c29ecb

Please sign in to comment.