From c8b7e5cd1cd1116f85a16941a3da75e00bc126c8 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Mon, 19 Oct 2020 12:38:07 +0200 Subject: openvpn: T2994: migrate to get_config_dict() --- interface-definitions/interfaces-openvpn.xml.in | 36 ++++++++++++++----------- 1 file changed, 21 insertions(+), 15 deletions(-) (limited to 'interface-definitions/interfaces-openvpn.xml.in') diff --git a/interface-definitions/interfaces-openvpn.xml.in b/interface-definitions/interfaces-openvpn.xml.in index 5675379d5..80e1d2fa0 100644 --- a/interface-definitions/interfaces-openvpn.xml.in +++ b/interface-definitions/interfaces-openvpn.xml.in @@ -36,7 +36,7 @@ #include - OpenVPN interface device-type + OpenVPN interface device-type (default: tun) tun tap @@ -49,9 +49,10 @@ TAP device, required for OSI layer 2 - (tun|tap) + ^(tun|tap)$ + tun #include @@ -110,7 +111,7 @@ AES algorithm with 256-bit key GCM - (none|des|3des|bf128|bf256|aes128|aes128gcm|aes192|aes192gcm|aes256|aes256gcm) + ^(none|des|3des|bf128|bf256|aes128|aes128gcm|aes192|aes192gcm|aes256|aes256gcm)$ @@ -157,7 +158,7 @@ AES algorithm with 256-bit key GCM - (none|des|3des|aes128|aes128gcm|aes192|aes192gcm|aes256|aes256gcm) + ^(none|des|3des|aes128|aes128gcm|aes192|aes192gcm|aes256|aes256gcm)$ @@ -204,7 +205,7 @@ SHA-512 algorithm - (md5|sha1|sha256|sha384|sha512) + ^(md5|sha1|sha256|sha384|sha512)$ @@ -215,7 +216,7 @@ - Maximum number of keepalive packet failures [default 6] + Maximum number of keepalive packet failures (default: 60) 0-1000 Maximum number of keepalive packet failures @@ -224,10 +225,11 @@ + 60 - Keepalive packet interval (seconds) [default 10] + Keepalive packet interval in seconds (default: 10) 0-600 Keepalive packet interval (seconds) @@ -236,6 +238,7 @@ + 10 @@ -304,7 +307,7 @@ Server in client-server mode - (site-to-site|client|server) + ^(site-to-site|client|server)$ @@ -342,9 +345,10 @@ TCP and initiates connections actively - (udp|tcp-passive|tcp-active) + ^(udp|tcp-passive|tcp-active)$ + udp @@ -613,6 +617,7 @@ Reject connections from clients that are not explicitly configured + @@ -634,7 +639,7 @@ - Topology for clients + Topology for clients (default: net30) net30 point-to-point subnet @@ -651,9 +656,10 @@ Subnet topology - (subnet|point-to-point|net30) + ^(subnet|point-to-point|net30)$ + net30 @@ -777,13 +783,13 @@ TLS v1.2 - (1.0|1.1|1.2) + ^(1.0|1.1|1.2)$ - Private key for this host + TLS negotiation role active passive @@ -793,10 +799,10 @@ passive - Waiting for TLS connections passively + Wait for incoming TLS connection - (active|passive) + ^(active|passive)$ -- cgit v1.2.3