Let it work if the nic has been replaced
This commit is contained in:
parent
88ec8a6cf5
commit
7707ddc0e1
@ -543,6 +543,7 @@ namespace EduNetworkBuilder
|
||||
case NetTestType.DeviceIsFrozen:
|
||||
case NetTestType.DeviceBlowsUpWithPower:
|
||||
case NetTestType.DeviceNeedsUPS:
|
||||
case NetTestType.DeviceNICSprays:
|
||||
return TaskWasDone; //This variable will tell us if these tests have been done.
|
||||
case NetTestType.DHCPServerEnabled:
|
||||
if (Source == null) return false; //Unable to do it. Do not count it against them.
|
||||
|
@ -479,6 +479,8 @@ namespace EduNetworkBuilder
|
||||
what = NicType.wport;
|
||||
|
||||
if (myNet.ItemHasTest(WhereFrom.hostname, NicName(), NetTestType.DeviceNICSprays))
|
||||
{
|
||||
if (!myNet.ItemTestIsComplete(WhereFrom.hostname, NicName(), NetTestType.DeviceNICSprays))
|
||||
{
|
||||
if (tPacket.MyType == PacketType.bad_packet) return false;
|
||||
//We should drop the current packet.
|
||||
@ -490,6 +492,7 @@ namespace EduNetworkBuilder
|
||||
WhereFrom.BadPacketFromHere();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
switch (what)
|
||||
@ -767,6 +770,8 @@ namespace EduNetworkBuilder
|
||||
nd = mynet.GetDeviceFromID(myID);
|
||||
|
||||
if (mynet.ItemHasTest(nd.hostname, NicName(), NetTestType.DeviceNICSprays))
|
||||
{
|
||||
if (!mynet.ItemTestIsComplete(nd.hostname, NicName(), NetTestType.DeviceNICSprays))
|
||||
{
|
||||
//We should drop the current packet.
|
||||
tPacket.AddMessage(DebugLevel.info, NB.Translate("N_ProssShouldContinTime"));
|
||||
@ -775,7 +780,7 @@ namespace EduNetworkBuilder
|
||||
//Then, we make a bad packet go out from here
|
||||
nd.BadPacketFromHere();
|
||||
nd.BadSprayCount = NB.NumBadPackets;
|
||||
|
||||
}
|
||||
}
|
||||
if (mynet.ItemHasTest(nd.hostname,NetTestType.DeviceIsFrozen))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user