Add test for device blows up with power. Still needs lots of pieces before it is done.
This commit is contained in:
parent
13165c402c
commit
5b3be85e99
@ -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 }
|
||||||
|
@ -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
|
||||||
* **************************************/
|
* **************************************/
|
||||||
|
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user