diff options
author | Christian Breunig <christian@breunig.cc> | 2024-07-25 08:09:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-25 08:09:24 +0200 |
commit | 8e4d0d26850692542f7e1155bcbfd982a786e0b2 (patch) | |
tree | a60c2335da6c9e021b23fa6d862df3c8576b2a91 /smoketest/scripts/cli/test_interfaces_l2tpv3.py | |
parent | 67695c3e7a0d9fdc10ad3e381ad67cb30688e217 (diff) | |
parent | 28fedd4e76bbea2b174159ee7b67ddda5e952ab5 (diff) | |
download | vyos-1x-8e4d0d26850692542f7e1155bcbfd982a786e0b2.tar.gz vyos-1x-8e4d0d26850692542f7e1155bcbfd982a786e0b2.zip |
Merge pull request #3871 from vyos/mergify/bp/circinus/pr-3857
interface: T6592: remove interface from conntrack ct_iface_map on deletion (backport #3857)
Diffstat (limited to 'smoketest/scripts/cli/test_interfaces_l2tpv3.py')
-rwxr-xr-x | smoketest/scripts/cli/test_interfaces_l2tpv3.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/smoketest/scripts/cli/test_interfaces_l2tpv3.py b/smoketest/scripts/cli/test_interfaces_l2tpv3.py index af3d49f75..abc55e6d2 100755 --- a/smoketest/scripts/cli/test_interfaces_l2tpv3.py +++ b/smoketest/scripts/cli/test_interfaces_l2tpv3.py @@ -20,7 +20,7 @@ import unittest from base_interfaces_test import BasicInterfaceTest from vyos.utils.process import cmd - +from vyos.utils.kernel import unload_kmod class L2TPv3InterfaceTest(BasicInterfaceTest.TestCase): @classmethod def setUpClass(cls): @@ -62,7 +62,6 @@ if __name__ == '__main__': # reloaded on demand - not needed but test more and more features for module in ['l2tp_ip6', 'l2tp_ip', 'l2tp_eth', 'l2tp_eth', 'l2tp_netlink', 'l2tp_core']: - if os.path.exists(f'/sys/module/{module}'): - cmd(f'sudo rmmod {module}') + unload_kmod(module) unittest.main(verbosity=2) |