Add a network test enum for a bad device
This commit is contained in:
parent
b8aeae4840
commit
6e052280e1
@ -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 }
|
||||
|
@ -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;
|
||||
|
@ -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>
|
Loading…
Reference in New Issue
Block a user