aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2018-09-27 03:28:19 +0200
committerNeels Hofmeyr <neels@hofmeyr.de>2018-09-27 16:08:10 +0200
commiteb2068d501cf5731bcfb4db3f8dbaa928a70c202 (patch)
tree3465387d99a9a40331a39f864e5473690d7b3fa6
parent6d867d1d08490a270be86911b74fcf0a8cede44d (diff)
sccp_vty: fix doc strings for show ... ssn,connections
For 'show cs7 instance 0 ssn', fix doc string for 'ssn', and add missing one for the SSN arg. This fixes depending builds that see VTY test failures due to the missing doc string. For 'show cs7 instance 0 connectsion', fix doc string for 'connections'. Change-Id: I214ea51fc6bfa2a9a4dd7c34b43add0c77ffe22e
-rw-r--r--src/sccp_vty.c5
-rw-r--r--tests/vty/ss7_asp_test.vty6
2 files changed, 6 insertions, 5 deletions
diff --git a/src/sccp_vty.c b/src/sccp_vty.c
index 2727ccc..b11fec5 100644
--- a/src/sccp_vty.c
+++ b/src/sccp_vty.c
@@ -83,7 +83,8 @@ DEFUN(show_sccp_users, show_sccp_users_cmd,
DEFUN(show_sccp_user_ssn, show_sccp_user_ssn_cmd,
"show cs7 instance <0-15> sccp ssn <0-65535>",
SHOW_STR CS7_STR INST_STR INST_STR SCCP_STR
- "Show List of SCCP Users registered\n")
+ "Find an SCCP User registered for the given SSN\n"
+ "Subsystem Number (SSN)\n")
{
int id = atoi(argv[0]);
int ssn = atoi(argv[1]);
@@ -117,7 +118,7 @@ DEFUN(show_sccp_user_ssn, show_sccp_user_ssn_cmd,
DEFUN(show_sccp_connections, show_sccp_connections_cmd,
"show cs7 instance <0-15> sccp connections",
SHOW_STR CS7_STR INST_STR INST_STR SCCP_STR
- "Show List of SCCP Users registered\n")
+ "Show List of active SCCP connections\n")
{
int id = atoi(argv[0]);
struct osmo_ss7_instance *inst;
diff --git a/tests/vty/ss7_asp_test.vty b/tests/vty/ss7_asp_test.vty
index fee97b3..05c7527 100644
--- a/tests/vty/ss7_asp_test.vty
+++ b/tests/vty/ss7_asp_test.vty
@@ -55,11 +55,11 @@ ss7_asp_vty_test# show cs7 instance 0 as ?
ss7_asp_vty_test# show cs7 instance 0 sccp ?
addressbook List all SCCP addressbook entries
users Show List of SCCP Users registered
- ssn Show List of SCCP Users registered
- connections Show List of SCCP Users registered
+ ssn Find an SCCP User registered for the given SSN
+ connections Show List of active SCCP connections
ss7_asp_vty_test# show cs7 instance 0 sccp ssn ?
- <0-65535>
+ <0-65535> Subsystem Number (SSN)
ss7_asp_vty_test# configure terminal
ss7_asp_vty_test(config)# cs7 instance 0