From 0891817c6f0b4d4bb3e8d4c21f2873ab43e1be26 Mon Sep 17 00:00:00 2001 From: Nataliia Solomko Date: Thu, 25 Apr 2024 13:27:50 +0300 Subject: pppoe-server: T6234: PPPoE-server pado-delay refactoring (cherry picked from commit 107ee099e82397b31fca8cf1ac3860cbf76f0596) --- data/templates/accel-ppp/pppoe.config.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'data') 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 %} -- cgit v1.2.3