Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: FABRID gRPC bugs #173

Open
wants to merge 3 commits into
base: scionlab
Choose a base branch
from

Conversation

jeltevanbommel
Copy link

@jeltevanbommel jeltevanbommel commented Dec 13, 2024

It is possible for the FabridInfo struct to be empty, e.g. when the Daemon supports FABRID, but the control service does not support FABRID. The checks for this were missing when looking for hops with detached FABRID maps. This commit adds the check. Additionally, a variable name that collides with the fabrid package name has been renamed.

Also fixes a bug where the modification of the snet.Path's metadata happens on a copy. The modification of the metadata is necessary to update the FABRID info field with fetched detached maps. In an older version the .copy() call on the metadata was removed, this slipped back in during a rebase.

To prevent further issues with grpc_fabrid, and considering it is one of the only files that does not have test cases, added test cases.


This change is Reviewable

…t, rename variable that shadows package name
@jeltevanbommel jeltevanbommel changed the title fix: add missing check for whether FabridInfo is empty fix: FABRID gRPC bugs Jan 8, 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.

1 participant