diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2021-11-06 21:10:41 +0100 |
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2021-11-16 18:51:22 +0100 |
| commit | dd2c81b8c09ac8c27ca909cf16640815941df31e (patch) | |
| tree | 81e786dce10fed153cfec605c5f6cf98c98e39ec /lib/command.h | |
| parent | 88711d8a91333869e77b1e9abe0a39c48d5787c4 (diff) | |
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.h | 3 |
1 files changed, 3 insertions, 0 deletions
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. */ |
