diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-04-10 10:08:05 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2022-04-10 10:08:05 +0200 |
commit | aa4cb50bdf9932ff54776ee222f3caecb4a26b28 (patch) | |
tree | 9777a998d7c5324d7bd00acf8484f059f95109d7 /data/templates/dns-forwarding/recursor.forward-zones.conf.tmpl | |
parent | 17586e0f0698d65f4910ebb480997d768118311c (diff) | |
download | vyos-1x-aa4cb50bdf9932ff54776ee222f3caecb4a26b28.tar.gz vyos-1x-aa4cb50bdf9932ff54776ee222f3caecb4a26b28.zip |
dns: T4333: migrate to new vyos_defined Jinja2 test
Diffstat (limited to 'data/templates/dns-forwarding/recursor.forward-zones.conf.tmpl')
-rw-r--r-- | data/templates/dns-forwarding/recursor.forward-zones.conf.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/data/templates/dns-forwarding/recursor.forward-zones.conf.tmpl b/data/templates/dns-forwarding/recursor.forward-zones.conf.tmpl index 3ab0c804d..96cbc35a5 100644 --- a/data/templates/dns-forwarding/recursor.forward-zones.conf.tmpl +++ b/data/templates/dns-forwarding/recursor.forward-zones.conf.tmpl @@ -19,10 +19,10 @@ +.={{ n.dot_zone_ns }} {% endif %} -{% if forward_zones is defined %} +{% if forward_zones is vyos_defined %} # zones added via 'service dns forwarding domain' {% for zone, zonedata in forward_zones.items() %} -{{ "+" if zonedata['recursion_desired'] is defined }}{{ zone | replace('_', '-') }}={{ zonedata['server']|join(', ') }} +{{ "+" if zonedata.recursion_desired is vyos_defined }}{{ zone | replace('_', '-') }}={{ zonedata.server | join(', ') }} {% endfor %} {% endif %} |