summaryrefslogtreecommitdiff
path: root/data/templates/accel-ppp
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-02-10 07:54:45 +0100
committerGitHub <noreply@github.com>2023-02-10 07:54:45 +0100
commit7000d33d3dd275796cf0d9ac450a3af88168c907 (patch)
tree16f1fddcd4814ca7210f92f9229832910faf5309 /data/templates/accel-ppp
parent078faa6718c2afb918031f52430d586a006dd050 (diff)
parent3f4aee7a34463594b8b3164f472dc4ff35eac322 (diff)
downloadvyos-1x-7000d33d3dd275796cf0d9ac450a3af88168c907.tar.gz
vyos-1x-7000d33d3dd275796cf0d9ac450a3af88168c907.zip
Merge pull request #1808 from sever-sever/T1993
T1993: PPPoE-server add section shaper and fwmark option
Diffstat (limited to 'data/templates/accel-ppp')
-rw-r--r--data/templates/accel-ppp/config_shaper_radius.j212
1 files changed, 9 insertions, 3 deletions
diff --git a/data/templates/accel-ppp/config_shaper_radius.j2 b/data/templates/accel-ppp/config_shaper_radius.j2
index 942cdf132..0cf6a6a92 100644
--- a/data/templates/accel-ppp/config_shaper_radius.j2
+++ b/data/templates/accel-ppp/config_shaper_radius.j2
@@ -1,7 +1,7 @@
-{% if authentication.mode is vyos_defined('radius') %}
-{% if authentication.radius.rate_limit.enable is vyos_defined %}
+{% if authentication.mode is vyos_defined('radius') or shaper is vyos_defined %}
[shaper]
verbose=1
+{% 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 }}
@@ -10,4 +10,10 @@ vendor={{ authentication.radius.rate_limit.vendor }}
rate-multiplier={{ authentication.radius.rate_limit.multiplier }}
{% endif %}
{% endif %}
-{% endif %}
+{% if shaper is vyos_defined %}
+{% if shaper.fwmark is vyos_defined %}
+fwmark={{ shaper.fwmark }}
+down-limiter=htb
+{% endif %}
+{% endif %}
+{% endif %} \ No newline at end of file