Message ID | 20210308175736.844728-2-mark.d.gray@redhat.com |
---|---|
State | Changes Requested |
Headers | show |
Series | ipsec: Fix IPv6 support | expand |
On 8 Mar 2021, at 18:57, Mark Gray wrote: > 'on_exit' should be run directly after creation > of veth device. > > Fixes: 119db2cb18a7 ("kmod-macros: Move some code to > traffic-common-macros.") > Signed-off-by: Mark Gray <mark.d.gray@redhat.com> LGTM, Acked-by: Eelco Chaudron <echaudro@redhat.com>
diff --git a/tests/system-common-macros.at b/tests/system-common-macros.at index 9d5e24a2922b..19a0b125b973 100644 --- a/tests/system-common-macros.at +++ b/tests/system-common-macros.at @@ -72,6 +72,7 @@ m4_define([ADD_INT], # m4_define([ADD_VETH], [ AT_CHECK([ip link add $1 type veth peer name ovs-$1 || return 77]) + on_exit 'ip link del ovs-$1' CONFIGURE_VETH_OFFLOADS([$1]) AT_CHECK([ip link set $1 netns $2]) AT_CHECK([ip link set dev ovs-$1 up]) @@ -85,7 +86,6 @@ m4_define([ADD_VETH], if test -n "$6"; then NS_CHECK_EXEC([$2], [ip route add default via $6]) fi - on_exit 'ip link del ovs-$1' ] )
'on_exit' should be run directly after creation of veth device. Fixes: 119db2cb18a7 ("kmod-macros: Move some code to traffic-common-macros.") Signed-off-by: Mark Gray <mark.d.gray@redhat.com> --- tests/system-common-macros.at | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)