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

View File

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