summaryrefslogtreecommitdiff
path: root/smoketest/scripts/cli/test_interfaces_openvpn.py
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2025-06-12 15:14:13 +0100
committerGitHub <noreply@github.com>2025-06-12 15:14:13 +0100
commit71f4f8c55ae660ae39113981a44bd1cd7ef77394 (patch)
tree62447325e30679f85e2c3808073d32d9d5d2fe55 /smoketest/scripts/cli/test_interfaces_openvpn.py
parentb0caf4541d7017dbb8cf13fe32f1c287c3c403bd (diff)
parent906ad30fd30f78f5e4c0dac575d4b3f7c64e30b0 (diff)
downloadvyos-1x-71f4f8c55ae660ae39113981a44bd1cd7ef77394.tar.gz
vyos-1x-71f4f8c55ae660ae39113981a44bd1cd7ef77394.zip
Merge pull request #4546 from sarthurdev/T7056
openvpn: T7056: Raise error if non-TAP device is bridged
Diffstat (limited to 'smoketest/scripts/cli/test_interfaces_openvpn.py')
-rwxr-xr-xsmoketest/scripts/cli/test_interfaces_openvpn.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/smoketest/scripts/cli/test_interfaces_openvpn.py b/smoketest/scripts/cli/test_interfaces_openvpn.py
index e087b8735..42c5ba848 100755
--- a/smoketest/scripts/cli/test_interfaces_openvpn.py
+++ b/smoketest/scripts/cli/test_interfaces_openvpn.py
@@ -826,7 +826,6 @@ class TestInterfacesOpenVPN(VyOSUnitTestSHIM.TestCase):
gw_subnet = "192.168.0.1"
self.cli_set(['interfaces', 'bridge', br_if, 'member', 'interface', vtun_if])
- self.cli_set(path + ['device-type', 'tap'])
self.cli_set(path + ['encryption', 'data-ciphers', 'aes192'])
self.cli_set(path + ['hash', auth_hash])
self.cli_set(path + ['mode', 'server'])
@@ -840,6 +839,10 @@ class TestInterfacesOpenVPN(VyOSUnitTestSHIM.TestCase):
self.cli_set(path + ['tls', 'certificate', 'ovpn_test'])
self.cli_set(path + ['tls', 'dh-params', 'ovpn_test'])
+ with self.assertRaises(ConfigSessionError):
+ self.cli_commit()
+
+ self.cli_set(path + ['device-type', 'tap'])
self.cli_commit()
config_file = f'/run/openvpn/{vtun_if}.conf'