#from skeleton import skeleton #extends skeleton #def title List of your VMs #end def #def body #if not $machines #else
You have the following VMs:
Name | Memory | owner | IP | MAC Address | Hostname | Uptime | VNC | Restart? | #for $machine in $machines:|||
$machine.name | ${machine.memory}M | $machine.owner | #if $machine.nics #set $nic = $machine.nics[0]$nic.ip | $nic.mac_addr | $nic.hostname | #else#end if | #slurp #if $uptimes.get($machine.name) $uptimes[$machine.name]#slurp #else Off#slurp #end if | #slurp #if $has_vnc.get($machine.name) == True Console#slurp #else $has_vnc.get($machine.name) #end if |
Create a new VM:
#end def