Skip to content

Avoid removing a VRF routing table when there are pending creation en…#2

Closed
yuazhe wants to merge 1 commit intomasterfrom
fix_VRF_table
Closed

Avoid removing a VRF routing table when there are pending creation en…#2
yuazhe wants to merge 1 commit intomasterfrom
fix_VRF_table

Conversation

@yuazhe
Copy link
Copy Markdown
Owner

@yuazhe yuazhe commented Feb 14, 2025

…tries in gRouteBulker (sonic-net#3477)

  • Set bytes to 0 before copying IPv4 addresses/masks to avoid uninitialized bytes
  • Avoid removing a VRF routing table when there are pending creation entries in gRouteBulker

Remove a VRF routing table when a routing entry is removed only if there is no pending creation entry in gRouteBulker Avoid uninitialized value SAI IP address/prefix structure Why I did it

Fix issue: out of range exception can be thrown in addRoutePost due to non exist VRF

What I did

Why I did it

How I verified it

Details if related

…tries in gRouteBulker (sonic-net#3477)

* Set bytes to 0 before copying IPv4 addresses/masks to avoid uninitialized bytes
* Avoid removing a VRF routing table when there are pending creation entries in gRouteBulker

Remove a VRF routing table when a routing entry is removed only if there is no pending creation entry in gRouteBulker
Avoid uninitialized value SAI IP address/prefix structure
Why I did it

Fix issue: out of range exception can be thrown in addRoutePost due to non exist VRF
@yuazhe yuazhe closed this Apr 2, 2025
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.

2 participants