If needs ups, power starts off off. More Needs UPS stuff.

This commit is contained in:
2018-02-16 12:45:08 +00:00
parent dc1d22b2d4
commit f397456649
3 changed files with 45 additions and 0 deletions

View File

@ -733,6 +733,11 @@ namespace EduNetworkBuilder
NetworkDevice ND = DeviceFromName(nt.sHost);
if (ND != null) ND.PowerOff = true;
}
if (nt.TheTest == NetTestType.DeviceNeedsUPS && !nt.TaskWasDone)
{
NetworkDevice ND = DeviceFromName(nt.sHost);
if (ND != null) ND.PowerOff = true;
}
}
if (report_as_done && PuzzleCount == 0 && PreviouslyUnsolved)
{
@ -1741,6 +1746,17 @@ namespace EduNetworkBuilder
}
}
public void RegisterUPSAdded(string source)
{
foreach (NetTest one in NetTests)
{
if (one.sHost == source && one.TheTest == NetTestType.DeviceNeedsUPS)
{
one.SetDone();
}
}
}
/****************************************
* Do On All Devices
* **************************************/