Skip to content

Conversation

huitema
Copy link
Collaborator

@huitema huitema commented Aug 1, 2025

The check for available paths was too simplistic, and only tested for availability of CID for path_id=0. This caused the code to return an error 1099 if the application tried to open a new path after path 0 was abandoned.

Added two test cases in the multipath test suite:

  • test multipath_break3 simulates a disconnected interface, and thus an address unreachable signal for the path. Verify that path 0 is abandoned after that.
  • test multipath_back0 also simulates the disconnection of the link under path0, but also simulate that interface going back up and the application requesting the creation of a new path.

The fix required checking the test multipath_ab1, which simulates abandoning a series of path_id before the corresponding path was activated. We verify that the test for path number availability checks for this kind of deletion and skips path ids for which the CID were defined and then deleted.

@huitema
Copy link
Collaborator Author

huitema commented Aug 1, 2025

Close issue #1918

Copy link
Collaborator

@akh7177 akh7177 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This indeed fixes the issue ✨Thanks a lot @huitema

@huitema huitema merged commit 8a65adb into master Aug 2, 2025
11 checks passed
@huitema huitema deleted the path-0-re-add branch August 2, 2025 14:29
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