Skip to content

Commit ac7f17d

Browse files
committed
[airos][template] fixed netmode template namespace
the only section differing in the airos file is the netmode value and it requires a different template formatter, moreover as it is a single value we can hardcode the key that we require to render
1 parent 58dc00f commit ac7f17d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

netjsonconfig/backends/airos/templates/airos.jinja2

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
{% endfor %}
77
{% endfor %}
88
{% else %}
9-
netmode=bridge
9+
{% for element in block %}
10+
netmode={{ element['status'] }}
11+
{% endfor %}
1012
{% endif %}
1113
{% endfor %}

0 commit comments

Comments
 (0)