diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-10-27 20:04:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-27 20:04:52 +0100 |
commit | 174ae56c6f498d4c02647608704f009f2c0fc7b9 (patch) | |
tree | ab5de1fa316e0aa0d6ff7d18306238376ce27c0f /src/conf_mode/vpn_l2tp.py | |
parent | 6b9acd904d05460d2f02850e2535c4dc3e9933af (diff) | |
parent | 29ed00aed66c648510480897bd92977652e5d18f (diff) | |
download | vyos-1x-174ae56c6f498d4c02647608704f009f2c0fc7b9.tar.gz vyos-1x-174ae56c6f498d4c02647608704f009f2c0fc7b9.zip |
Merge pull request #581 from sever-sever/T2631
accel: T2631: Add option for radius disable-accounting
Diffstat (limited to 'src/conf_mode/vpn_l2tp.py')
-rwxr-xr-x | src/conf_mode/vpn_l2tp.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/conf_mode/vpn_l2tp.py b/src/conf_mode/vpn_l2tp.py index 48d887abe..465986d5b 100755 --- a/src/conf_mode/vpn_l2tp.py +++ b/src/conf_mode/vpn_l2tp.py @@ -162,6 +162,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']) |