From 6e052280e1d31b8abee8547e216b6c1f8e6bcc27 Mon Sep 17 00:00:00 2001 From: Tim Young Date: Tue, 13 Feb 2018 10:14:09 +0000 Subject: [PATCH] Add a network test enum for a bad device --- EduNetworkBuilder/NB.cs | 1 + EduNetworkBuilder/NetTest.cs | 6 ++++++ EduNetworkBuilder/Resources/languages/edustrings.resx | 8 ++++++++ 3 files changed, 15 insertions(+) diff --git a/EduNetworkBuilder/NB.cs b/EduNetworkBuilder/NB.cs index fcb8a10..9640e76 100644 --- a/EduNetworkBuilder/NB.cs +++ b/EduNetworkBuilder/NB.cs @@ -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 } diff --git a/EduNetworkBuilder/NetTest.cs b/EduNetworkBuilder/NetTest.cs index ced7c7f..a77ee47 100644 --- a/EduNetworkBuilder/NetTest.cs +++ b/EduNetworkBuilder/NetTest.cs @@ -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; diff --git a/EduNetworkBuilder/Resources/languages/edustrings.resx b/EduNetworkBuilder/Resources/languages/edustrings.resx index a02aaed..505e5dc 100644 --- a/EduNetworkBuilder/Resources/languages/edustrings.resx +++ b/EduNetworkBuilder/Resources/languages/edustrings.resx @@ -1993,4 +1993,12 @@ Translate TW_Translate = Translate + + Something seems broken with this device + NT_TstDscriptBadDevice = Something seems broken with this device + + + This Device is bad and should be replaced + NT_TstDscriptBadDevice2 = This Device is bad and should be replaced + \ No newline at end of file