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
EduNetworkBuilder

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

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

@ -2049,6 +2049,10 @@
<value>Cannot place a tree on top of a tree.</value>
<comment>NB_TreePlacementError = Cannot place a tree on top of a tree.</comment>
</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">
<value>FIll</value>
<comment>SE_Fill = Fill</comment>