diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-12-30 16:36:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-30 16:36:40 +0100 |
commit | 4e63a3966b352a0ada8444fa80ec6bee97b45213 (patch) | |
tree | 32552c9c83501fd5f06c00eb554f9fc3f32f5957 /data | |
parent | 37b33e3cedc2734c1339bbf4851703e7b5ff360c (diff) | |
parent | d53982112f26bbc07f9097c2c66b3e48d337e4dd (diff) | |
download | vyos-1x-4e63a3966b352a0ada8444fa80ec6bee97b45213.tar.gz vyos-1x-4e63a3966b352a0ada8444fa80ec6bee97b45213.zip |
Merge pull request #664 from DmitriyEshenko/1x-pppoe-3012202001
pppoe-server: T3162: Generate pado-delay string
Diffstat (limited to 'data')
-rw-r--r-- | data/templates/accel-ppp/pppoe.config.tmpl | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/data/templates/accel-ppp/pppoe.config.tmpl b/data/templates/accel-ppp/pppoe.config.tmpl index b39c4452d..3dfb615da 100644 --- a/data/templates/accel-ppp/pppoe.config.tmpl +++ b/data/templates/accel-ppp/pppoe.config.tmpl @@ -111,7 +111,15 @@ service-name={{ service_name | join(',') }} {% endif %} {% if pado_delay %} -pado-delay={{ pado_delay }} +{% set pado_delay_param = namespace(value='0') %} +{% for delay in pado_delay|sort(attribute='0') %} +{% if not loop.last %} +{% set pado_delay_param.value = pado_delay_param.value + ',' + delay + ':' + pado_delay[delay].sessions %} +{% else %} +{% set pado_delay_param.value = pado_delay_param.value + ',-1:' + pado_delay[delay].sessions %} +{% endif %} +{% endfor %} +pado-delay={{ pado_delay_param.value }} {% endif %} {% if limits is defined %} |