diff options
author | DmitriyEshenko <dmitriy.eshenko@vyos.io> | 2020-09-28 07:41:19 +0000 |
---|---|---|
committer | DmitriyEshenko <dmitriy.eshenko@vyos.io> | 2020-09-28 07:41:19 +0000 |
commit | fed3245aef5333e535d10cca976a3d09a8760446 (patch) | |
tree | 3f3bd339cbc14062c1705e850754fd317a5eee95 /src | |
parent | 41ff73882fb6dad2484d841ed59494f0c963bf5e (diff) | |
download | vyos-1x-fed3245aef5333e535d10cca976a3d09a8760446.tar.gz vyos-1x-fed3245aef5333e535d10cca976a3d09a8760446.zip |
pppoe-server: T2919: Add possibility change Called-Station-Id format
Diffstat (limited to 'src')
-rwxr-xr-x | src/conf_mode/service_pppoe-server.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/conf_mode/service_pppoe-server.py b/src/conf_mode/service_pppoe-server.py index a4e937b1a..9935b166f 100755 --- a/src/conf_mode/service_pppoe-server.py +++ b/src/conf_mode/service_pppoe-server.py @@ -82,6 +82,7 @@ default_config_data = { 'radius_shaper_attr': '', 'radius_shaper_vendor': '', 'radius_dynamic_author': '', + 'radius_called_sid_format': '', 'sesscrtl': 'replace', 'snmp': False, 'thread_cnt': get_half_cpus() @@ -315,6 +316,9 @@ def get_config(config=None): pppoe['radius_dynamic_author'] = dae + if conf.exists(['called-sid-format']): + pppoe['radius_called_sid_format'] = conf.return_value(['called-sid-format']) + # RADIUS based rate-limiter if conf.exists(['rate-limit', 'enable']): pppoe['radius_shaper_attr'] = 'Filter-Id' |