summaryrefslogtreecommitdiff
path: root/data/templates/proxy-ndp/ndppd.conf.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'data/templates/proxy-ndp/ndppd.conf.tmpl')
-rw-r--r--data/templates/proxy-ndp/ndppd.conf.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/data/templates/proxy-ndp/ndppd.conf.tmpl b/data/templates/proxy-ndp/ndppd.conf.tmpl
index 0137d8135..ccd1d37ad 100644
--- a/data/templates/proxy-ndp/ndppd.conf.tmpl
+++ b/data/templates/proxy-ndp/ndppd.conf.tmpl
@@ -21,8 +21,8 @@
{% if config.outbound_interface not in global.ndppd_interfaces %}
{% set global.ndppd_interfaces = global.ndppd_interfaces + [config.outbound_interface] %}
{% endif %}
-{% if config.translation.prefix is defined %}
-{% set global.ndppd_prefixs = global.ndppd_prefixs + [{'interface':config.outbound_interface,'rule':config.translation.prefix}] %}
+{% if config.translation.address is defined and config.translation.address | is_ip_network %}
+{% set global.ndppd_prefixs = global.ndppd_prefixs + [{'interface':config.outbound_interface,'rule':config.translation.address}] %}
{% endif %}
{% endif %}
{% endfor %}