summaryrefslogtreecommitdiff
path: root/src/cli_val.h
AgeCommit message (Collapse)Author
2010-07-28add cstore-specific header fileAn-Cheng Huang
2010-07-28add new cstore libraryAn-Cheng Huang
2010-07-19modified syntax and commit checks now applied during commit.Michael Larson
modification allows for error statement to be placed after location of error node.
2010-06-02simplify output initAn-Cheng Huang
2010-05-31add constness to parse_defAn-Cheng Huang
2010-05-27include needed headerAn-Cheng Huang
2010-05-20fix for bug 5618. needed to extend valstruct to maintain multiple types ↵Michael Larson
rather than using first type found in node.val file. also simplified type check.
2010-05-06additional fixAn-Cheng Huang
2010-04-22support for PARENT reference in priority statements. Example:Michael Larson
priority: PARENT Means that this priority group will adopt the priority value of the parent. And the behavior on deletion of this priority root node will be deleted before the parent. On all other operations this node will be scheduled after the parent. This should fix problems in scheduling creation/deletion orders for priority groups so long as they are located within the same hierarchy. priority.pl has been updated as well.
2010-04-15Multiple (i.e. one or two) datatypes can now be supported on a node.def type ↵Michael Larson
definition. type: ipv4,ipv6 Will now allow for the value to validated against both data types (or the first success). In the case of both failing the following message format will be returned: vyatta@vyatta# set load-balancing wan rule 1 "1" is not a valid value of type "bool" "1" is not a valid value of type "ipv4" Note, that any combination of types with text being one of the types is not supported. The reason being is that with text any value is allowed, therefore it doesn't really make sense to validate a datatype on text + ipv4 when text will always be successful.
2010-04-13fix for bug 2176.Michael Larson
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.
2009-03-11Fix warnings from redefining TRUEStephen Hemminger
TRUE and FALSE are already defined in glib causing warnings.
2008-09-04Fix build warningsStephen Hemminger
Get rid of warnings for push_path discards qualifiers from pointer target type.
2008-07-29Turn my_wrappers into macrosStephen Hemminger
The my_malloc() etc wrappers can be shrunk by using macros.
2008-07-29Avoid needless calls to system()Stephen Hemminger
Add a version of touch and mkdir -p commands coded directly without going out to shell.
2008-07-29Add annotation to cli functionsStephen Hemminger
Use gcc annotations for noreturn and printf like formats
2008-07-29type_to_name returns immutable stringStephen Hemminger
Don't want accidental errors
2008-07-07fix for bug 3216. added no escape option to push path for environmental path ↵Michael Larson
variable. note this is appied to all c code access to the edit env variable.
2008-06-30fix for bug 3403: allocate correct amount of memory for multi-valued nodes.An-Cheng Huang
2008-04-10partial fix for bug 2181: add new template field "priority".An-Cheng Huang
2007-12-11Bug #2509alex
Multivalue nodes are diffed with previous value for validation before commit.
2007-11-09* fix for bug 2472: return empty string when directory references don'tAn-Cheng Huang
exist (for existence checks in templates). * add debug output.
2007-11-06fix for bug 2273: cli parser was overwriting "type help" with "node help".An-Cheng Huang
2007-11-02* fix cli backend memory leak.An-Cheng Huang
* export {copy,free}_path().
2007-10-30handle config lockingAn-Cheng Huang
2007-10-29redirect output by defaultAn-Cheng Huang
2007-09-25initial import (from eureka /cli) plus new build system.upstreamAn-Cheng Huang