From 797197cb5556c58033f8b1200ada741bce2f4f0b Mon Sep 17 00:00:00 2001 From: Kamil Cudnik Date: Tue, 3 Nov 2020 14:34:48 +0100 Subject: [PATCH] [syncd] Fix bulk api object type for next hop group members (#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 --- syncd/VendorSai.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/syncd/VendorSai.cpp b/syncd/VendorSai.cpp index bc978ab2c420..cabd461406c6 100644 --- a/syncd/VendorSai.cpp +++ b/syncd/VendorSai.cpp @@ -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; @@ -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; } @@ -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; @@ -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; }