summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorPetr Machata <petrm@nvidia.com>2024-08-26 19:15:11 +0200
committerJakub Kicinski <kuba@kernel.org>2024-08-27 21:53:29 +0200
commit65a3cce43d5b4c53cf16b0be1a03991f665a0806 (patch)
treea810f294506547726312dc0b7021bff815da0480 /tools
parentselftests: forwarding: no_forwarding: Down ports on cleanup (diff)
downloadlinux-65a3cce43d5b4c53cf16b0be1a03991f665a0806.tar.xz
linux-65a3cce43d5b4c53cf16b0be1a03991f665a0806.zip
selftests: forwarding: local_termination: Down ports on cleanup
This test neglects to put ports down on cleanup. Fix it. Fixes: 90b9566aa5cd ("selftests: forwarding: add a test for local_termination.sh") Signed-off-by: Petr Machata <petrm@nvidia.com> Link: https://patch.msgid.link/bf9b79f45de378f88344d44550f0a5052b386199.1724692132.git.petrm@nvidia.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/testing/selftests/net/forwarding/local_termination.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/testing/selftests/net/forwarding/local_termination.sh b/tools/testing/selftests/net/forwarding/local_termination.sh
index 648868f74604..c35548767756 100755
--- a/tools/testing/selftests/net/forwarding/local_termination.sh
+++ b/tools/testing/selftests/net/forwarding/local_termination.sh
@@ -571,6 +571,10 @@ vlan_over_vlan_aware_bridge()
cleanup()
{
pre_cleanup
+
+ ip link set $h2 down
+ ip link set $h1 down
+
vrf_cleanup
}