make doaction work for power off and on

This commit is contained in:
Tim Young 2018-05-17 16:23:10 -05:00
parent e2de5b50f1
commit 4b70e9b2ff
1 changed files with 3 additions and 0 deletions

View File

@ -265,8 +265,11 @@ namespace EduNetworkBuilder
case NBAction.replaceUPS:
break;
case NBAction.poweroff:
source.PowerOff = true;
myNet.RegisterDeviceReset(source.hostname);
break;
case NBAction.poweron:
source.PowerOff = false;
break;
}
}