22 lines
549 B
Django/Jinja
22 lines
549 B
Django/Jinja
# This file describes the network interfaces available on your system
|
|
# and how to activate them. For more information, see interfaces(5).
|
|
|
|
source /etc/network/interfaces.d/*
|
|
|
|
# The loopback network interface
|
|
auto lo
|
|
iface lo inet loopback
|
|
|
|
# Libvirt networks
|
|
{% for network in libvirt_networks %}
|
|
{% if network.bridge.dev is defined %}
|
|
auto {{ network.bridge.dev }}
|
|
iface {{ network.bridge.dev }} inet manual
|
|
|
|
auto {{ network.bridge.name }}
|
|
iface {{ network.bridge.name }} inet dhcp
|
|
bridge_ports {{ network.bridge.dev }}
|
|
|
|
{% endif %}
|
|
{% endfor %}
|