summaryrefslogtreecommitdiff
path: root/data/templates/accel-ppp/config_shaper_radius.j2
diff options
context:
space:
mode:
Diffstat (limited to 'data/templates/accel-ppp/config_shaper_radius.j2')
-rw-r--r--data/templates/accel-ppp/config_shaper_radius.j219
1 files changed, 19 insertions, 0 deletions
diff --git a/data/templates/accel-ppp/config_shaper_radius.j2 b/data/templates/accel-ppp/config_shaper_radius.j2
new file mode 100644
index 0000000..fcd68f6
--- /dev/null
+++ b/data/templates/accel-ppp/config_shaper_radius.j2
@@ -0,0 +1,19 @@
+{% if authentication.mode is vyos_defined('radius') or shaper is vyos_defined %}
+[shaper]
+verbose=1
+down-limiter=tbf
+{% if authentication.radius.rate_limit.enable is vyos_defined %}
+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 %}
+{% if shaper is vyos_defined %}
+{% if shaper.fwmark is vyos_defined %}
+fwmark={{ shaper.fwmark }}
+{% endif %}
+{% endif %}
+{% endif %} \ No newline at end of file