Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test/system: Add support for multipath routes in pasta networking tests
In some environments, such as the one described in #20927, the default route is given as nexthop gateways. That is, it's a multipath routes with multiple gateways. That means that pasta(1), after commit 6c7623d07bbd ("netlink: Add support to fetch default gateway from multipath routes"), can start and use a default gateway from that route. Just like in pasta(1), in these tests, the default route indicates which upstream interface we should pick. If we ignore multipath routes, IPv6 addresses and gateway addresses themselves won't be available, so, while pasta is now able to configure the container, IPv6 tests will expect to find no address and no gateway, hence fail due to the mismatch. Try to get routes, including gateway addresses and interface names, from nexthop objects, in case the selection of a regular default route yields no results. Link: #20927 Closes: #20927 Signed-off-by: Stefano Brivio <[email protected]>
- Loading branch information