summaryrefslogtreecommitdiff
path: root/data/templates/accel-ppp/pppoe.config.j2
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-05-01 21:28:48 +0200
committerGitHub <noreply@github.com>2024-05-01 21:28:48 +0200
commite019155e3d7a1383f480f2bdf4c7e17d807fc7db (patch)
treeb95ccc6bbe06e1e0dfee8d3c908316eb2ae72a35 /data/templates/accel-ppp/pppoe.config.j2
parentc37bbccf18b82f47bb7211a445b054d3606da3cb (diff)
parent0891817c6f0b4d4bb3e8d4c21f2873ab43e1be26 (diff)
downloadvyos-1x-e019155e3d7a1383f480f2bdf4c7e17d807fc7db.tar.gz
vyos-1x-e019155e3d7a1383f480f2bdf4c7e17d807fc7db.zip
Merge pull request #3388 from vyos/mergify/bp/sagitta/pr-3364
pppoe-server: T6234: PPPoE-server pado-delay refactoring (backport #3364)
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 %}