aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2020-12-12 15:15:34 +0100
committerDaniel Willmann <dwillmann@sysmocom.de>2020-12-14 12:21:17 +0100
commitb6b2f14197ff9bf7850501e055e6ed79e6f722b7 (patch)
tree12316171072e4f36165d363618a7a1245d63530f
parent959f77e34bc4ec2bb4707e5d86957ee47deea763 (diff)
gbproxy: rename vty command "show gbproxy ..." to "show gbproxy bvc ..."
we have other objects to show, and the orthogoanl way to do this is to rename the existing one. Change-Id: I7836a37533a2de81720acedda712d61f429df12c
-rw-r--r--src/gbproxy/gb_proxy_vty.c5
-rwxr-xr-xtests/vty_test_runner.py2
2 files changed, 4 insertions, 3 deletions
diff --git a/src/gbproxy/gb_proxy_vty.c b/src/gbproxy/gb_proxy_vty.c
index 976ac125b..fc2e8f199 100644
--- a/src/gbproxy/gb_proxy_vty.c
+++ b/src/gbproxy/gb_proxy_vty.c
@@ -198,8 +198,9 @@ DEFUN(logging_fltr_bvc,
return CMD_SUCCESS;
}
-DEFUN(show_gbproxy, show_gbproxy_cmd, "show gbproxy (bss|sgsn) [stats]",
+DEFUN(show_gbproxy_bvc, show_gbproxy_bvc_cmd, "show gbproxy bvc (bss|sgsn) [stats]",
SHOW_STR "Display information about the Gb proxy\n"
+ "Show BSSGP Virtual Connections\n"
"Display BSS-side BVCs\n"
"Display SGSN-side BVCs\n"
"Show statistics\n")
@@ -334,7 +335,7 @@ DEFUN(delete_gb_nsei, delete_gb_nsei_cmd,
int gbproxy_vty_init(void)
{
- install_element_ve(&show_gbproxy_cmd);
+ install_element_ve(&show_gbproxy_bvc_cmd);
install_element_ve(&show_gbproxy_links_cmd);
install_element_ve(&logging_fltr_bvc_cmd);
diff --git a/tests/vty_test_runner.py b/tests/vty_test_runner.py
index be40abc7d..4fb67cb91 100755
--- a/tests/vty_test_runner.py
+++ b/tests/vty_test_runner.py
@@ -97,7 +97,7 @@ class TestVTYGbproxy(TestVTYBase):
res = self.vty.command("show ns")
self.assertTrue(res.find('UDP bind') >= 0)
- res = self.vty.command("show gbproxy bss stats")
+ res = self.vty.command("show gbproxy bvc bss stats")
self.assertTrue(res.find('GBProxy Global Statistics') >= 0)
def testVtyDeletePeer(self):