diff options
author | sever-sever <v.gletenko@vyos.io> | 2020-10-22 10:35:19 +0000 |
---|---|---|
committer | sever-sever <v.gletenko@vyos.io> | 2020-10-27 10:45:03 +0000 |
commit | 29ed00aed66c648510480897bd92977652e5d18f (patch) | |
tree | 317da5634237e8b1184cd4423be619348965e0ad /python/vyos | |
parent | c6c8c453076a06188d577730f0ab570e8daef5f2 (diff) | |
download | vyos-1x-29ed00aed66c648510480897bd92977652e5d18f.tar.gz vyos-1x-29ed00aed66c648510480897bd92977652e5d18f.zip |
accel: T2631: Add option for radius disable-accounting
Diffstat (limited to 'python/vyos')
-rw-r--r-- | python/vyos/configdict.py | 5 |
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']) |