From 4b70e9b2ff0a144220a906cf5f76c2ae5501c14a Mon Sep 17 00:00:00 2001 From: Tim Young Date: Thu, 17 May 2018 16:23:10 -0500 Subject: [PATCH] make doaction work for power off and on --- EduNetworkBuilder/ActionClass.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/EduNetworkBuilder/ActionClass.cs b/EduNetworkBuilder/ActionClass.cs index ad66197..9d450be 100644 --- a/EduNetworkBuilder/ActionClass.cs +++ b/EduNetworkBuilder/ActionClass.cs @@ -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; } }