summaryrefslogtreecommitdiff
path: root/data/templates/accel-ppp/pppoe.config.j2
diff options
context:
space:
mode:
authorNataliia Solomko <natalirs1985@gmail.com>2024-04-25 13:27:50 +0300
committerNataliia Solomko <natalirs1985@gmail.com>2024-04-25 13:27:50 +0300
commit107ee099e82397b31fca8cf1ac3860cbf76f0596 (patch)
tree5bbbf991b00323b38391152da751b5a2c45038ff /data/templates/accel-ppp/pppoe.config.j2
parenta63e934073744772dc9fd919b7bb376ed9ceeab3 (diff)
downloadvyos-1x-107ee099e82397b31fca8cf1ac3860cbf76f0596.tar.gz
vyos-1x-107ee099e82397b31fca8cf1ac3860cbf76f0596.zip
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 %}