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 %}