summaryrefslogtreecommitdiffstats
path: root/lib/command.h
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2021-11-06 21:10:41 +0100
committerDavid Lamparter <equinox@opensourcerouting.org>2021-11-16 18:51:22 +0100
commitdd2c81b8c09ac8c27ca909cf16640815941df31e (patch)
tree81e786dce10fed153cfec605c5f6cf98c98e39ec /lib/command.h
parentlib: use hash for route-map set/match commands (diff)
downloadfrr-dd2c81b8c09ac8c27ca909cf16640815941df31e.tar.xz
frr-dd2c81b8c09ac8c27ca909cf16640815941df31e.zip
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 <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/command.h')
-rw-r--r--lib/command.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/command.h b/lib/command.h
index e2086701a..c888356d6 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. */