summaryrefslogtreecommitdiff
path: root/lib/command.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/command.h')
-rw-r--r--lib/command.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/command.h b/lib/command.h
index 5629eb3679..e7c9ff4c52 100644
--- a/lib/command.h
+++ b/lib/command.h
@@ -182,6 +182,11 @@ struct cmd_node {
/* Node's configuration write function */
int (*config_write)(struct vty *);
+ /* called when leaving the node on a VTY session.
+ * return 1 if normal exit processing should happen, 0 to suppress
+ */
+ int (*node_exit)(struct vty *);
+
/* Node's command graph */
struct graph *cmdgraph;