Skip to content

Remove unnecessary extra ip route calls when checking for routes to add and delete in network module.#302

Open
copybara-service[bot] wants to merge 1 commit intomainfrom
test_874856285
Open

Remove unnecessary extra ip route calls when checking for routes to add and delete in network module.#302
copybara-service[bot] wants to merge 1 commit intomainfrom
test_874856285

Conversation

@copybara-service
Copy link

@copybara-service copybara-service bot commented Feb 27, 2026

Remove unnecessary extra ip route calls when checking for routes to add and delete in network module.

Currently, the ip route check happens twice -- once when checking if there are missing routes and extra routes, and another time when we actually add missing routes/remove extra routes. This optimization makes it so that we store the extra/missing routes upon the first check, and use those for the actual route setup instead of checking again.

@copybara-service copybara-service bot force-pushed the test_874856285 branch 6 times, most recently from d505152 to 80d52f2 Compare February 27, 2026 20:58
… add and delete in `network` module.

Currently, the `ip route` check happens twice -- once when checking if there are missing routes and extra routes, and another time when we actually add missing routes/remove extra routes. This optimization makes it so that we store the extra/missing routes upon the first check, and use those for the actual route setup instead of checking again.

PiperOrigin-RevId: 874856285
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant