summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhagbard <vyosdev@derith.de>2019-06-18 15:07:41 -0700
committerhagbard <vyosdev@derith.de>2019-06-18 15:07:41 -0700
commit85c9e0200a4619f0388b7fd7ba9a03f4be933ef5 (patch)
tree290ec3077c4037b59e820c8fae39a8e6253d5943 /src
parenta7e834b27044e7bfdd770d38813d2c6c77539c7f (diff)
downloadvyos-1x-85c9e0200a4619f0388b7fd7ba9a03f4be933ef5.tar.gz
vyos-1x-85c9e0200a4619f0388b7fd7ba9a03f4be933ef5.zip
[pppoe-server] T1452 - add vendor option to shaper
Diffstat (limited to 'src')
-rwxr-xr-xsrc/conf_mode/accel_pppoe.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/conf_mode/accel_pppoe.py b/src/conf_mode/accel_pppoe.py
index 9d2efb0bc..3c7759b17 100755
--- a/src/conf_mode/accel_pppoe.py
+++ b/src/conf_mode/accel_pppoe.py
@@ -173,6 +173,9 @@ verbose=1
[shaper]
verbose=1
attr={{authentication['radiusopt']['shaper']['attr']}}
+{% if authentication['radiusopt']['shaper']['vendor'] %}
+vendor={{authentication['radiusopt']['shaper']['vendor']}}
+{% endif -%}
{% endif -%}
{% endif %}
@@ -485,6 +488,9 @@ def get_config():
config_data['authentication']['radiusopt']['shaper'] = {
'attr' : c.return_value('authentication radius-settings rate-limit attribute')
}
+ if c.exists('authentication radius-settings rate-limit vendor'):
+ config_data['authentication']['radiusopt']['shaper']['vendor'] = c.return_value('authentication radius-settings rate-limit vendor')
+
if c.exists('mtu'):
config_data['mtu'] = c.return_value('mtu')