containernetworking / plugins

Some reference and example networking plugins, maintained by the CNI team.
Apache License 2.0
2.23k stars 788 forks source link

Ignore link-local routes in SBR tests #1102

Closed LionelJouin closed 1 month ago

LionelJouin commented 1 month ago

The tests were flaky due to a route with the link-local IP being automatically added after the test run saves the initial state (routes before SBR plugin is ran). When the SBR plugin is ran, the new state is compared with the old state. The new state will then contain the route with the link-local IP (that has been added after saving the old state), the old state was not containing it, so the tests were failing

The solution here is to ignore routes with the link-local IP for the tests.

fixes: #1096