1
0
mirror of https://passt.top/passt synced 2024-11-05 20:31:11 +00:00
passt/test/pasta
Stefano Brivio baf4e2c028 test: Select first reported IPv6 address for guest/host comparison
If we run passt nested (a guest connected via passt to a guest
connected via passt to the host), the first guest (L1) typically has
two IPv6 addresses on the same interface: one formed from the prefix
assigned via SLAAC, and another one assigned via DHCPv6 (to match the
address on the host).

When we select addresses for comparison, in this case, we have
multiple global unicast addresses -- again, on the same interface.
Selecting the first reported one on both host and guest is not
entirely correct (in theory, the order might differ), but works
reasonably well.

Use the trick from 5beef08597 ("test: Only select a single
interface or gateway in tests") to ask jq(1) for the first address
returned by the query.

Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
2023-12-27 19:28:35 +01:00
..
dhcp test: Select first reported IPv6 address for guest/host comparison 2023-12-27 19:28:35 +01:00
ndp test: Select first reported IPv6 address for guest/host comparison 2023-12-27 19:28:35 +01:00
tcp passt: Relicense to GPL 2.0, or any later version 2023-04-06 18:00:33 +02:00
udp passt: Relicense to GPL 2.0, or any later version 2023-04-06 18:00:33 +02:00