zebra: Provide SID value when sending SRv6 SID release notify message #18971
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When a daemon asks SID Manager to release a SID, SID Manager calls
static_zebra_srv6_sid_notify()
to notify the daemon if the SID release was successful or there was an error.Currently, when calling
static_zebra_srv6_sid_notify()
, SID Manager does not provide the SID value, which makes difficult for the daemon to figure out which SID the notification refers to.The problem can be clearly observed by enabling
debug static srv6
, removing a SID in STATIC and looking at STATIC logs.Before the fix, STATIC receives a notify message from SID Manager that does not contain a sid_value "::" :
After the fix, the notify message provides an indication of which sid_value has been released "fcbb:bbbb:1:fe20::" :