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,
|
DHCPServerEnabled, SuccessfullyTraceroutes,
|
||||||
LockAll, LockIP, LockRoute, LockNic, LockDHCP, LockGateway,
|
LockAll, LockIP, LockRoute, LockNic, LockDHCP, LockGateway,
|
||||||
LockVLANsOnHost, LockNicVLAN, LockInterfaceVLAN, LockVLANNames,
|
LockVLANsOnHost, LockNicVLAN, LockInterfaceVLAN, LockVLANNames,
|
||||||
|
DeviceIsBad,
|
||||||
}
|
}
|
||||||
public enum ContextTest { ping, arp, traceroute }
|
public enum ContextTest { ping, arp, traceroute }
|
||||||
public enum NetTestVerbosity { none, basic, hints, full }
|
public enum NetTestVerbosity { none, basic, hints, full }
|
||||||
|
@ -133,6 +133,9 @@ namespace EduNetworkBuilder
|
|||||||
case NetTestVerbosity.hints:
|
case NetTestVerbosity.hints:
|
||||||
switch (TheTest)
|
switch (TheTest)
|
||||||
{
|
{
|
||||||
|
case NetTestType.DeviceIsBad:
|
||||||
|
toreturn = NB.Translate("NT_TstDscriptBadDevice");
|
||||||
|
break;
|
||||||
case NetTestType.NeedsDefaultGW:
|
case NetTestType.NeedsDefaultGW:
|
||||||
toreturn = NB.Translate("NT_TstDscriptGteway");
|
toreturn = NB.Translate("NT_TstDscriptGteway");
|
||||||
break;
|
break;
|
||||||
@ -217,6 +220,9 @@ namespace EduNetworkBuilder
|
|||||||
case NetTestVerbosity.full:
|
case NetTestVerbosity.full:
|
||||||
switch (TheTest)
|
switch (TheTest)
|
||||||
{
|
{
|
||||||
|
case NetTestType.DeviceIsBad:
|
||||||
|
toreturn = NB.Translate("NT_TstDscriptBadDevice2");
|
||||||
|
break;
|
||||||
case NetTestType.NeedsDefaultGW:
|
case NetTestType.NeedsDefaultGW:
|
||||||
toreturn = NB.Translate("NT_TstDiscriptGteway2");
|
toreturn = NB.Translate("NT_TstDiscriptGteway2");
|
||||||
break;
|
break;
|
||||||
|
@ -1993,4 +1993,12 @@
|
|||||||
<value>Translate</value>
|
<value>Translate</value>
|
||||||
<comment>TW_Translate = Translate</comment>
|
<comment>TW_Translate = Translate</comment>
|
||||||
</data>
|
</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>
|
</root>
|
Loading…
Reference in New Issue
Block a user