display_fields = (display_fields[:disk_point] + disk_fields +
display_fields[disk_point+1:])
+ renumber = False
+ for n in machine.nics:
+ if n.other_action in ('renumber', 'renumber_dhcp'):
+ renumber = True
+
main_status['memory'] += ' MiB'
for field, disp in display_fields:
if field in ('uptime', 'cputime') and locals()[field] is not None:
defaults.disk = "%0.2f" % (machine.disks[0].size/1024.)
d = dict(user=username,
on=status is not None,
+ renumber=renumber,
machine=machine,
defaults=defaults,
has_vnc=has_vnc,
% endif
</form>
</%def>
+ % if renumber:
+ <div>
+ <p>This machine's IP address is slated for removal. Your machine's new IP address, netmask, and gateway are shown above. Please configure your machine for DHCP or update the machine's configuration and then press this button:</p>
+ % if on:
+ ${command_button("Power cycle and renumber", "renumber")
+ % else:
+ ${command_button("Renumber", "renumber")
+ % endif
+ </div>
+ % endif
<div>
% if on:
${command_button("Power off", "destroy")}