summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-10-27 20:04:52 +0100
committerGitHub <noreply@github.com>2020-10-27 20:04:52 +0100
commit174ae56c6f498d4c02647608704f009f2c0fc7b9 (patch)
treeab5de1fa316e0aa0d6ff7d18306238376ce27c0f /python
parent6b9acd904d05460d2f02850e2535c4dc3e9933af (diff)
parent29ed00aed66c648510480897bd92977652e5d18f (diff)
downloadvyos-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 'python')
-rw-r--r--python/vyos/configdict.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/python/vyos/configdict.py b/python/vyos/configdict.py
index 62df3334c..db17c33fc 100644
--- a/python/vyos/configdict.py
+++ b/python/vyos/configdict.py
@@ -455,6 +455,11 @@ def get_accel_dict(config, base, chap_secrets):
dict['authentication']['radius']['server'][server] = dict_merge(
default_values, dict['authentication']['radius']['server'][server])
+ # Check option "disable-accounting" per server and replace default value from '1813' to '0'
+ # set vpn sstp authentication radius server x.x.x.x disable-accounting
+ if 'disable_accounting' in dict['authentication']['radius']['server'][server]:
+ dict['authentication']['radius']['server'][server]['acct_port'] = '0'
+
# Add individual local-user default values
if vyos_dict_search('authentication.local_users.username', dict):
default_values = defaults(base + ['authentication', 'local-users', 'username'])