File tree Expand file tree Collapse file tree
netjsonconfig/backends/raspbian/templates Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -79,7 +79,10 @@ iface {{ interface.get('ifname') }} inet6 {{ address.get('proto') }}
7979{% endif %}
8080
8181{% endfor %}
82- {% elif i |string () == 'dns_servers' %}
82+ {% endif %}
83+ {% endfor %}
84+ {% for i , j in data .items () %}
85+ {% if i |string () == 'dns_servers' %}
8386config: /etc/resolv.conf
8487{% for ip in j %}
8588nameserver {{ ip }}
@@ -88,7 +91,10 @@ nameserver {{ ip }}
8891{% for domain in j %}
8992search {{ domain }}
9093{% endfor %}
91- {% elif i |string () == 'wireless' %}
94+ {% endif %}
95+ {% endfor %}
96+ {% for i , j in data .items () %}
97+ {% if i |string () == 'wireless' %}
9298{% for wireless in j %}
9399config: /etc/hostapd/hostapd.conf
94100interface={{ wireless.get('ifname') }}
@@ -111,4 +117,4 @@ wpa_pairwise={{ wireless.get('encryption').get('wpa_pairwise')}}
111117{% endfor %}
112118{% else %}
113119{% endif %}
114- {% endfor %}
120+ {% endfor %}
You can’t perform that action at this time.
0 commit comments