Add test for device blows up with power. Still needs lots of pieces before it is done.
This commit is contained in:
		@@ -48,7 +48,7 @@ namespace EduNetworkBuilder
 | 
			
		||||
        DHCPServerEnabled, SuccessfullyTraceroutes,
 | 
			
		||||
        LockAll, LockIP, LockRoute, LockNic, LockDHCP, LockGateway,
 | 
			
		||||
        LockVLANsOnHost, LockNicVLAN, LockInterfaceVLAN, LockVLANNames,
 | 
			
		||||
        DeviceIsFrozen,
 | 
			
		||||
        DeviceIsFrozen, DeviceBlowsUpWithPower, DeviceNeedsUPS,
 | 
			
		||||
    }
 | 
			
		||||
    public enum ContextTest {  ping, arp, traceroute }
 | 
			
		||||
    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
 | 
			
		||||
         * **************************************/
 | 
			
		||||
 
 | 
			
		||||
@@ -962,6 +962,7 @@ namespace EduNetworkBuilder
 | 
			
		||||
            {
 | 
			
		||||
                if (ItemClickedOn == null) return;
 | 
			
		||||
                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"
 | 
			
		||||
                //myNetwork.RegisterDeviceReplaced(ItemClickedOn.hostname);
 | 
			
		||||
                UpdateVisuals();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user