Add a network test enum for a bad device

This commit is contained in:
Tim Young 2018-02-13 10:14:09 +00:00
parent b8aeae4840
commit 6e052280e1
3 changed files with 15 additions and 0 deletions

View File

@ -48,6 +48,7 @@ namespace EduNetworkBuilder
DHCPServerEnabled, SuccessfullyTraceroutes,
LockAll, LockIP, LockRoute, LockNic, LockDHCP, LockGateway,
LockVLANsOnHost, LockNicVLAN, LockInterfaceVLAN, LockVLANNames,
DeviceIsBad,
}
public enum ContextTest { ping, arp, traceroute }
public enum NetTestVerbosity { none, basic, hints, full }

View File

@ -133,6 +133,9 @@ namespace EduNetworkBuilder
case NetTestVerbosity.hints:
switch (TheTest)
{
case NetTestType.DeviceIsBad:
toreturn = NB.Translate("NT_TstDscriptBadDevice");
break;
case NetTestType.NeedsDefaultGW:
toreturn = NB.Translate("NT_TstDscriptGteway");
break;
@ -217,6 +220,9 @@ namespace EduNetworkBuilder
case NetTestVerbosity.full:
switch (TheTest)
{
case NetTestType.DeviceIsBad:
toreturn = NB.Translate("NT_TstDscriptBadDevice2");
break;
case NetTestType.NeedsDefaultGW:
toreturn = NB.Translate("NT_TstDiscriptGteway2");
break;

View File

@ -1993,4 +1993,12 @@
<value>Translate</value>
<comment>TW_Translate = Translate</comment>
</data>
<data name="NT_TstDscriptBadDevice" xml:space="preserve">
<value>Something seems broken with this device</value>
<comment>NT_TstDscriptBadDevice = Something seems broken with this device</comment>
</data>
<data name="NT_TstDscriptBadDevice2" xml:space="preserve">
<value>This Device is bad and should be replaced</value>
<comment>NT_TstDscriptBadDevice2 = This Device is bad and should be replaced</comment>
</data>
</root>