sonic-swss
sonic-swss copied to clipboard
Make bulk SAI calls in order for non-OID objects in the bulker API
What I did Today, the bulker library does not maintain order for non-OID objects. This PR changes it to keep the requested order.
Why I did it As part of the performance improvement effort, we updated P4Orch route manager to use bulk SAI API. With the current bulker library, it does not maintain the order. For the SDN use case, keeping the route programming order is important (for example, the default route needs to be programmed first to avoid packet drop).
How I verified it Unit test
Details if related N/A