summaryrefslogtreecommitdiff
path: root/src/cli_val.h
diff options
context:
space:
mode:
authorMichael Larson <slioch@slioch.vyatta.com>2010-04-13 11:50:23 -0700
committerMichael Larson <slioch@slioch.vyatta.com>2010-04-13 11:50:23 -0700
commit7c03bbb617c8e8c5bc9a553f25b79d43a8e40623 (patch)
tree322afdeb7acdd3126011910bfa115cd7bc388b4e /src/cli_val.h
parent3ea2bdb717ceb9ef1f2843e3416ccf6ad0a54583 (diff)
downloadvyatta-cfg-7c03bbb617c8e8c5bc9a553f25b79d43a8e40623.tar.gz
vyatta-cfg-7c03bbb617c8e8c5bc9a553f25b79d43a8e40623.zip
fix for bug 2176.
Embedded leaf nodes can now be supported in the cli structure. In additional an arbritrary limit can be set on the number of multinode values allowed. Format in the node.def is: tag: [u32] or multi: [u32] For the special case of a leaf node the value for u32 is 1. In this case the operation applied to the node is to replace the node with the set value. This generates a delete of the old tree structure from the embedded leaf and a set of the new tree structure from the embedded leaf.
Diffstat (limited to 'src/cli_val.h')
-rw-r--r--src/cli_val.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cli_val.h b/src/cli_val.h
index e8fbe83..9b3bcda 100644
--- a/src/cli_val.h
+++ b/src/cli_val.h
@@ -106,6 +106,8 @@ typedef struct {
char *def_node_help;
char *def_default;
unsigned int def_priority;
+ unsigned int def_tag;
+ unsigned int def_multi;
boolean tag;
boolean multi;
vtw_list actions[top_act];