diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-04-13 22:54:43 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2022-04-13 22:55:46 +0200 |
commit | 291a161106f5c239d72200ae62c10c01f5ed6e9f (patch) | |
tree | b9d7ce0a90cef35b379a5b7888e5d0ea5785655c /data | |
parent | e5aa31eb2738d72afbe1b8817f45b5237446a7c2 (diff) | |
download | vyos-1x-291a161106f5c239d72200ae62c10c01f5ed6e9f.tar.gz vyos-1x-291a161106f5c239d72200ae62c10c01f5ed6e9f.zip |
ndppd: T4333: migrate to new vyos_defined Jinja2 test
Diffstat (limited to 'data')
-rw-r--r-- | data/templates/ndppd/ndppd.conf.tmpl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/data/templates/ndppd/ndppd.conf.tmpl b/data/templates/ndppd/ndppd.conf.tmpl index 502dab5b8..c41392cc7 100644 --- a/data/templates/ndppd/ndppd.conf.tmpl +++ b/data/templates/ndppd/ndppd.conf.tmpl @@ -15,13 +15,13 @@ ######################################################## {% set global = namespace(ndppd_interfaces = [],ndppd_prefixs = []) %} -{% if source is defined and source.rule is defined and source.rule is not none %} +{% if source.rule is vyos_defined %} {% for rule, config in source.rule.items() if config.disable is not defined %} -{% if config.outbound_interface is defined %} +{% if config.outbound_interface is vyos_defined %} {% if config.outbound_interface not in global.ndppd_interfaces %} {% set global.ndppd_interfaces = global.ndppd_interfaces + [config.outbound_interface] %} {% endif %} -{% if config.translation is defined and config.translation.address is defined and config.translation.address | is_ip_network %} +{% if config.translation.address is vyos_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 %} |