Fix bridge templates

The context variable `bridges` is a dictionary, not a list.
master
LEdoian 2 years ago
parent 48a6ece522
commit 11c5674b20

@ -1,3 +1,3 @@
{% for b in bridges %} {% for b in bridges.values() %}
allow {{ b.name }} allow {{ b.name }}
{% endfor %} {% endfor %}

@ -2,7 +2,7 @@
# Run as root. # Run as root.
{% for b in bridges %} {% for b in bridges.values() %}
ip link add name {{ b.name }} type bridge ip link add name {{ b.name }} type bridge
ip link set {{ b.name }} up ip link set {{ b.name }} up
{% endfor %} {% endfor %}

Loading…
Cancel
Save