-Implement power reset for Xen DomUs
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2064 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
31da9cc399
commit
7784222627
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user