Skip to content

Commit

Permalink
Next hop group with members.
Browse files Browse the repository at this point in the history
    Introduce a new type of Next hop group that allows the application
    to provide the list of next hops that are members of the Next
    hop group along with the list of weights.

Signed-off-by: Kishore Gummadidala <[email protected]>
  • Loading branch information
Kishore Gummadidala committed Sep 17, 2024
1 parent 63127ab commit 4563df5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/ECMP/NextHopGroup_with_members.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Create a next hop group.
group_attr.push_back(attr);
sai_status_t status =
sai->create(SAI_OBJECT_TYPE_NEXT_HOP_GROUP, &group_oid, switchid,
sai_next_hop_group_api->create_next_hop_group(&group_oid, switchid,
(uint32_t)group_attr.size(), group_attr.data());
```

Expand All @@ -77,7 +77,7 @@ Modify follows the same pattern by specifying the new list of next hops and weig
group_attr.push_back(attr);
sai_status_t status =
sai->bulkSet(SAI_OBJECT_TYPE_NEXT_HOP_GROUP,
sai_next_hop_group_api->set_next_hop_groups_attribute(
(uint32_t)nhg_oids.size(),
nhg_oids.data(), group_attr.data(),
SAI_BULK_OP_ERROR_MODE_STOP_ON_ERROR,
Expand Down

0 comments on commit 4563df5

Please sign in to comment.