public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
From: David Gibson <david@gibson.dropbear.id.au>
To: Jon Maloy <jmaloy@redhat.com>
Cc: sbrivio@redhat.com, passt-dev@passt.top
Subject: Re: [PATCH] test/pasta/ndp: Fix NDP test for --config-net pasta setup
Date: Sun, 21 Jun 2026 12:43:48 +1000	[thread overview]
Message-ID: <ajdP5JWUDdi6k9xx@zatzit> (raw)
In-Reply-To: <20260621012832.2007946-1-jmaloy@redhat.com>

[-- Attachment #1: Type: text/plain, Size: 2199 bytes --]

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.
> 
> Signed-off-by: Jon Maloy <jmaloy@redhat.com>

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(-)
> 
> 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 == "ether").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 == "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 == "global")'; do sleep 0.1; done
>  
>  test	SLAAC: prefix
> -nsout	ADDR6 ip -j -6 addr show|jq -rM '[.[] | select(.ifname == "__IFNAME__").addr_info[] | select(.protocol == "kernel_ra") | .local + "/" + (.prefixlen | tostring)] | .[0]'
> +nsout	ADDR6 ip -j -6 addr show|jq -rM '[.[] | select(.ifname == "__IFNAME__").addr_info[] | select(.scope == "global") | .local + "/" + (.prefixlen | tostring)] | .[0]'
>  nsout	PREFIX6 sipcalc __ADDR6__ | grep prefix | cut -d' ' -f4
>  hout	HOST_ADDR6 ip -j -6 addr show|jq -rM ['.[] | select(.ifname == "__IFNAME__").addr_info[] | select(.scope != "host" and .scope != "link" and .deprecated != true).local]| join("/64 ")'
>  hout	HOST_PREFIX6 sipcalc __HOST_ADDR6__/64 | grep prefix | cut -d' ' -f4 | tr '\n' ' '
> -- 
> 2.52.0
> 

-- 
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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

      reply	other threads:[~2026-06-21  2:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-21  1:28 Jon Maloy
2026-06-21  2:43 ` David Gibson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ajdP5JWUDdi6k9xx@zatzit \
    --to=david@gibson.dropbear.id.au \
    --cc=jmaloy@redhat.com \
    --cc=passt-dev@passt.top \
    --cc=sbrivio@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://passt.top/passt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).