The Input Validation for IPFull should be:
The Input Validation for IPFull should be:
vIP:=@TextToNumber(IP);
vHubSwitch:=@If(@Contains(NDevType; "Hub");"1" ; @Contains(NDevType;"Switch");"1" ; "0") ;
vFWallRtrTest:=@If(@Contains(NDevType; "Firewall") ; "1" ; @Contains(NDevType; "Router") ; "1" ; "0");
vPhoneEqTest:=@If(@Contains(NDevType; "Phone Equip") ; "1" ; "0");
vPhoneIPTest:=@If(@Contains(NDevType; "IP Phone") ; "1" ; "0");
@If (IP = "" ; @Success ;
@Left(IP;1)="0" ; @Failure("Do not begin the IP Address with a zero.") ;
vIP<1 ; @Failure("The IP Address must be a whole number.") ;
vIP>254;@Failure("The IP Address must be <255");
vIP>149 & vIP<161 ; @Failure("The range of IP Addresses from ...150 to ...160 is reserved for DHCP") ;
vIP>199 & vIP<205 & vFWallRtrTest ="0" ; @Failure("The range of IP Addreses from ...200 to ...204 is reserved for Firewall and Router devices.") ;
vIP>204 & vIP<225 & vPhoneIPTest = "0"; @Failure("The range of IP Addreses from ...205 to ...225 is reserved for IP Phones.") ;
vIP>244 & vIP<255 & vHubSwitch = "0" ; @Failure("The range of IP Addreses from ...245 to ...254 is reserved for Hubs and Switches.") ;
vIP>224 & vIP<245 & vPhoneEqTest = "0" ; @Failure("The range of IP Addreses from ...225 to ...244 is reserved for Phone Equipment.") ;
vIP = 100 & DevType != "Server" ; @Failure("The IP Address ...100 is reserved for an office's Primary Domain Controller.") ;
@Success)