From 7c03bbb617c8e8c5bc9a553f25b79d43a8e40623 Mon Sep 17 00:00:00 2001 From: Michael Larson Date: Tue, 13 Apr 2010 11:50:23 -0700 Subject: 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. --- src/cli_val.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/cli_val.h') 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]; -- cgit v1.2.3