summaryrefslogtreecommitdiff
path: root/lib/vty.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/vty.h')
-rw-r--r--lib/vty.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/vty.h b/lib/vty.h
index 4c434fb2f2..5cc077523f 100644
--- a/lib/vty.h
+++ b/lib/vty.h
@@ -35,11 +35,19 @@
#define VTY_MAXHIST 20
#define VTY_MAXDEPTH 8
+#define VTY_MAXCFGCHANGES 8
+
struct vty_error {
char error_buf[VTY_BUFSIZ];
uint32_t line_num;
};
+struct vty_cfg_change {
+ const char *xpath;
+ enum nb_operation operation;
+ const char *value;
+};
+
/* VTY struct. */
struct vty {
/* File descripter of this vty. */
@@ -98,6 +106,10 @@ struct vty {
/* History insert end point */
int hindex;
+ /* Changes enqueued to be applied in the candidate configuration. */
+ size_t num_cfg_changes;
+ struct vty_cfg_change cfg_changes[VTY_MAXCFGCHANGES];
+
/* XPath of the current node */
int xpath_index;
char xpath[VTY_MAXDEPTH][XPATH_MAXLEN];