diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-07-09 11:32:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-09 11:32:56 +0200 |
commit | ddfb571f83ce54dbb137959b9e635651cb7f1679 (patch) | |
tree | 274ab6ddd4fff8178ef870d64634242e5a5ab315 /src/conf_mode/service_ipoe-server.py | |
parent | 7b998593c931757994a8965999366f2d7c9c93f3 (diff) | |
parent | 168f24eafeac4d7d4691a3853061d5c00e0009ca (diff) | |
download | vyos-1x-ddfb571f83ce54dbb137959b9e635651cb7f1679.tar.gz vyos-1x-ddfb571f83ce54dbb137959b9e635651cb7f1679.zip |
Merge pull request #1392 from sever-sever/T4507-eq
accel-ppp: T4373: T4507: Add options multiplier for shaper
Diffstat (limited to 'src/conf_mode/service_ipoe-server.py')
-rwxr-xr-x | src/conf_mode/service_ipoe-server.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/conf_mode/service_ipoe-server.py b/src/conf_mode/service_ipoe-server.py index 2ebee8018..42cfd0f12 100755 --- a/src/conf_mode/service_ipoe-server.py +++ b/src/conf_mode/service_ipoe-server.py @@ -53,6 +53,8 @@ default_config_data = { 'radius_nas_ip': '', 'radius_source_address': '', 'radius_shaper_attr': '', + 'radius_shaper_enable': False, + 'radius_shaper_multiplier': '', 'radius_shaper_vendor': '', 'radius_dynamic_author': '', 'thread_cnt': get_half_cpus() @@ -196,6 +198,18 @@ def get_config(config=None): if conf.exists(['nas-ip-address']): ipoe['radius_nas_ip'] = conf.return_value(['nas-ip-address']) + if conf.exists(['rate-limit', 'attribute']): + ipoe['radius_shaper_attr'] = conf.return_value(['rate-limit', 'attribute']) + + if conf.exists(['rate-limit', 'enable']): + ipoe['radius_shaper_enable'] = True + + if conf.exists(['rate-limit', 'multiplier']): + ipoe['radius_shaper_multiplier'] = conf.return_value(['rate-limit', 'multiplier']) + + if conf.exists(['rate-limit', 'vendor']): + ipoe['radius_shaper_vendor'] = conf.return_value(['rate-limit', 'vendor']) + if conf.exists(['source-address']): ipoe['radius_source_address'] = conf.return_value(['source-address']) |