Fix ordering of generated interfaces in the /etc/network/interface file

This commit is contained in:
Michael Nguyen 2015-02-27 16:02:30 -08:00
parent abfd1a80bd
commit 5abbafb743

View File

@ -1448,7 +1448,7 @@ def _write_file_ifaces(iface, data, **settings):
tmp = source_template.render({'name': adapter, 'data': adapters[adapter]})
else:
tmp = eth_template.render({'name': adapter, 'data': adapters[adapter]})
ifcfg = tmp + ifcfg
ifcfg = ifcfg + tmp
if adapter == iface:
saved_ifcfg = tmp