Change in osmo-sgsn[master]: vty: fix doc str for 'reset sgsn state'

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Mon Sep 24 20:30:41 UTC 2018


Harald Welte has submitted this change and it was merged. ( https://gerrit.osmocom.org/11075 )

Change subject: vty: fix doc str for 'reset sgsn state'
......................................................................

vty: fix doc str for 'reset sgsn state'

Document all keywords of the 'reset sgsn state' command: set the same doc
string for all three.

Also fixes the build after libosmocore
I1f18e0e41da4772d092d71261b9e489dc1598923, which resulted in HIDDEN commands
coming up in the VTY reference dumping. Note that libosmocore
I92c3c66ff69c186234276c64478d6342e061d25e will again remove this breakage by
omitting hidden commands.

Change-Id: I8b6e8615e409266910f2f76a10ced9ab33e4de91
---
M src/gprs/sgsn_vty.c
1 file changed, 5 insertions(+), 1 deletion(-)

Approvals:
  Jenkins Builder: Verified
  Harald Welte: Looks good to me, approved



diff --git a/src/gprs/sgsn_vty.c b/src/gprs/sgsn_vty.c
index 63985bc..87c6884 100644
--- a/src/gprs/sgsn_vty.c
+++ b/src/gprs/sgsn_vty.c
@@ -801,10 +801,14 @@
 	vty_out(vty, "    Use count: %u%s", gsub->use_count, VTY_NEWLINE);
 }
 
+#define RESET_SGSN_STATE_STR \
+      "Remove all known subscribers, MM contexts and flush BSSGP queues." \
+      " Useful only when running tests against the SGSN\n"
+
 DEFUN_HIDDEN(reset_sgsn_state,
       reset_sgsn_state_cmd,
       "reset sgsn state",
-      "Remove all known subscriber, MM ctx and flush BSSGP queues Useful when running tests against the SGSN")
+      RESET_SGSN_STATE_STR RESET_SGSN_STATE_STR RESET_SGSN_STATE_STR)
 {
 	struct gprs_subscr *subscr, *tmp_subscr;
 	struct sgsn_mm_ctx *mm, *tmp_mm;

-- 
To view, visit https://gerrit.osmocom.org/11075
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-sgsn
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I8b6e8615e409266910f2f76a10ced9ab33e4de91
Gerrit-Change-Number: 11075
Gerrit-PatchSet: 1
Gerrit-Owner: Neels Hofmeyr <nhofmeyr at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder (1000002)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20180924/a6bcbf6d/attachment.htm>


More information about the gerrit-log mailing list