From af91cdbf23157f7b6b7696de9bc27dafca6d7dee Mon Sep 17 00:00:00 2001 From: jack9603301 Date: Sat, 23 Jan 2021 21:44:44 +0800 Subject: nptv6: T2518: Use better variable names --- data/templates/proxy-ndp/ndppd.conf.tmpl | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/data/templates/proxy-ndp/ndppd.conf.tmpl b/data/templates/proxy-ndp/ndppd.conf.tmpl index 844b644b7..4393be169 100644 --- a/data/templates/proxy-ndp/ndppd.conf.tmpl +++ b/data/templates/proxy-ndp/ndppd.conf.tmpl @@ -30,16 +30,15 @@ {% endfor %} {% endif %} -{% for i in global.ndppd_interfaces %} +{% for interface in global.ndppd_interfaces %} -proxy {{ i }} { +proxy {{ interface }} { router yes timeout 500 ttl 30000 {% for map in global.ndppd_prefixs %} -{% if map.interface == i %} -{% set p = map.rule %} - rule {{ p }} { +{% if map.interface == interface %} + rule {{ map.rule }} { static } {% endif %} -- cgit v1.2.3