nova/nova/virt/interfaces.template
Justin Santa Barbara 1a32aad3a6 Don't write a dns directive if there are no dns records in /etc/network/interfaces
Change-Id: I26e22f37f91bf242aa573c91b26b2304fdd25751
2012-02-05 19:51:17 -08:00

29 lines
653 B
Plaintext

# Injected by Nova on instance boot
#
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
#for $ifc in $interfaces
auto ${ifc.name}
iface ${ifc.name} inet static
address ${ifc.address}
netmask ${ifc.netmask}
broadcast ${ifc.broadcast}
gateway ${ifc.gateway}
#if $ifc.dns
dns-nameservers ${ifc.dns}
#end if
#if $use_ipv6
iface ${ifc.name} inet6 static
address ${ifc.address_v6}
netmask ${ifc.netmask_v6}
gateway ${ifc.gateway_v6}
#end if
#end for