Change in libosmocore[master]: vty/command: add CMD_ATTR_HIDDEN to CMD_ATTR_PUBLIC_MASK

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/.

laforge gerrit-no-reply at lists.osmocom.org
Fri Oct 23 15:08:50 UTC 2020


laforge has submitted this change. ( https://gerrit.osmocom.org/c/libosmocore/+/20848 )

Change subject: vty/command: add CMD_ATTR_HIDDEN to CMD_ATTR_PUBLIC_MASK
......................................................................

vty/command: add CMD_ATTR_HIDDEN to CMD_ATTR_PUBLIC_MASK

Otherwise in the expert mode, hidden commands do not get the
associated attribute printed to the XML VTY reference.

Change-Id: I8ded973031beb6d8c7ad55f06641c9651b1d9e71
Related: OS#4910
---
M src/vty/command.c
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Jenkins Builder: Verified
  pespin: Looks good to me, but someone else must approve
  laforge: Looks good to me, approved



diff --git a/src/vty/command.c b/src/vty/command.c
index b83522f..7ea1971 100644
--- a/src/vty/command.c
+++ b/src/vty/command.c
@@ -633,7 +633,7 @@
 
 /* Public attributes (to be printed in the VTY / XML reference) */
 #define CMD_ATTR_PUBLIC_MASK \
-	(CMD_ATTR_IMMEDIATE | CMD_ATTR_NODE_EXIT)
+	(CMD_ATTR_HIDDEN | CMD_ATTR_IMMEDIATE | CMD_ATTR_NODE_EXIT)
 
 /* Get a flag character for a global VTY command attribute */
 static char cmd_attr_get_flag(unsigned int attr)

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

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I8ded973031beb6d8c7ad55f06641c9651b1d9e71
Gerrit-Change-Number: 20848
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201023/8b77c02e/attachment.htm>


More information about the gerrit-log mailing list