{% for vm in server.vms.all %} {% if server.uuid == vm.serverID and vm.sliceId == slice.uuid %} {% endif %} {% endfor %} {% load servers %} {# Loads Jinja filters for servers - in order to check #VMs #} {% if server|number_vms_inside_server_for_slice:slice.uuid > 0 %} {# If some VM exists, show message #} {% endif %}
VM Name State Operating System Memory Mgmt IP Actions Update Status
{{ vm.name }} {{ vm.state }} {{ vm.operatingSystemType }} {{vm.operatingSystemDistribution}} ({{vm.operatingSystemVersion}}) {{ vm.memory }}
{% for iface in vm.ifaces.all %} {% if iface.isMgmt == 1 %} {{iface.ip}} {% endif %} {% endfor %}
{% if vm.state == "running" %} {% endif %} {% if vm.state == "created (stopped)"%} {% endif %} {% if vm.state == "stopped"%} {% endif %} {% if vm.state|slice:"-3:" == '...' or vm.state == 'on queue'%} {% endif %}
{% if vm.ifaces.all|length > 0 %} {# Show only when VM interfaces available #} SSH access: ~# ssh {{request.user}}@{% for iface in vm.ifaces.all %}{% if iface.isMgmt == 1 %}{{iface.ip}}{% endif %}{% endfor %} (password: your user password) {% endif %}
SSH common details: to access as root just type su inside (password: openflow)