summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2011-03-02change indentation in commit codeAn-Cheng Huang
2011-03-01tweak map iterator usageAn-Cheng Huang
2011-03-01add caching for parsed config templatesAn-Cheng Huang
* this improves backend performance by ~15% in, e.g., "load" (w/o commit) and "show". * this is only temporary and eventually caching should be done at higher level for better performance, and that will require config path abstraction.
2011-02-28add config template abstractionAn-Cheng Huang
2011-02-23compile commit with g++An-Cheng Huang
2011-02-23remove compiler warningsAn-Cheng Huang
2011-02-22clean up dead code etc. etc. etc.An-Cheng Huang
2011-02-18namespace reorgAn-Cheng Huang
2011-02-10Improve memory allocation (and freeing), so commit will support a ↵Michael Larson
configuration booting with 6000 vpn tunnels (w/ 2 gigs ram).
2011-02-09fix for bug 6791An-Cheng Huang
* work around comment syntax ambiguity by ignoring comments not associated with any nodes.
2011-01-27rework/simplify path handlingAn-Cheng Huang
2011-01-20added a parameter to the break on priority group option:Michael Larson
-b [priority] break at priority node (debug mode) Allows a commit to proceed up the passed in priority group number and then from there single step through each priority group. Useful in debugging large/complex configuration files.
2011-01-20add comments for showConfigAn-Cheng Huang
2011-01-20export config output algorithms through shell APIAn-Cheng Huang
2011-01-18show single context for consecutive nodes at the same level.An-Cheng Huang
2011-01-18have caller handle edit level for context diffAn-Cheng Huang
2011-01-18add comments for context diff codeAn-Cheng Huang
2011-01-18initial implementation of context diffAn-Cheng Huang
2011-01-13remove compiler warningsAn-Cheng Huang
* squeeze already __USE_ISOC99. (cherry picked from commit dc1294e97c46938105194639c7bff89399ef93a5)
2011-01-11reset initial parser stateAn-Cheng Huang
(cherry picked from commit f780a3fe2703874219e70e7cf443846fd85e9a67)
2011-01-11tweak parser for top-level commentAn-Cheng Huang
(cherry picked from commit 7f436bd240d19bace94f102ce2f035399e48d612)
2011-01-11use the old interface rather than call unlink directly.Michael Larson
(cherry picked from commit 3246881725b219e532464a0191d074e9f02cba23)
2011-01-11and fix for bug 6638Michael Larson
(cherry picked from commit ef1635f3d6784b77ecce922fbfad0ca96b749a30)
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-07improve load error messageAn-Cheng Huang
(cherry picked from commit 42f2fdb35cff89debd346126eb69cd95d855ff7b)
2011-01-05fix for bug 6641An-Cheng Huang
* change shell API to only use "edit level" when needed. * add factory functions for cstore creation to simplify code. (cherry picked from commit 2208bfef1004295d3227492c6a3e9d7b36903db5)
2011-01-04workaround for bug 5388An-Cheng Huang
* disallow double quote (") character in config values. (cherry picked from commit 143d9b4ed9fcf3ac29fd8bc8c6af6bb1921fada8)
2010-12-21propagate constnessAn-Cheng Huang
2010-12-20make output-related functions staticAn-Cheng Huang
2010-12-13make the library croak when internal error occurs in perl context.An-Cheng Huang
* extend output/assert mechanism and simplify code. * when handling internal error, automatically detect perl context and croak if the library is used from perl.
2010-12-10fix for bug 6026An-Cheng Huang
* for unionfs cstore implementation, enforce file size limit on both read and write and raise limit to 256 KB.
2010-12-08output session assert message to userAn-Cheng Huang
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-03change boot-time config loading to use new implementation in backend.An-Cheng Huang
* add new boot-time config loading script that uses shell API to access backend directly, bypassing wrapper. * use new loadFile implementation in the backend to perform the actual "load" operation (without "commit"). this reduces the "pre-commit" load time by ~60%.
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-12-02implement load function in new config input/output infrastructure.An-Cheng Huang
* add "commands diff" functionality to config input/output infrastructure. * consolidate similar logic in "commands diff" and "show diff". * add loadFile functionality to cstore using "commands diff". * export loadFile through shell API.
2010-11-29disable activate/deactivate for mendocino as discussed.An-Cheng Huang
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-24Remove unused net_setStephen Hemminger
Part of earlier effort to use less sudo. Not currently used.
2010-11-22fix for bug 6459An-Cheng Huang
* don't throw away "unsaved" state when doing "discard".
2010-11-19proper exit on failure.Michael
2010-11-19fix for bug 6448An-Cheng Huang
* fix leaf node value diff output.
2010-11-19fix existence check in "syntax" when builtin expression is used.An-Cheng Huang
2010-11-19remove parser debug output and move existence check.An-Cheng Huang
2010-11-18Merge branch 'mendocino' of http://git.vyatta.com/vyatta-cfg into mendocinoStig Thormodsrud