Subject: Re: [PATCH net-next 07/10] tools: ynl: convert devlink sample to selftest

From: Donald Hunter <[email-masked]>
Date: Fri, 06 Mar 2026 11:53:11 +0000

Jakub Kicinski <[email-masked]> writes:

> diff --git a/tools/net/ynl/tests/devlink.sh b/tools/net/ynl/tests/devlink.sh
> new file mode 100755
> index 000000000000..55da00c985f4
> --- /dev/null
> +++ b/tools/net/ynl/tests/devlink.sh
> @@ -0,0 +1,5 @@
> +#!/bin/bash
> +# SPDX-License-Identifier: GPL-2.0
> +source "$(dirname "$(realpath "$0")")/ynl_nsim_lib.sh"
> +nsim_setup
> +exec "$(dirname "$(realpath "$0")")/devlink"

exec is defeating the netdevsim cleanup in the exit handler.

.../ynl_nsim_lib.sh: line 22: echo: write error: No space left on device
Error: ipv4: Address already assigned.
Error: ipv6: address already assigned.

Same for ethtool.sh, rt-addr.sh and rt-route.sh