diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-11-13 14:51:06 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-11-13 14:51:06 +0100 |
commit | a7bee8f8e084c33b0e7aa8d81d1d78997fc763e7 (patch) | |
tree | 95e7f43a3c1c478e650c731504ce93f50b19b73d /smoketest/scripts | |
parent | 6962bc53fa246f3e5c081ffec5f996fcb821273b (diff) | |
download | vyos-1x-a7bee8f8e084c33b0e7aa8d81d1d78997fc763e7.tar.gz vyos-1x-a7bee8f8e084c33b0e7aa8d81d1d78997fc763e7.zip |
openvpn: T3051: fix smoketest
After commit 943a4a50 ("openvpn: T3051: fix creation of ifconfig-pool for
client communication") the smoketests had nod been adjusted correctly.
This has been fixed.
Diffstat (limited to 'smoketest/scripts')
-rwxr-xr-x | smoketest/scripts/cli/test_interfaces_openvpn.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/smoketest/scripts/cli/test_interfaces_openvpn.py b/smoketest/scripts/cli/test_interfaces_openvpn.py index 4f2526977..41e48c2f8 100755 --- a/smoketest/scripts/cli/test_interfaces_openvpn.py +++ b/smoketest/scripts/cli/test_interfaces_openvpn.py @@ -26,11 +26,11 @@ from vyos.configsession import ConfigSessionError from vyos.util import cmd from vyos.util import process_named_running from vyos.util import read_file -from vyos.template import inc_ip from vyos.template import address_from_cidr -from vyos.template import netmask_from_cidr -from vyos.template import last_host_address +from vyos.template import dec_ip from vyos.template import inc_ip +from vyos.template import last_host_address +from vyos.template import netmask_from_cidr PROCESS_NAME = 'openvpn' @@ -435,7 +435,7 @@ class TestInterfacesOpenVPN(unittest.TestCase): interface = f'vtun{ii}' subnet = f'192.0.{ii}.0/24' start_addr = inc_ip(subnet, '4') - stop_addr = last_host_address(subnet) + stop_addr = dec_ip(last_host_address(subnet), '1') port = str(2000 + ii) config_file = f'/run/openvpn/{interface}.conf' |