Skip to content

[action] [PR:15765] [staticroutebfd] fix ipv6 letter case issue (#15765)#17981

Merged
mssonicbld merged 1 commit intosonic-net:202305from
mssonicbld:cherry/202305/15765
Feb 3, 2024
Merged

[action] [PR:15765] [staticroutebfd] fix ipv6 letter case issue (#15765)#17981
mssonicbld merged 1 commit intosonic-net:202305from
mssonicbld:cherry/202305/15765

Conversation

@mssonicbld
Copy link
Collaborator

*use lower case for IPv6 address as internal key and bfd session key. fixes #15764

Why I did it
*staticroutebfd uses the IPv6 address string as a key to create bfd session and cache the bfd sessions using it as a key.
When the IPv6 address string has uppercase letter in the static route nexthop list, the string with uppercase letter key is stored in the cache, but the BFD STATE_DB uses lowercase for IPv6 address, so when the staticroutebfd get the bfd state event, it cannot find the bfd session in its local cache because of the letter case.

*use lower case for IPv6 address as internal key and bfd session key. fixes sonic-net#15764

Why I did it
*staticroutebfd uses the IPv6 address string as a key to create bfd session and cache the bfd sessions using it as a key.
When the IPv6 address string has uppercase letter in the static route nexthop list, the string with uppercase letter key is stored in the cache, but the BFD STATE_DB uses lowercase for IPv6 address, so when the staticroutebfd get the bfd state event, it cannot find the bfd session in its local cache because of the letter case.
@mssonicbld
Copy link
Collaborator Author

Original PR: #15765

@mssonicbld
Copy link
Collaborator Author

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@baorliu
Copy link
Contributor

baorliu commented Feb 2, 2024

Another PR for 202305 already passed all the checks:
#17973
Please close this one. and use the PR 17973.

@mssonicbld
Copy link
Collaborator Author

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld mssonicbld merged commit 630d93e into sonic-net:202305 Feb 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants