Skip to content

Conversation

@johannwagner
Copy link
Contributor

@johannwagner johannwagner commented Nov 12, 2025

Why is this such a big PR?

While trying to test the new IDs, I found out, that our tests were not executed for this specific set of test data. Turns out: The test data was invalid.
It raised a StopIteration exception and this bubbled up into the list(map()) construct of get_router_sd_from_path and returned an empty set of devices for this specific tests, so our tests never got executed. I fixed this by unrolling the loop.

The test data itself was invalid, because we needed loopback IP addresses for the generation of EVPN-VPWS services. The test data correctly added loopback IPs in loopbacks, but they never got used. We tried to derive loopbacks from the device interface list, which did not work for this test data. I jumped the opportunity to resolve this issue once and for all and removed the code path to derive the router ID from the interfaces list of the device and just use the specific information about loopbacks given. This should not make a difference for production use cases.

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.

3 participants