You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
388 B
Plaintext

auto lo
iface lo inet loopback
{# auto {% for x in range(len(c.bridges)) %} eth{{x}} {% endfor %} #}
auto /eth*
mapping eth*
script TODO/get-mac-address.sh
{% for br in c.bridges %}
map 52:54:00:17:{{ '%02x:%02x' % (c.num, br.num) }} net_{{br.num}}
{% endfor %}
{% for br in c.bridges %}
iface net_{{br.num}} inet static
address 172.23.{{ br.num }}.{{ c.num }}/24
{% endfor %}