summaryrefslogtreecommitdiff
path: root/data/templates/accel-ppp/pppoe.config.j2
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2024-05-01 17:34:00 +0200
committerGitHub <noreply@github.com>2024-05-01 17:34:00 +0200
commit6872b3f1a3f3765e0f32fdc9e701aa9b1c490e7f (patch)
treeca88715f2439ebc818039dc9897ce9ed4a910f24 /data/templates/accel-ppp/pppoe.config.j2
parente80e54cbece711d93895d3c7b78689bd282b8fd9 (diff)
parent107ee099e82397b31fca8cf1ac3860cbf76f0596 (diff)
downloadvyos-1x-6872b3f1a3f3765e0f32fdc9e701aa9b1c490e7f.tar.gz
vyos-1x-6872b3f1a3f3765e0f32fdc9e701aa9b1c490e7f.zip
Merge pull request #3364 from natali-rs1985/T6234-current
pppoe-server: T6234: PPPoE-server pado-delay refactoring
Diffstat (limited to 'data/templates/accel-ppp/pppoe.config.j2')
-rw-r--r--data/templates/accel-ppp/pppoe.config.j22
1 files changed, 1 insertions, 1 deletions
diff --git a/data/templates/accel-ppp/pppoe.config.j2 b/data/templates/accel-ppp/pppoe.config.j2
index ddf0da518..42bc8440c 100644
--- a/data/templates/accel-ppp/pppoe.config.j2
+++ b/data/templates/accel-ppp/pppoe.config.j2
@@ -67,7 +67,7 @@ service-name={{ service_name | join(',') }}
{% set delay_without_sessions = pado_delay.delays_without_sessions[0] | default('0') %}
{% set pado_delay_param = namespace(value=delay_without_sessions) %}
{% for delay, sessions in pado_delay.delays_with_sessions | sort(attribute='1') %}
-{% if not loop.last %}
+{% if not delay == 'disable' %}
{% set pado_delay_param.value = pado_delay_param.value + ',' + delay + ':' + sessions | string %}
{% else %}
{% set pado_delay_param.value = pado_delay_param.value + ',-1:' + sessions | string %}