Add test for device blows up with power. Still needs lots of pieces before it is done.

This commit is contained in:
Tim Young 2018-02-14 12:29:54 +00:00
parent 13165c402c
commit 5b3be85e99
3 changed files with 14 additions and 1 deletions

View File

@ -48,7 +48,7 @@ namespace EduNetworkBuilder
DHCPServerEnabled, SuccessfullyTraceroutes, DHCPServerEnabled, SuccessfullyTraceroutes,
LockAll, LockIP, LockRoute, LockNic, LockDHCP, LockGateway, LockAll, LockIP, LockRoute, LockNic, LockDHCP, LockGateway,
LockVLANsOnHost, LockNicVLAN, LockInterfaceVLAN, LockVLANNames, LockVLANsOnHost, LockNicVLAN, LockInterfaceVLAN, LockVLANNames,
DeviceIsFrozen, DeviceIsFrozen, DeviceBlowsUpWithPower, DeviceNeedsUPS,
} }
public enum ContextTest { ping, arp, traceroute } public enum ContextTest { ping, arp, traceroute }
public enum NetTestVerbosity { none, basic, hints, full } public enum NetTestVerbosity { none, basic, hints, full }

View File

@ -1700,6 +1700,18 @@ namespace EduNetworkBuilder
} }
} }
public void RegisterDeviceReplaced(string source)
{
foreach (NetTest one in NetTests)
{
if (one.sHost == source && one.TheTest == NetTestType.DeviceBlowsUpWithPower)
{
one.SetDone();
}
}
}
/**************************************** /****************************************
* Do On All Devices * Do On All Devices
* **************************************/ * **************************************/

View File

@ -962,6 +962,7 @@ namespace EduNetworkBuilder
{ {
if (ItemClickedOn == null) return; if (ItemClickedOn == null) return;
ItemClickedOn.ClearIPs(); //reset the device ItemClickedOn.ClearIPs(); //reset the device
ItemClickedOn.IsBurned = false; //If it had been burned before, it is no longer burned
//Mark the replace test as "done" //Mark the replace test as "done"
//myNetwork.RegisterDeviceReplaced(ItemClickedOn.hostname); //myNetwork.RegisterDeviceReplaced(ItemClickedOn.hostname);
UpdateVisuals(); UpdateVisuals();