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
This commit is contained in:
Harald Welte 2020-12-12 15:15:34 +01:00 committed by Daniel Willmann
parent c6ecfadaaf
commit befe1c35af
2 changed files with 4 additions and 3 deletions

View File

@ -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);

View File

@ -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):