From b187049925311041fb9d6bacd8960d02759c473c Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Tue, 15 Feb 2011 19:45:05 +0100 Subject: [PATCH] vty; Remove the lac/mnc/mcc option as this was never implemented --- src/vty_interface.c | 38 -------------------------------------- 1 file changed, 38 deletions(-) diff --git a/src/vty_interface.c b/src/vty_interface.c index 1d43810..d9eb898 100644 --- a/src/vty_interface.c +++ b/src/vty_interface.c @@ -71,9 +71,6 @@ static int config_write_cell(struct vty *vty) vty_out(vty, " mtp ni %d%s", bsc.ni_ni, VTY_NEWLINE); vty_out(vty, " mtp spare %d%s", bsc.ni_spare, VTY_NEWLINE); vty_out(vty, " mtp sltm once %d%s", bsc.once, VTY_NEWLINE); - vty_out(vty, " country-code %d%s", bsc.msc_forward.mcc, VTY_NEWLINE); - vty_out(vty, " network-code %d%s", bsc.msc_forward.mnc, VTY_NEWLINE); - vty_out(vty, " location-area-code %d%s", bsc.msc_forward.lac, VTY_NEWLINE); if (bsc.udp_ip) vty_out(vty, " udp dest ip %s%s", bsc.udp_ip, VTY_NEWLINE); vty_out(vty, " udp dest port %d%s", bsc.udp_port, VTY_NEWLINE); @@ -259,38 +256,6 @@ DEFUN(cfg_msc_time, cfg_msc_time_cmd, return CMD_SUCCESS; } -static void update_lai(struct bsc_msc_forward *fw) -{ - gsm48_generate_lai(&fw->lai, fw->mcc, fw->mnc, fw->lac); -} - -DEFUN(cfg_mnc, cfg_mnc_cmd, - "network-code NR", - "Set the Mobile Network Code\n" "Number\n") -{ - bsc.msc_forward.mnc = atoi(argv[0]); - update_lai(&bsc.msc_forward); - return CMD_SUCCESS; -} - -DEFUN(cfg_mcc, cfg_mcc_cmd, - "country-code NR", - "Set the Mobile Country Code\n" "Number\n") -{ - bsc.msc_forward.mcc = atoi(argv[0]); - update_lai(&bsc.msc_forward); - return CMD_SUCCESS; -} - -DEFUN(cfg_lac, cfg_lac_cmd, - "location-area-code NR", - "Set the Location Area Code\n" "Number\n") -{ - bsc.msc_forward.lac = atoi(argv[0]); - update_lai(&bsc.msc_forward); - return CMD_SUCCESS; -} - DEFUN(cfg_isup_pass, cfg_isup_pass_cmd, "isup pass-through (0|1)", "ISUP related functionality\n" @@ -554,9 +519,6 @@ void cell_vty_init(void) install_element(CELLMGR_NODE, &cfg_ping_time_cmd); install_element(CELLMGR_NODE, &cfg_pong_time_cmd); install_element(CELLMGR_NODE, &cfg_msc_time_cmd); - install_element(CELLMGR_NODE, &cfg_mcc_cmd); - install_element(CELLMGR_NODE, &cfg_mnc_cmd); - install_element(CELLMGR_NODE, &cfg_lac_cmd); install_element(CELLMGR_NODE, &cfg_isup_pass_cmd); /* special commands */