Skip to content

Commit

Permalink
fixing nexthopBulkTest
Browse files Browse the repository at this point in the history
  • Loading branch information
Ndancejic committed Dec 23, 2024
1 parent 617ef10 commit 04118c8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions syncd/tests/TestSyncdBrcm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -448,8 +448,6 @@ TEST_F(SyncdBrcmTest, nexthopBulkTest)
status = m_sairedis->create(SAI_OBJECT_TYPE_ROUTER_INTERFACE, &rif, switchId, 3, attrs);
EXPECT_EQ(SAI_STATUS_SUCCESS, status);

// create bulk nexthops in init view mode

std::vector<std::vector<sai_attribute_t>> nh_attrs;
std::vector<const sai_attribute_t *> nh_attrs_array;
std::vector<uint32_t> nh_attrs_count;
Expand Down Expand Up @@ -481,7 +479,7 @@ TEST_F(SyncdBrcmTest, nexthopBulkTest)
std::vector<sai_status_t> statuses(count);
std::vector<sai_object_id_t> object_id(count);
status = m_sairedis->bulkCreate(
(sai_object_type_t) SAI_NEXT_HOP_ATTR_TYPE, switchId,
(sai_object_type_t) SAI_OBJECT_TYPE_NEXT_HOP, switchId,
count, nh_attrs_count.data(), nh_attrs_array.data(),
SAI_BULK_OP_ERROR_MODE_IGNORE_ERROR,
object_id.data(), statuses.data());
Expand All @@ -497,7 +495,7 @@ TEST_F(SyncdBrcmTest, nexthopBulkTest)
statuses.clear();

status = m_sairedis->bulkRemove(
(sai_object_type_t) SAI_NEXT_HOP_ATTR_TYPE,
(sai_object_type_t) SAI_OBJECT_TYPE_NEXT_HOP,
count, object_id.data(),
SAI_BULK_OP_ERROR_MODE_IGNORE_ERROR,
statuses.data());
Expand Down

0 comments on commit 04118c8

Please sign in to comment.