Get broken device replacement working
This commit is contained in:
parent
0df4b14e01
commit
faf8ed1984
@ -226,6 +226,10 @@ namespace EduNetworkBuilder
|
|||||||
{
|
{
|
||||||
cbDest.Items.Add(NB.Translate("_All"));
|
cbDest.Items.Add(NB.Translate("_All"));
|
||||||
}
|
}
|
||||||
|
else if (ToEdit.TheTest == NetTestType.DeviceIsBad)
|
||||||
|
{
|
||||||
|
cbDest.Items.Add(ToEdit.sHost);
|
||||||
|
}
|
||||||
else if (ToEdit.TheTest == NetTestType.LockDHCP)
|
else if (ToEdit.TheTest == NetTestType.LockDHCP)
|
||||||
{
|
{
|
||||||
//return all the dhcp ranges
|
//return all the dhcp ranges
|
||||||
|
@ -730,6 +730,17 @@ namespace EduNetworkBuilder
|
|||||||
mynet = NB.GetNetwork();
|
mynet = NB.GetNetwork();
|
||||||
nd = mynet.GetDeviceFromID(myID);
|
nd = mynet.GetDeviceFromID(myID);
|
||||||
|
|
||||||
|
if(mynet.ItemHasTest(nd.hostname,NetTestType.DeviceIsBad))
|
||||||
|
{
|
||||||
|
if(!mynet.ItemTestIsComplete(nd.hostname, NetTestType.DeviceIsBad))
|
||||||
|
{
|
||||||
|
//the device is busted and nonfunctional. No response.
|
||||||
|
tPacket.AddMessage(DebugLevel.info, "");
|
||||||
|
tPacket.Tracking.Status = "";
|
||||||
|
tPacket.MyStatus = PacketStatus.finished_failed;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (tPacket == null) return;
|
if (tPacket == null) return;
|
||||||
tPacket.InboundNic = this; //track which nic we came in on.
|
tPacket.InboundNic = this; //track which nic we came in on.
|
||||||
if (myNicType == NicType.port || myNicType == NicType.wport || (nd.IsWirelessForwarder() && (myNicType == NicType.wlan ||
|
if (myNicType == NicType.port || myNicType == NicType.wport || (nd.IsWirelessForwarder() && (myNicType == NicType.wlan ||
|
||||||
|
@ -2878,6 +2878,7 @@ namespace EduNetworkBuilder
|
|||||||
DefaultGW = new IPAddress(NB.ZeroIPString);
|
DefaultGW = new IPAddress(NB.ZeroIPString);
|
||||||
foreach(NetworkCard nic in NICs)
|
foreach(NetworkCard nic in NICs)
|
||||||
{
|
{
|
||||||
|
if(nic.GetNicType != NicType.port)
|
||||||
nic.ClearIPs();
|
nic.ClearIPs();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user