aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcommon-cs/common_cs_vty.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2018-02-14 00:19:06 +0100
committerHarald Welte <laforge@gnumonks.org>2018-02-14 09:04:52 +0100
commit2346619c1aa1eba3d8f7e939a0efd704ea3fe932 (patch)
tree269666fa99654fc4a3361ca03c0bc73e2b4f5013 /src/libcommon-cs/common_cs_vty.c
parent27b40c601c41fde70446ad553629494234c07662 (diff)
remove unused "authorized-regexp" VTY command
This is another left-over VTY command from the OsmoNITB days. If such functionality is desired, it must be implemented in OsmoHLR, but not here. Related: OS#2528 Change-Id: Icf0897c47388e49ba7886b55acc728a6f7d213fe
Diffstat (limited to 'src/libcommon-cs/common_cs_vty.c')
-rw-r--r--src/libcommon-cs/common_cs_vty.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/libcommon-cs/common_cs_vty.c b/src/libcommon-cs/common_cs_vty.c
index e5972f1e2..2fbe09ce1 100644
--- a/src/libcommon-cs/common_cs_vty.c
+++ b/src/libcommon-cs/common_cs_vty.c
@@ -121,22 +121,6 @@ DEFUN(cfg_net_auth_policy,
return CMD_SUCCESS;
}
-DEFUN(cfg_net_authorize_regexp, cfg_net_authorize_regexp_cmd,
- "authorized-regexp REGEXP",
- "Set regexp for IMSI which will be used for authorization decision\n"
- "Regular expression, IMSIs matching it are allowed to use the network\n")
-{
- struct gsm_network *gsmnet = gsmnet_from_vty(vty);
- if (gsm_parse_reg(gsmnet, &gsmnet->authorized_regexp,
- &gsmnet->authorized_reg_str, argc, argv) != 0) {
- vty_out(vty, "%%Failed to parse the authorized-regexp: '%s'%s",
- argv[0], VTY_NEWLINE);
- return CMD_WARNING;
- }
-
- return CMD_SUCCESS;
-}
-
DEFUN(cfg_net_encryption,
cfg_net_encryption_cmd,
"encryption a5 <0-3> [<0-3>] [<0-3>] [<0-3>]",
@@ -307,7 +291,6 @@ int common_cs_vty_init(struct gsm_network *network,
install_element(GSMNET_NODE, &cfg_net_name_short_cmd);
install_element(GSMNET_NODE, &cfg_net_name_long_cmd);
install_element(GSMNET_NODE, &cfg_net_auth_policy_cmd);
- install_element(GSMNET_NODE, &cfg_net_authorize_regexp_cmd);
install_element(GSMNET_NODE, &cfg_net_encryption_cmd);
install_element(GSMNET_NODE, &cfg_net_authentication_cmd);
install_element(GSMNET_NODE, &cfg_net_rrlp_mode_cmd);