Skip to content

Commit

Permalink
Don't treat ATTR_NOT_IMPLEMENTED and ATTR_NOT_SUPPORTED as errors (so…
Browse files Browse the repository at this point in the history
  • Loading branch information
pavel-shirshov authored May 16, 2018
1 parent 7c29ecb commit a314ac4
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 @@ -3644,7 +3644,9 @@ sai_status_t meta_sai_set_fdb_entry(
#define META_LOG_STATUS(s)\
if (s == SAI_STATUS_SUCCESS) \
SWSS_LOG_DEBUG("get status: %s", sai_serialize_status(s).c_str()); \
else if (s == SAI_STATUS_BUFFER_OVERFLOW) \
else if (s == SAI_STATUS_BUFFER_OVERFLOW \
|| SAI_STATUS_IS_ATTR_NOT_IMPLEMENTED(s) \
|| SAI_STATUS_IS_ATTR_NOT_SUPPORTED(s)) \
SWSS_LOG_INFO("get status: %s", sai_serialize_status(s).c_str()); \
else \
SWSS_LOG_ERROR("get status: %s", sai_serialize_status(s).c_str());
Expand Down

0 comments on commit a314ac4

Please sign in to comment.