Skip to content

Commit

Permalink
[syncd] Fix bulk api object type for next hop group members (sonic-ne…
Browse files Browse the repository at this point in the history
…t#685)

SAI_OBJECT_TYPE_NEXT_HOP_GROUP_MEMBER object type should be used for m_apis.next_hop_group_api->create_next_hop_group_members

NEXT_HOP_GROUP object type has no bulk api at all
  • Loading branch information
kcudnik authored Nov 3, 2020
1 parent 0b08f52 commit 797197c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions syncd/VendorSai.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ sai_status_t VendorSai::bulkCreate(
ptr = m_apis.lag_api->create_lag_members;
break;

case SAI_OBJECT_TYPE_NEXT_HOP_GROUP:
case SAI_OBJECT_TYPE_NEXT_HOP_GROUP_MEMBER:
ptr = m_apis.next_hop_group_api->create_next_hop_group_members;
break;

Expand All @@ -662,7 +662,7 @@ sai_status_t VendorSai::bulkCreate(
break;

default:
SWSS_LOG_ERROR("not implemented, FIXME");
SWSS_LOG_ERROR("not implemented %s, FIXME", sai_serialize_object_type(object_type).c_str());
return SAI_STATUS_NOT_IMPLEMENTED;
}

Expand Down Expand Up @@ -704,7 +704,7 @@ sai_status_t VendorSai::bulkRemove(
ptr = m_apis.lag_api->remove_lag_members;
break;

case SAI_OBJECT_TYPE_NEXT_HOP_GROUP:
case SAI_OBJECT_TYPE_NEXT_HOP_GROUP_MEMBER:
ptr = m_apis.next_hop_group_api->remove_next_hop_group_members;
break;

Expand All @@ -721,7 +721,7 @@ sai_status_t VendorSai::bulkRemove(
break;

default:
SWSS_LOG_ERROR("not implemented, FIXME");
SWSS_LOG_ERROR("not implemented %s, FIXME", sai_serialize_object_type(object_type).c_str());
return SAI_STATUS_NOT_IMPLEMENTED;
}

Expand Down

0 comments on commit 797197c

Please sign in to comment.