summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarek Isalski <git@maz.nu>2021-08-06 14:44:48 +0100
committerChristian Poessinger <christian@poessinger.com>2021-10-16 19:01:15 +0200
commit3d00140453b3967370c77ddd9dac4af223a7ddce (patch)
treee22d6db2e6d249687a37a1443aafc5b82c3a3660 /src
parenta98efc300c45cbfdd9b5c34561737909a77ecb22 (diff)
downloadvyos-1x-3d00140453b3967370c77ddd9dac4af223a7ddce.tar.gz
vyos-1x-3d00140453b3967370c77ddd9dac4af223a7ddce.zip
l2tp: T3724: allow setting accel-ppp l2tp host-name
Diffstat (limited to 'src')
-rwxr-xr-xsrc/conf_mode/vpn_l2tp.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/conf_mode/vpn_l2tp.py b/src/conf_mode/vpn_l2tp.py
index 9c52f77ca..818e8fa0b 100755
--- a/src/conf_mode/vpn_l2tp.py
+++ b/src/conf_mode/vpn_l2tp.py
@@ -290,6 +290,8 @@ def get_config(config=None):
# LNS secret
if conf.exists(['lns', 'shared-secret']):
l2tp['lns_shared_secret'] = conf.return_value(['lns', 'shared-secret'])
+ if conf.exists(['lns', 'host-name']):
+ l2tp['lns_host_name'] = conf.return_value(['lns', 'host-name'])
if conf.exists(['ccp-disable']):
l2tp['ccp_disable'] = True