Once the switch has been replaced (with a spraying nic) the replace switch context menu does not show up.

This commit is contained in:
Tim Young 2018-04-05 16:43:55 +03:00
parent 7707ddc0e1
commit 6537986b27

View File

@ -1036,7 +1036,7 @@ namespace EduNetworkBuilder
toDo = !myNetwork.ItemTestIsComplete(ReleasedOn.hostname, NetTestType.DeviceBlowsUpWithPower); toDo = !myNetwork.ItemTestIsComplete(ReleasedOn.hostname, NetTestType.DeviceBlowsUpWithPower);
if (myNetwork.ItemHasTest(ReleasedOn.hostname, NetTestType.DeviceNICSprays)) if (myNetwork.ItemHasTest(ReleasedOn.hostname, NetTestType.DeviceNICSprays))
{ {
if (ReleasedOn.ForwardsPackets()) if (ReleasedOn.ForwardsPackets() && !myNetwork.ItemTestIsComplete(ReleasedOn.hostname, NetTestType.DeviceNICSprays))
toDo = true; //with PCs and the like, we replace the individual nic toDo = true; //with PCs and the like, we replace the individual nic
} }
if (toDo) if (toDo)