summaryrefslogtreecommitdiff
path: root/src/cli_new.c
AgeCommit message (Collapse)Author
2011-01-11use the old interface rather than call unlink directly.Michael Larson
(cherry picked from commit 3246881725b219e532464a0191d074e9f02cba23)
2011-01-11re-enable concurrent configuration commit locking.Michael Larson
locking can be overrode though commit -l flag. (cherry picked from commit c13f949c55df81052c73d394d5ed5ea18a65502b)
2011-01-04workaround for bug 5388An-Cheng Huang
* disallow double quote (") character in config values. (cherry picked from commit 143d9b4ed9fcf3ac29fd8bc8c6af6bb1921fada8)
2010-12-08need to check if process terminated normally before checking return code status.Michael Larson
2010-12-07Allow _errloc_ to be place on any line in output, not restricted to first line.Michael Larson
2010-12-06handle case for non-commit client with latest error location changes.Michael Larson
2010-12-02update to errloc. changed reader so that stderr/stdout is printed as it is ↵Michael Larson
received. Also added new -x option to commit to force messages to be printed via the old format.
2010-11-29add limit check on stdout capture (8192 characters).Michael Larson
2010-11-29fix for duplicate messages on some system commands.Michael Larson
2010-11-24implementation of err location support for commit process. commit failures ↵Michael Larson
will now look different (via cli): vyatta@vyatta# commit [ service nat ] NAT configuration error: rule type not specified/valid [ system domain-search domain ] System configuration error. Both 'domain-name' and 'domain-search' are specified, but only one of these mutually exclusive parameters is allowed. [ load-balancing wan ] WARNING: A valid WAN load-balance configuration requires an interface with a nexthop Commit failed Location of error will now be supplied on each failure, with the option to override the script node location.
2010-11-24use exit code 1 to ease init script usageAn-Cheng Huang
2010-11-12remove extra process layer--required before this command is expanded to ↵Michael Larson
handle other commit actions (i.e. ones that rely on consistent parent process id in scripts).
2010-07-28add cstore-specific header fileAn-Cheng Huang
2010-07-28add new cstore libraryAn-Cheng Huang
2010-07-21fix for bug 5882.Michael Larson
2010-07-19more cleanup to new help impl.Michael Larson
2010-07-19modified handling of status return codes for child process.Michael Larson
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-28return false for invalid value instead of exitingAn-Cheng Huang
2010-06-10add value character restrictionAn-Cheng Huang
* disallow newline in value strings. * move check into lib.
2010-06-08fix for bug 5667. Moved the location of the deactivate check.Michael Larson
2010-06-08fix for bug 5213An-Cheng Huang
* handle absolute variable references correctly.
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