Change in libosmocore[master]: vty/command: add global command attribute CMD_ATTR_NODE_EXIT

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
Tue Oct 6 11:46:26 UTC 2020


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

Change subject: vty/command: add global command attribute CMD_ATTR_NODE_EXIT
......................................................................

vty/command: add global command attribute CMD_ATTR_NODE_EXIT

Change-Id: I56306f4886a72a3525b60225721aa2fcf7c57213
Related: SYS#4937
---
M include/osmocom/vty/command.h
M src/vty/command.c
2 files changed, 2 insertions(+), 0 deletions(-)

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



diff --git a/include/osmocom/vty/command.h b/include/osmocom/vty/command.h
index 43ad3da..f558bb1 100644
--- a/include/osmocom/vty/command.h
+++ b/include/osmocom/vty/command.h
@@ -138,6 +138,7 @@
 	CMD_ATTR_DEPRECATED	= (1 << 0),
 	CMD_ATTR_HIDDEN		= (1 << 1),
 	CMD_ATTR_IMMEDIATE	= (1 << 2),
+	CMD_ATTR_NODE_EXIT	= (1 << 3),
 };
 
 /*! Structure of a command element */
diff --git a/src/vty/command.c b/src/vty/command.c
index 30c39a7..b472f6d 100644
--- a/src/vty/command.c
+++ b/src/vty/command.c
@@ -626,6 +626,7 @@
 	{ CMD_ATTR_DEPRECATED,		"This command is deprecated" },
 	{ CMD_ATTR_HIDDEN,		"This command is hidden" },
 	{ CMD_ATTR_IMMEDIATE,		"This command applies immediately" },
+	{ CMD_ATTR_NODE_EXIT,		"This command applies on VTY node exit" },
 	{ 0, NULL }
 };
 

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

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I56306f4886a72a3525b60225721aa2fcf7c57213
Gerrit-Change-Number: 20458
Gerrit-PatchSet: 1
Gerrit-Owner: Vadim Yanitskiy <vyanitskiy at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: dexter <pmaier at sysmocom.de>
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201006/6501cd6f/attachment.htm>


More information about the gerrit-log mailing list