summaryrefslogtreecommitdiff
path: root/src/conf_mode/vpn_pptp.py
diff options
context:
space:
mode:
authorsever-sever <v.gletenko@vyos.io>2020-10-22 10:35:19 +0000
committersever-sever <v.gletenko@vyos.io>2020-10-27 10:45:03 +0000
commit29ed00aed66c648510480897bd92977652e5d18f (patch)
tree317da5634237e8b1184cd4423be619348965e0ad /src/conf_mode/vpn_pptp.py
parentc6c8c453076a06188d577730f0ab570e8daef5f2 (diff)
downloadvyos-1x-29ed00aed66c648510480897bd92977652e5d18f.tar.gz
vyos-1x-29ed00aed66c648510480897bd92977652e5d18f.zip
accel: T2631: Add option for radius disable-accounting
Diffstat (limited to 'src/conf_mode/vpn_pptp.py')
-rwxr-xr-xsrc/conf_mode/vpn_pptp.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/conf_mode/vpn_pptp.py b/src/conf_mode/vpn_pptp.py
index 306d05c60..3125ee9d0 100755
--- a/src/conf_mode/vpn_pptp.py
+++ b/src/conf_mode/vpn_pptp.py
@@ -121,6 +121,9 @@ def get_config(config=None):
conf.set_level(base_path + ['authentication', 'radius', 'server', server])
+ if conf.exists(['disable-accounting']):
+ radius['acct_port'] = '0'
+
if conf.exists(['fail-time']):
radius['fail_time'] = conf.return_value(['fail-time'])