Commit e80f1882 authored by Francesc Guasch's avatar Francesc Guasch
Browse files

Merge branch 'master' of

parents 89d6b8ba c1cc3bae
#Create users
# Create users
sudo ./bin/ --add-user=username
......@@ -7,7 +7,7 @@
sudo ./bin/ --add-user-ldap=username
#Import KVM virtual machines.
# Import KVM virtual machines.
Usually, virtual machines are created within ravada, but they can be
imported from existing KVM domains. Once the domain is created :
......@@ -34,6 +34,7 @@ requires 'remove';
requires 'display';
requires 'is_active';
requires 'is_hibernated';
requires 'is_paused';
requires 'start';
requires 'shutdown';
......@@ -568,6 +568,17 @@ sub resume {
=head2 is_hibernated
Returns if the domain has a managed saved state.
sub is_hibernated {
my $self = shift;
return $self->domain->has_managed_save_image;
=head2 is_paused
Returns if the domain is paused
......@@ -87,6 +87,8 @@ sub remove {
sub is_hibernated { return 0 }
sub is_paused {
my $self = shift;
......@@ -75,7 +75,8 @@
<td class="lgMachActions">
<span style="float:right;" ng-show="{{machine.is_paused && machine.is_active}}" class="label label-warning" ng-cloak><%=l 'Paused' %></span>
<span style="float:left;" ng-show="{{!machine.is_paused && machine.is_active}}" class="label label-success" ng-cloak><%=l 'Running' %></span>
<span style="float:right;" ng-show="{{!machine.is_active}}" class="label label-danger" ng-cloak><%=l 'Down' %></span>
<span style="float:right;" ng-show="{{!machine.is_active && !machine.is_hibernated}}" class="label label-danger" ng-cloak><%=l 'Down' %></span>
<span style="float:right;" ng-show="{{machine.is_hibernated}}" class="label label-warning" ng-cloak><%=l 'Hibernated' %></span>
<div ng-show="{{machine.is_active}}">{{machine.remote_ip}}</div>
<td class="lgMachToggle">
......@@ -142,7 +143,8 @@
<td class="lgMachActions">
<span style="float:right;" ng-show="{{child.is_paused && child.is_active}}" class="label label-warning" ng-cloak><%=l 'Paused' %></span>
<span style="float:left;" ng-show="{{!child.is_paused && child.is_active}}" class="label label-success" ng-cloak><%=l 'Running' %></span>
<span style="float:right;" ng-show="{{!child.is_active}}" class="label label-danger" ng-cloak><%=l 'Down' %></span>
<span style="float:right;" ng-show="{{!child.is_active && !child.is_hibernated}}" class="label label-danger" ng-cloak><%=l 'Down' %></span>
<span style="float:right;" ng-show="{{child.is_hibernated}}" class="label label-warning" ng-cloak><%=l 'Hibernated' %></span>
<div ng-show="{{child.is_active}}">{{child.remote_ip}}</div>
<td class="lgMachToggle">
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment