diff --git a/xCAT-server/lib/xcat/plugins/xen.pm b/xCAT-server/lib/xcat/plugins/xen.pm index 77bba497b..f30cdca5e 100644 --- a/xCAT-server/lib/xcat/plugins/xen.pm +++ b/xCAT-server/lib/xcat/plugins/xen.pm @@ -323,13 +323,21 @@ sub power { if ($dom) { $dom->shutdown(); } + } elsif ($subcommand eq 'reset') { + if ($dom) { + $dom->reboot(1); #TODO: Sys::Virt *nor* libvirt have meaningful flags, + #but require it + $retstring.="reset"; + } } else { unless ($subcommand =~ /^stat/) { return (1,"Unsupported power directive '$subcommand'"); } } - $retstring.=getpowstate($dom); + unless ($retstring =~ /reset/) { + $retstring.=getpowstate($dom); + } return (0,$retstring); }