-
Notifications
You must be signed in to change notification settings - Fork 24
Add bulk API support for set operation for route #632
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
| if (mode == SAI_BULK_OP_ERROR_MODE_STOP_ON_ERROR) { | ||
| return overall_status; | ||
| } |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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( |
There was a problem hiding this comment.
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?
No description provided.