diff options
author | JACK <jack9603301@163.com> | 2021-05-22 00:12:59 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-21 18:12:59 +0200 |
commit | 8dbe3ad4f0ac285f955bbaa1d8b3ab644b535977 (patch) | |
tree | cf58f932bbfd3ebd4babb16b151c14f5cfaaac52 /data/templates/proxy-ndp | |
parent | 945300c6f5f86b2381e5621ba00f8f70137b98b0 (diff) | |
download | vyos-1x-8dbe3ad4f0ac285f955bbaa1d8b3ab644b535977.tar.gz vyos-1x-8dbe3ad4f0ac285f955bbaa1d8b3ab644b535977.zip |
ndppd: T2518: Fix variable name error
Diffstat (limited to 'data/templates/proxy-ndp')
-rw-r--r-- | data/templates/proxy-ndp/ndppd.conf.tmpl | 4 |
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 %} |