From dd2c81b8c09ac8c27ca909cf16640815941df31e Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Sat, 6 Nov 2021 21:10:41 +0100 Subject: lib: rework vty_check_node_for_xpath_decrement ...by having a flag in struct cmd_node rather than hardcoding it in `lib/command.c`. Signed-off-by: David Lamparter --- lib/command.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/command.h') diff --git a/lib/command.h b/lib/command.h index e2086701ad..c888356d61 100644 --- a/lib/command.h +++ b/lib/command.h @@ -213,6 +213,9 @@ struct cmd_node { /* set as soon as any command is in cmdgraph */ bool graph_built; + + /* don't decrement vty->xpath_index on leaving this node */ + bool no_xpath; }; /* Return value of the commands. */ -- cgit v1.2.3