summaryrefslogtreecommitdiff
path: root/src/conf_mode/interface-openvpn.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-09-24 18:04:17 +0200
committerChristian Poessinger <christian@poessinger.com>2019-09-24 18:10:48 +0200
commitd77f68ef3198cff019e1e2d74dfe2290800a1ea6 (patch)
treeda3be3377968d9f4c242c0dfb5aa2421ecf7fbc8 /src/conf_mode/interface-openvpn.py
parent6b828200e698dbff5a3ee61a0c6c9906b0a8493f (diff)
downloadvyos-1x-d77f68ef3198cff019e1e2d74dfe2290800a1ea6.tar.gz
vyos-1x-d77f68ef3198cff019e1e2d74dfe2290800a1ea6.zip
Python/ifconfig: T1557: refactor 'mtu' property to get_mtu()/set_mtu()
Diffstat (limited to 'src/conf_mode/interface-openvpn.py')
-rwxr-xr-xsrc/conf_mode/interface-openvpn.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/conf_mode/interface-openvpn.py b/src/conf_mode/interface-openvpn.py
index 35e7928c2..fa01f7fc5 100755
--- a/src/conf_mode/interface-openvpn.py
+++ b/src/conf_mode/interface-openvpn.py
@@ -13,8 +13,6 @@
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-#
-#
import os
import re
@@ -580,7 +578,7 @@ def get_config():
# Minimum required TLS version
if conf.exists('tls tls-version-min'):
openvpn['tls_version_min'] = conf.return_value('tls tls-version-min')
-
+
if conf.exists('shared-secret-key-file'):
openvpn['shared_secret_file'] = conf.return_value('shared-secret-key-file')
@@ -736,7 +734,7 @@ def verify(openvpn):
if openvpn['tls_auth']:
if not checkCertHeader('-----BEGIN OpenVPN Static key V1-----', openvpn['tls_auth']):
raise ConfigError('Specified auth-file "{}" is invalid'.format(openvpn['tls_auth']))
-
+
if openvpn['tls_cert']:
if not checkCertHeader('-----BEGIN CERTIFICATE-----', openvpn['tls_cert']):
raise ConfigError('Specified cert-file "{}" is invalid'.format(openvpn['tls_cert']))