Refactor bridge files into templates
This allows better extensibility, as well as provides more uniform way of config file generation.master
parent
3262f37229
commit
c0f270e9e8
@ -0,0 +1,3 @@
|
||||
{% for b in bridges %}
|
||||
allow {{ b.name }}
|
||||
{% endfor %}
|
@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Run as root.
|
||||
|
||||
{% for b in bridges %}
|
||||
ip link add name {{ b.name }} type bridge
|
||||
ip link set {{ b.name }} up
|
||||
{% endfor %}
|
Loading…
Reference in New Issue