aboutsummaryrefslogtreecommitdiffstats
path: root/src/gb/gprs_ns2_vty.c
diff options
context:
space:
mode:
authorDaniel Willmann <dwillmann@sysmocom.de>2020-12-02 15:50:22 +0100
committerDaniel Willmann <dwillmann@sysmocom.de>2020-12-02 15:50:22 +0100
commitcb3e9b5847f5a4c49307d396f0c930f16e5670e6 (patch)
treeaa45d4e285e5b29c8c3774928de87c0d2a95a6c0 /src/gb/gprs_ns2_vty.c
parent1e72df020870dfb724f18e597e0c2af7d2d81812 (diff)
ns2: Fix docs for some NS2 vty commands
Diffstat (limited to 'src/gb/gprs_ns2_vty.c')
-rw-r--r--src/gb/gprs_ns2_vty.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/gb/gprs_ns2_vty.c b/src/gb/gprs_ns2_vty.c
index b244a96a..97becf64 100644
--- a/src/gb/gprs_ns2_vty.c
+++ b/src/gb/gprs_ns2_vty.c
@@ -54,6 +54,8 @@
#include "gprs_ns2_internal.h"
+#define SHOW_NS_STR "Display information about the NS protocol\n"
+
struct ns2_vty_priv {
/* global listen */
struct osmo_sockaddr_str udp;
@@ -323,7 +325,7 @@ static void dump_ns_entities(struct vty *vty, const struct gprs_ns2_inst *nsi, b
}
DEFUN(show_ns_binds, show_ns_binds_cmd, "show ns binds [stats]",
- SHOW_STR
+ SHOW_STR SHOW_NS_STR
"Display information about the NS protocol binds\n"
"Include statistic\n")
{
@@ -336,7 +338,7 @@ DEFUN(show_ns_binds, show_ns_binds_cmd, "show ns binds [stats]",
}
DEFUN(show_ns_entities, show_ns_entities_cmd, "show ns entities [stats]",
- SHOW_STR
+ SHOW_STR SHOW_NS_STR
"Display information about the NS protocol entities (NSEs)\n"
"Include statistics\n")
{
@@ -349,8 +351,7 @@ DEFUN(show_ns_entities, show_ns_entities_cmd, "show ns entities [stats]",
}
DEFUN(show_ns_pers, show_ns_pers_cmd, "show ns persistent",
- SHOW_STR
- "Display information about the NS protocol\n"
+ SHOW_STR SHOW_NS_STR
"Show only persistent NS\n")
{
dump_ns_entities(vty, vty_nsi, true, true);
@@ -358,7 +359,7 @@ DEFUN(show_ns_pers, show_ns_pers_cmd, "show ns persistent",
}
DEFUN(show_nse, show_nse_cmd, "show ns (nsei|nsvc) <0-65535> [stats]",
- SHOW_STR "Display information about the NS protocol\n"
+ SHOW_STR SHOW_NS_STR
"Select one NSE by its NSE Identifier\n"
"Select one NSE by its NS-VC Identifier\n"
"The Identifier of selected type\n"