summaryrefslogtreecommitdiff
path: root/src/conf_mode/vpn_pptp.py
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-05-10 21:12:35 +0200
committerGitHub <noreply@github.com>2023-05-10 21:12:35 +0200
commit96d9bf0a88fc822b8edd78db293b7f17ae8766cf (patch)
treeb86c6991499991882e2ca9fff827f783c0bb23a0 /src/conf_mode/vpn_pptp.py
parentb469ed55403b25738949216f6f07ae9e70595db1 (diff)
parent98c310462dedbb3907e8ba871dab89ae7573e667 (diff)
downloadvyos-1x-96d9bf0a88fc822b8edd78db293b7f17ae8766cf.tar.gz
vyos-1x-96d9bf0a88fc822b8edd78db293b7f17ae8766cf.zip
Merge pull request #1988 from sever-sever/T5213
T5213: Add accounting-interim-interval option for L2TP/PPTP servers
Diffstat (limited to 'src/conf_mode/vpn_pptp.py')
-rwxr-xr-xsrc/conf_mode/vpn_pptp.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/conf_mode/vpn_pptp.py b/src/conf_mode/vpn_pptp.py
index 986a19972..b9d18110a 100755
--- a/src/conf_mode/vpn_pptp.py
+++ b/src/conf_mode/vpn_pptp.py
@@ -37,6 +37,7 @@ default_pptp = {
'local_users' : [],
'radius_server' : [],
'radius_acct_inter_jitter': '',
+ 'radius_acct_interim_interval': None,
'radius_acct_tmo' : '30',
'radius_max_try' : '3',
'radius_timeout' : '30',
@@ -145,6 +146,9 @@ def get_config(config=None):
# advanced radius-setting
conf.set_level(base_path + ['authentication', 'radius'])
+ if conf.exists(['accounting-interim-interval']):
+ pptp['radius_acct_interim_interval'] = conf.return_value(['accounting-interim-interval'])
+
if conf.exists(['acct-interim-jitter']):
pptp['radius_acct_inter_jitter'] = conf.return_value(['acct-interim-jitter'])