From 29ed00aed66c648510480897bd92977652e5d18f Mon Sep 17 00:00:00 2001 From: sever-sever Date: Thu, 22 Oct 2020 10:35:19 +0000 Subject: accel: T2631: Add option for radius disable-accounting --- src/conf_mode/vpn_l2tp.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/conf_mode/vpn_l2tp.py') diff --git a/src/conf_mode/vpn_l2tp.py b/src/conf_mode/vpn_l2tp.py index da51b0d06..4d82a9400 100755 --- a/src/conf_mode/vpn_l2tp.py +++ b/src/conf_mode/vpn_l2tp.py @@ -161,6 +161,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']) -- cgit v1.2.3