[nat] Remove range checks inside the VTY command.

The ranges are enforced by the VTY code.
This commit is contained in:
Holger Hans Peter Freyther
2010-05-14 02:35:51 +08:00
parent 723fb87a6c
commit 5d645bf984

View File

@@ -346,12 +346,6 @@ DEFUN(cfg_bsc_lac, cfg_bsc_lac_cmd, "location_area_code <0-65535>",
int lac = atoi(argv[0]);
if (lac < 0 || lac > 0xffff) {
vty_out(vty, "%% LAC %d is not in the valid range (0-65535)%s",
lac, VTY_NEWLINE);
return CMD_WARNING;
}
if (lac == GSM_LAC_RESERVED_DETACHED || lac == GSM_LAC_RESERVED_ALL_BTS) {
vty_out(vty, "%% LAC %d is reserved by GSM 04.08%s",
lac, VTY_NEWLINE);