summaryrefslogtreecommitdiff
path: root/smoketest/scripts/cli/test_interfaces_openvpn.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-10-31 16:23:55 +0100
committerChristian Poessinger <christian@poessinger.com>2020-10-31 16:23:55 +0100
commit46ffcb5c5ea4f33989f75b778e52c6d894b29c68 (patch)
tree66e953cea1d94673ebbb4f71da31300df4eb8d51 /smoketest/scripts/cli/test_interfaces_openvpn.py
parent7e546be921e8f42ff5e5dad9b383ef74f440bb3f (diff)
downloadvyos-1x-46ffcb5c5ea4f33989f75b778e52c6d894b29c68.tar.gz
vyos-1x-46ffcb5c5ea4f33989f75b778e52c6d894b29c68.zip
smoketest: openvpn: test server mode "replace-default-route"
Diffstat (limited to 'smoketest/scripts/cli/test_interfaces_openvpn.py')
-rwxr-xr-xsmoketest/scripts/cli/test_interfaces_openvpn.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/smoketest/scripts/cli/test_interfaces_openvpn.py b/smoketest/scripts/cli/test_interfaces_openvpn.py
index 03a3171ed..d64e23c92 100755
--- a/smoketest/scripts/cli/test_interfaces_openvpn.py
+++ b/smoketest/scripts/cli/test_interfaces_openvpn.py
@@ -315,6 +315,7 @@ class TestInterfacesOpenVPN(unittest.TestCase):
self.session.set(path + ['mode', 'server'])
self.session.set(path + ['local-port', port])
self.session.set(path + ['server', 'subnet', subnet])
+ self.session.set(path + ['replace-default-route'])
self.session.set(path + ['tls', 'ca-cert-file', ca_cert])
self.session.set(path + ['tls', 'cert-file', ssl_cert])
self.session.set(path + ['tls', 'key-file', ssl_key])
@@ -339,6 +340,7 @@ class TestInterfacesOpenVPN(unittest.TestCase):
self.assertIn(f'cipher aes-192-cbc', config)
self.assertIn(f'topology net30', config)
self.assertIn(f'lport {port}', config)
+ self.assertIn(f'push "redirect-gateway def1"', config)
# TLS options
self.assertIn(f'ca {ca_cert}', config)