We can state that a network card (switch port) has a problem. We cannot do anything about it yet.
This commit is contained in:
parent
ade6ed04ce
commit
762ff62a32
@ -49,7 +49,7 @@ namespace EduNetworkBuilder
|
||||
DHCPServerEnabled, SuccessfullyTraceroutes,
|
||||
LockAll, LockIP, LockRoute, LockNic, LockDHCP, LockGateway, LockLocation,
|
||||
LockVLANsOnHost, LockNicVLAN, LockInterfaceVLAN, LockVLANNames,
|
||||
DeviceIsFrozen, DeviceBlowsUpWithPower, DeviceNeedsUPS,
|
||||
DeviceIsFrozen, DeviceBlowsUpWithPower, DeviceNeedsUPS, DeviceNICSprays,
|
||||
}
|
||||
public enum AnimationName { Spark1, Fire1, Smoke1, Explo1, Lightning1 }
|
||||
public enum ContextTest { ping, arp, traceroute }
|
||||
|
@ -222,6 +222,9 @@ namespace EduNetworkBuilder
|
||||
case NetTestType.NeedsForbiddenVLAN:
|
||||
toreturn = NB.Translate("NT_TstDiscriptNeedsForbiddenVLAN");
|
||||
break;
|
||||
case NetTestType.DeviceNICSprays:
|
||||
toreturn = NB.Translate("NT_TstDeviceNICSprays") + ":";
|
||||
break;
|
||||
case NetTestType.ReadContextHelp:
|
||||
toreturn = NB.Translate("_ReadContext");
|
||||
break;
|
||||
@ -321,6 +324,9 @@ namespace EduNetworkBuilder
|
||||
case NetTestType.ReadContextHelp:
|
||||
toreturn = NB.Translate("_ReadContext");
|
||||
break;
|
||||
case NetTestType.DeviceNICSprays:
|
||||
toreturn = NB.Translate("NT_TstDeviceNICSprays") + ":";
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case NetTestVerbosity.none:
|
||||
@ -370,6 +376,8 @@ namespace EduNetworkBuilder
|
||||
public bool ColorItemsIfNeeded(bool ChangeColor)
|
||||
{
|
||||
bool WasDone = TaskWasDone;
|
||||
if (TheTest == NetTestType.DeviceNICSprays)
|
||||
ChangeColor = false; //we do not show this
|
||||
if(!TestComplete())
|
||||
{
|
||||
if(TheTest == NetTestType.ReadContextHelp && ChangeColor)
|
||||
|
@ -253,12 +253,13 @@ namespace EduNetworkBuilder
|
||||
{
|
||||
//return all the dhcp ranges
|
||||
sItem = theNet.GetDeviceFromName(ToEdit.sHost);
|
||||
foreach (NB_IPAddress ip in sItem.ListRoutes())
|
||||
{
|
||||
cbDest.Items.Add(ip.GetIPString);
|
||||
}
|
||||
if(sItem != null)
|
||||
foreach (NB_IPAddress ip in sItem.ListRoutes())
|
||||
{
|
||||
cbDest.Items.Add(ip.GetIPString);
|
||||
}
|
||||
}
|
||||
else if (ToEdit.TheTest == NetTestType.LockNic)
|
||||
else if (ToEdit.TheTest == NetTestType.LockNic || ToEdit.TheTest == NetTestType.DeviceNICSprays)
|
||||
{
|
||||
//return all the dhcp ranges
|
||||
sItem = theNet.GetDeviceFromName(ToEdit.sHost);
|
||||
@ -420,6 +421,14 @@ namespace EduNetworkBuilder
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else if (ntt == NetTestType.DeviceNICSprays)
|
||||
{
|
||||
NetworkDevice tstDevice = theNet.GetDeviceFromName(cbSource.SelectedItem.ToString());
|
||||
if (tstDevice == null) return false;
|
||||
NetworkCard tstNIC = tstDevice.NicFromName(cbDest.Text);
|
||||
if (tstNIC == null) return false;
|
||||
return true;
|
||||
}
|
||||
else if (ntt == NetTestType.NeedsUntaggedVLAN || ntt == NetTestType.NeedsTaggedVLAN ||
|
||||
ntt == NetTestType.NeedsForbiddenVLAN)
|
||||
{
|
||||
|
@ -2113,4 +2113,8 @@
|
||||
<value>Office Bldg Wireless</value>
|
||||
<comment>NB_OfficeBldgWireless</comment>
|
||||
</data>
|
||||
<data name="NT_TstDeviceNICSprays" xml:space="preserve">
|
||||
<value>Network Card sprays net when used</value>
|
||||
<comment>NT_TstDeviceNICSprays = Network Card sprays net when used</comment>
|
||||
</data>
|
||||
</root>
|
Loading…
Reference in New Issue
Block a user