summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
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
2010-11-18Add --show-working-only option to showCfg.Stig Thormodsrud
2010-11-181) Ordered evaluation of these scripts similar to what is found inMichael Larson
/etc/rc* system. An integer at the beginning of the script identifies the order in which the script is executed (i.e. 01test is run before 55monkey). 2) There is now a pre-commit hook that can be used. These scripts are located at: /etc/precommit and are invoked before commit has started processing actions. 3) A success/failure environment flag set before a process has run has been changed to a tri-state: SUCCESS = all priority groups succeeded FAILURE = all priority groups failed PARTIAL = mixed success/failed
2010-11-18change error message when showing non-existing paths.An-Cheng Huang
2010-11-17continue work on parser/output frameworkAn-Cheng Huang
* handle empty and leaf typeless nodes from parsed nodes. * fix bug 6436 show level issue.
2010-11-16modified output to match spec on error location.Michael Larson
2010-11-16allow error location to be set via environmental variable. update commit ↵Michael Larson
check to preserve key when flag is set.
2010-11-15continue config file parser workAn-Cheng Huang
2010-11-15fix for bug 6427An-Cheng Huang
* also show non-existing nodes for "edit" completion.
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-11-12initial work to parse config file into data structure.An-Cheng Huang
2010-11-11continue config parser workAn-Cheng Huang
* add parser to package build. * add prefix, error handling, etc. * fix handling of empty and 1-char values in lex. * add API function.