Add a lock location test. Not active yet, but can be added to a network

This commit is contained in:
Tim Young 2018-03-01 17:13:34 -06:00
parent f4b07f1d9d
commit 1ada144423
3 changed files with 12 additions and 1 deletions

View File

@ -47,7 +47,7 @@ namespace EduNetworkBuilder
NeedsUntaggedVLAN, NeedsTaggedVLAN, NeedsForbiddenVLAN, NeedsUntaggedVLAN, NeedsTaggedVLAN, NeedsForbiddenVLAN,
SuccessfullyPings, SuccessfullyPingsAgain, SuccessfullyArps, SuccessfullyDHCPs, HelpRequest, ReadContextHelp, FailedPing, SuccessfullyPings, SuccessfullyPingsAgain, SuccessfullyArps, SuccessfullyDHCPs, HelpRequest, ReadContextHelp, FailedPing,
DHCPServerEnabled, SuccessfullyTraceroutes, DHCPServerEnabled, SuccessfullyTraceroutes,
LockAll, LockIP, LockRoute, LockNic, LockDHCP, LockGateway, LockAll, LockIP, LockRoute, LockNic, LockDHCP, LockGateway, LockLocation,
LockVLANsOnHost, LockNicVLAN, LockInterfaceVLAN, LockVLANNames, LockVLANsOnHost, LockNicVLAN, LockInterfaceVLAN, LockVLANNames,
DeviceIsFrozen, DeviceBlowsUpWithPower, DeviceNeedsUPS, DeviceIsFrozen, DeviceBlowsUpWithPower, DeviceNeedsUPS,
} }

View File

@ -209,6 +209,9 @@ namespace EduNetworkBuilder
case NetTestType.LockInterfaceVLAN: case NetTestType.LockInterfaceVLAN:
toreturn = NB.Translate("NT_TstDiscriptLockInterfaceVLAN"); toreturn = NB.Translate("NT_TstDiscriptLockInterfaceVLAN");
break; break;
case NetTestType.LockLocation:
toreturn = NB.Translate("NT_TstDiscriptLockLocation");
break;
case NetTestType.NeedsTaggedVLAN: case NetTestType.NeedsTaggedVLAN:
toreturn = NB.Translate("NT_TstDiscriptNeedsTaggedVLAN"); toreturn = NB.Translate("NT_TstDiscriptNeedsTaggedVLAN");
break; break;
@ -302,6 +305,9 @@ namespace EduNetworkBuilder
case NetTestType.LockInterfaceVLAN: case NetTestType.LockInterfaceVLAN:
toreturn = NB.Translate("NT_TstDiscriptLockInterfaceVLAN") + ":"; toreturn = NB.Translate("NT_TstDiscriptLockInterfaceVLAN") + ":";
break; break;
case NetTestType.LockLocation:
toreturn = NB.Translate("NT_TstDiscriptLockLocation") + ":";
break;
case NetTestType.NeedsTaggedVLAN: case NetTestType.NeedsTaggedVLAN:
toreturn = NB.Translate("NT_TstDiscriptNeedsTaggedVLAN") + ":"; toreturn = NB.Translate("NT_TstDiscriptNeedsTaggedVLAN") + ":";
break; break;
@ -569,6 +575,7 @@ namespace EduNetworkBuilder
case NetTestType.LockNicVLAN: case NetTestType.LockNicVLAN:
case NetTestType.LockVLANsOnHost: case NetTestType.LockVLANsOnHost:
case NetTestType.LockVLANNames: case NetTestType.LockVLANNames:
case NetTestType.LockLocation:
return true; //Nothing to solve. We just lock it so it cannot be changed. return true; //Nothing to solve. We just lock it so it cannot be changed.
} }
return false; return false;

View File

@ -2049,6 +2049,10 @@
<value>Cannot place a tree on top of a tree.</value> <value>Cannot place a tree on top of a tree.</value>
<comment>NB_TreePlacementError = Cannot place a tree on top of a tree.</comment> <comment>NB_TreePlacementError = Cannot place a tree on top of a tree.</comment>
</data> </data>
<data name="NT_TstDiscriptLockLocation" xml:space="preserve">
<value>Device cannot be moved</value>
<comment>NT_TstDiscriptLockLocation = Device cannot be moved</comment>
</data>
<data name="SE_Fill" xml:space="preserve"> <data name="SE_Fill" xml:space="preserve">
<value>FIll</value> <value>FIll</value>
<comment>SE_Fill = Fill</comment> <comment>SE_Fill = Fill</comment>