From b9e1a141ee2a4767ec312de1251eabb802913de7 Mon Sep 17 00:00:00 2001 From: Viacheslav Hletenko Date: Tue, 19 Apr 2022 10:54:36 +0000 Subject: pppoe-server: T4373: Add option multiplier for correct shaping Multiplier option is required by some vendors for correct shaping For RADIUS based rate-limits edit service pppoe-server set authentication radius rate-limit multiplier '0.001' --- data/templates/accel-ppp/config_shaper_radius.j2 | 3 +++ .../include/accel-ppp/radius-additions-rate-limit.xml.i | 14 ++++++++++++++ 2 files changed, 17 insertions(+) diff --git a/data/templates/accel-ppp/config_shaper_radius.j2 b/data/templates/accel-ppp/config_shaper_radius.j2 index c256647e4..942cdf132 100644 --- a/data/templates/accel-ppp/config_shaper_radius.j2 +++ b/data/templates/accel-ppp/config_shaper_radius.j2 @@ -6,5 +6,8 @@ attr={{ authentication.radius.rate_limit.attribute }} {% if authentication.radius.rate_limit.vendor is vyos_defined %} vendor={{ authentication.radius.rate_limit.vendor }} {% endif %} +{% if authentication.radius.rate_limit.multiplier is vyos_defined %} +rate-multiplier={{ authentication.radius.rate_limit.multiplier }} +{% endif %} {% endif %} {% endif %} diff --git a/interface-definitions/include/accel-ppp/radius-additions-rate-limit.xml.i b/interface-definitions/include/accel-ppp/radius-additions-rate-limit.xml.i index be49fce5a..f44920c3f 100644 --- a/interface-definitions/include/accel-ppp/radius-additions-rate-limit.xml.i +++ b/interface-definitions/include/accel-ppp/radius-additions-rate-limit.xml.i @@ -21,6 +21,20 @@ + + + Shaper multiplier + + <0.001-1000> + Shaper multiplier + + + + + Multiplier needs to be between 0.001 and 1000 + + 1 + -- cgit v1.2.3