From 607275c30be14266c4f1724b29a7cddea2062802 Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Mon, 25 Sep 2017 00:35:06 +0200 Subject: gb: drop special vty exit commands, use vty_install_default() L_NS_NODE and L_BSSGP_NODE had specialized 'exit' and 'end' vty commands, but all they do is return to the CONFIG and ENABLE_NODEs like the default 'exit' and 'end' commands. Drop them and use the default 'exit' and 'end' cmds. Examining BSSGP and NS node behavior in osmo-sgsn exhibited identical list and exit/end behavior before and after this patch. Prepares for an upcoming commit incorporating vty_install_default() into install_node(), see I5021c64a787b63314e0f2f1cba0b8fc7bff4f09b: this patch changes to the default commands, the upcoming change implies them. Change-Id: I5b0de066b4249d482c22620d5b1bcb03f381293c --- src/gb/gprs_bssgp_vty.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/gb/gprs_bssgp_vty.c') diff --git a/src/gb/gprs_bssgp_vty.c b/src/gb/gprs_bssgp_vty.c index 30ba6037..dc786a14 100644 --- a/src/gb/gprs_bssgp_vty.c +++ b/src/gb/gprs_bssgp_vty.c @@ -211,9 +211,7 @@ int bssgp_vty_init(void) install_element(CONFIG_NODE, &cfg_bssgp_cmd); install_node(&bssgp_node, config_write_bssgp); - install_default(L_BSSGP_NODE); - install_element(L_BSSGP_NODE, &libgb_exit_cmd); - install_element(L_BSSGP_NODE, &libgb_end_cmd); + vty_install_default(L_BSSGP_NODE); return 0; } -- cgit v1.2.3