Skip to content

Conversation

@tejatamboli02
Copy link
Contributor

No description provided.

@tejatamboli02 tejatamboli02 requested a review from a team as a code owner January 8, 2026 00:37
Comment on lines +292 to +294
if (mode == SAI_BULK_OP_ERROR_MODE_STOP_ON_ERROR) {
return overall_status;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we doing this special handling? Can we follow the similar method for bulk API handling like done in other APIs? This is auto-generated code, any special handling will make it difficult to maintain

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok let me fix this

fib = FIBV4Table
}

if req.PacketAction == nil {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we running into such cases? Is this a valid usecase?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes this is needed. There are requests where packetaction was not configured and that's why request failed. This is the reason I have set default to forward action

fib = FIBV4Table
}

entry := fwdconfig.TableEntryAddRequest(r.dataplane.ID(), fib).AppendEntry(fwdconfig.EntryDesc(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we creating a new entry? Isn't "SetRouteEntryAttribute" only supposed to update some attributes to a previously created RouteEntry?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants