#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 | #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[$machine] $uptimes[$machine]#slurp #else Off#slurp #end if | #slurp #if $has_vnc[$machine] == True Console#slurp #else $has_vnc[$machine] #end if |
Create a new VM:
#elseYou are at the maximum number of VMs.
#end if #end def