summaryrefslogtreecommitdiff
path: root/src/cli_new.c
AgeCommit message (Collapse)Author
2010-06-02simplify output initAn-Cheng Huang
2010-06-02Additional fix to cli_new.c on arg.Michael Larson
2010-06-02more fixes for compilier warnings.Michael Larson
2010-06-01bug fix for 5646. Suppress variable replacement if deactivated for disabled ↵Michael Larson
nodes (where variables reside).
2010-05-31fix for bug 5649. Need to initialize val_types for value comparison to ↵Michael Larson
ERROR_TYPE
2010-05-28fix bad comparison in multiple-type checkMichael Larson
2010-05-26fix for multiple type support in cli for the following case:Michael Larson
1) If multiple types are defined and one type is a submatch of the other type (i.e. ipv4 and ipv4net) 2) And one string is a submatch of the other (i.e. 3.3.3.3 and 3.3.3.3/32) 3) Then compare data types before comparing for value equality Fixes problem where the ipv4net wouldn't let the ipv4 value from being set if the ipv4 was a substring of the ipv4net.
2010-05-20fixed seg violation on commit due to extended multiple types support in ↵Michael Larson
valstruct.
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-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.
2008-11-13Simplify the debug codeStephen Hemminger
dump_log doesn't need allocate whole buffer, just print in steps.
2008-10-28Fix 3505: cli crash on delete of ipv6net static route.Stig Thormodsrud
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-29Fix 3505: cli crashes on ipv6net type.Stig Thormodsrud
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-16modified fix for 2525--fixes problem introduced with last fix (bug 3163)Michael Larson
2008-04-15revert fix for 2525 until delete on commit warnings are resolved.Michael Larson
2008-04-10alternate fix for 2525--force directory evaluation upstream.Michael Larson
2008-02-26fix for bug 2868: return failure for invalid values.An-Cheng Huang
2008-02-01fix for bug 2211: "commit:expression:" checks are not evaluated atAn-Cheng Huang
"set" time.
2008-01-30don't check escaped '$' in string expansionAn-Cheng Huang
2008-01-30change variable reference marker from "$(" to "$VAR(".An-Cheng Huang
2007-12-18Reorganized things a bit in a value subtraction algorithm.alex
2007-12-14fix for bug 2479: when commit cannot obtain the config lock, it will retryAn-Cheng Huang
a fixed number of times and then check if the lock owner is still alive. if not, the orphaned lock is cleaned up so that the later commit can proceed as usual.
2007-12-13put pid in config lock fileAn-Cheng Huang
2007-12-11Merge branch 'master' of http://phuket.vyatta.com/vyatta-cfgalex
2007-12-11Bug #2509alex
Multivalue nodes are diffed with previous value for validation before commit.
2007-12-06get rid of compiler warningAn-Cheng Huang
2007-11-09* fix for bug 2338: for values of "multi:" nodes, input ordering is nowAn-Cheng Huang
used for commit actions. * fix array index out of bound.
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-08* output error message if set/delete/commit fails.An-Cheng Huang
* remove compiler warnings.
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-11-01fix cli backend bug: syntax checking for leaf value nodes involvingAn-Cheng Huang
variable references was not working.
2007-10-30add configuration change notification.An-Cheng Huang
2007-10-30handle config lockingAn-Cheng Huang
2007-10-29general cleanup of CLI outputAn-Cheng Huang
2007-10-29output "help" textAn-Cheng Huang
2007-10-29redirect output by defaultAn-Cheng Huang
2007-09-25initial import (from eureka /cli) plus new build system.upstreamAn-Cheng Huang