From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: passt.top; dmarc=none (p=none dis=none) header.from=gibson.dropbear.id.au Authentication-Results: passt.top; dkim=pass (2048-bit key; secure) header.d=gibson.dropbear.id.au header.i=@gibson.dropbear.id.au header.a=rsa-sha256 header.s=202606 header.b=mQyB9Umy; dkim-atps=neutral Received: from mail.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by passt.top (Postfix) with ESMTPS id 7316B5A0265 for ; Sun, 21 Jun 2026 04:44:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gibson.dropbear.id.au; s=202606; t=1782009844; bh=9QJMwMDc+heONGaAjR6muQ5xnJB5AyTI7EdNYcuPCvU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=mQyB9UmymO8AKOQcrSVO/y3o/yBaYoNldu8qg8vnbJaYxGpOLxCAXC8WJysfIof9e 3efJaLe2BUzDoS8Xpk2ki1ljtMmxSI8pvpF28WHQxoENiauSiD26wjFU7eDuPom3kS LEoF9hHm9jmqTY9JI2lYzpr/BkBhJtd3XEepKVHYI81p00z48qg7YOtonrb7++NuGh ho9c/u8Cg2DJGlqjElDrYQ1smfLLbuehqmUOmkqjNNjTEG/Oj6gVnzqYuh8+7ZAahP Z4GfAHPEMMaRy6SrkgQggkXUvlmLWjSWaEFk71/UrE+45fwFiD1o1dt6Pd1UE3arvz ieWkGcy+P4xtA== Received: by gandalf.ozlabs.org (Postfix, from userid 1007) id 4gjbJ42ZGZz4wTQ; Sun, 21 Jun 2026 12:44:04 +1000 (AEST) Date: Sun, 21 Jun 2026 12:43:48 +1000 From: David Gibson To: Jon Maloy Subject: Re: [PATCH] test/pasta/ndp: Fix NDP test for --config-net pasta setup Message-ID: References: <20260621012832.2007946-1-jmaloy@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="DRCvbnMkRKwiLhqB" Content-Disposition: inline In-Reply-To: <20260621012832.2007946-1-jmaloy@redhat.com> Message-ID-Hash: F5FNR6L64UAFHXXLNJFB2HISDR56OTFP X-Message-ID-Hash: F5FNR6L64UAFHXXLNJFB2HISDR56OTFP X-MailFrom: dgibson@gandalf.ozlabs.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: sbrivio@redhat.com, passt-dev@passt.top X-Mailman-Version: 3.3.8 Precedence: list List-Id: Development discussion and patches for passt Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: --DRCvbnMkRKwiLhqB Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jun 20, 2026 at 09:28:32PM -0400, Jon Maloy wrote: > --config-net sets IPv6 addresses directly via netlink rather than > relying on kernel SLAAC, so addresses won't have the "kernel_ra" > protocol tag. Match global-scope addresses instead, which works for > both --config-net and SLAAC configurations. >=20 > Signed-off-by: Jon Maloy This will make the test pass, but it's no longer actually testing what it's supposed to. > --- > test/pasta/ndp | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) >=20 > diff --git a/test/pasta/ndp b/test/pasta/ndp > index 1d385c73..7169f57a 100644 > --- a/test/pasta/ndp > +++ b/test/pasta/ndp > @@ -18,11 +18,11 @@ test Interface name > nsout IFNAME ip -j link show | jq -rM '.[] | select(.link_type =3D=3D "e= ther").ifname' > check [ -n "__IFNAME__" ] > ns ip link set dev __IFNAME__ up > -# Wait for SLAAC & DAD to complete > -ns while ! ip -j -6 addr show dev __IFNAME__ | jq -e '.[].addr_info.[] |= select(.protocol =3D=3D "kernel_ra")'; do sleep 0.1; done > +# Wait for global IPv6 address to appear (via --config-net or SLAAC) > +ns while ! ip -j -6 addr show dev __IFNAME__ | jq -e '.[].addr_info[] | = select(.scope =3D=3D "global")'; do sleep 0.1; done > =20 > test SLAAC: prefix > -nsout ADDR6 ip -j -6 addr show|jq -rM '[.[] | select(.ifname =3D=3D "__I= FNAME__").addr_info[] | select(.protocol =3D=3D "kernel_ra") | .local + "/"= + (.prefixlen | tostring)] | .[0]' > +nsout ADDR6 ip -j -6 addr show|jq -rM '[.[] | select(.ifname =3D=3D "__I= FNAME__").addr_info[] | select(.scope =3D=3D "global") | .local + "/" + (.p= refixlen | tostring)] | .[0]' > nsout PREFIX6 sipcalc __ADDR6__ | grep prefix | cut -d' ' -f4 > hout HOST_ADDR6 ip -j -6 addr show|jq -rM ['.[] | select(.ifname =3D=3D = "__IFNAME__").addr_info[] | select(.scope !=3D "host" and .scope !=3D "link= " and .deprecated !=3D true).local]| join("/64 ")' > hout HOST_PREFIX6 sipcalc __HOST_ADDR6__/64 | grep prefix | cut -d' ' -f= 4 | tr '\n' ' ' > --=20 > 2.52.0 >=20 --=20 David Gibson (he or they) | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you, not the other way | around. http://www.ozlabs.org/~dgibson --DRCvbnMkRKwiLhqB Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEO+dNsU4E3yXUXRK2zQJF27ox2GcFAmo3T9cACgkQzQJF27ox 2GfEww//XrmpLoZbBCIxxFhtN4y/yb80wxkseybwp5mjzktk4OLyz/2I1h599rcG ROpLccTGeZDXE4djXR1Be8VxiqTf5GfpYID1dJi9ePP4Hq+c9KzrrJiR+WXnEXcy 8SMm+gT1k12z0p+oSOc3aDmt0gpDHOU20HMvmWG3Q5r6uv3XaQryCbRN0/Mrv7xd Fl+LOH/D7Zmxg0n8aB0AORaZ//21MjDIFGHSHsu2CG39CuBOkEuSzkpaBVDIvhRC 64oPDErzSaBHB2RgDg4hdJ0OT8goBtOduVv0i2qAKewiGhLp22UeeVWRuMahyr+n 90b50Gz8ZAb800SHyxzf2ssysCPz0XIxBYLQQTOyFX7LBUwnVK3P9hKGppcub5Tf /9LJvMPD6fPU6pAV7WxhSbKDTRxBIvUNThD29c3gVg9wgXpwK5IaOrX6NCLXiAXQ S2gCGXRnbo4stRcY33kVpG7QwWb0V0koGLtGcdBR48AtMOQ5PsMTPHdTET9RG9Kb QF4ypAMi78aT6h6ocyf8ZoEy5lVf2ij6FA1hKKhZlUuxbRiGw8B+CyeA8fdU2JDK vbvN0f4Oid/mcuKQKkmk/MayN43kPq8A2EVgJTz5DYfgG+3ZqDWw7/rzrB9JVcTt ezjIP512kfnHetpuiOEG6lEchGH0hbe+o9NIc3ElDKuAEy2Cl+s= =2lpr -----END PGP SIGNATURE----- --DRCvbnMkRKwiLhqB--