summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
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.
2010-11-10consolidate similar logic and simplify codeAn-Cheng Huang
2010-11-10switch to new output frameworkAn-Cheng Huang
* change showCfg to use new code. * remove old files.
2010-11-10fix typo in commentAn-Cheng Huang
2010-11-09initial rework of config output frameworkAn-Cheng Huang
* separate data from algorithm. * prepare for unified input/output framework.
2010-11-09make commit aware of error location key and allow for passthrough.Michael Larson
2010-11-09modify formatting options for GUI client on -x option. Set option on GUI ↵Michael Larson
invoked commit.
2010-11-08extend initial error location support to ↵Michael Larson
begin,delete,create,update,end--currently only enabled via commit flag.
2010-11-04add session assertion for API functionsAn-Cheng Huang
* enforce session for API functions requiring it.
2010-10-29change first, last, firstlast behavior to apply environment setting on each ↵Michael Larson
action applied. will be used to help resolve problems identified w/ fw synchronization of rules.
2010-10-26Merge branch 'mendocino' of http://git.vyatta.com/vyatta-cfg into mendocinoMichael Larson
2010-10-26increase resolution of timing messages.Michael Larson
2010-10-25initial lex/yacc config file parserAn-Cheng Huang
2010-10-18temporary workaround for bug 5708An-Cheng Huang
* disallow deactivate on leaf nodes. revisit after "default value"-related issues are resolved.
2010-10-11change error location tag from commit processroot
2010-10-01Pass optional commit comment through commit to commit hooks.Stig Thormodsrud
2010-09-24cleanupAn-Cheng Huang
* set help string only if available. * use "builtin" explicitly.
2010-09-24fix for bug 6213.root
old cli code uses a char to store length of a string when unescaping the string, w/o checking string length.
2010-09-14fix for bug 6195An-Cheng Huang
* fix ".*" filtering.
2010-08-27fix for bug 5982.Michael Larson
upped max_length_buffer length from 1024 to 4096. Should leave open and reassign to mendocino so that a proper string length check can be added to the commit. (cherry picked from commit df3c80575ea539e560afc3357eb322e3e9df64bf)
2010-08-27allow commit hook commands to write to stdout.Michael Larson
(cherry picked from commit a213dd1c48581294fc967e7198d78ca270c6ae46)
2010-08-26fix for bug 5960An-Cheng Huang
* change "commit" to use syscalls (instead of system("...") calls) for mount/umount. * this is a temporary fix, and such low-level details need to be moved into the backend library.
2010-08-26mark the root as "changed" after "comment" operation.An-Cheng Huang
2010-08-26don't show extra empty level for typeless leaf nodes.An-Cheng Huang
2010-08-26mark changed ancestors up to the rootAn-Cheng Huang
2010-08-26new implementation for config outputAn-Cheng Huang
* replace the original ConfigOutput perl module. * simplify logic and fix bugs in original code.
2010-08-25remove sorting from unsorted API callsAn-Cheng Huang
2010-08-25switch to unordered_mapAn-Cheng Huang
2010-08-24add extensible node sorting mechanismAn-Cheng Huang
* unify node sorting implementation into the backend library. * allow future implementation of per-node, customized sorting policy.
2010-08-23move "changed" status handling into libraryAn-Cheng Huang
* remove public status modifier as high-level operations no longer need it. * add more information to clarify changed status handling in library. * mark changed status at appropriate places in library.
2010-08-20don't remove the workaround yetAn-Cheng Huang
* need to move changed status handling into the library.
2010-08-20mark nodes created by "default" as "changed"An-Cheng Huang
2010-08-20remove workaround for "changed" status handlingAn-Cheng Huang
2010-08-20handle "changed" status properlyAn-Cheng Huang
* original backend implementation uses unionfs-specific "changes only" dir to determine "changed" status. this breaks when it involves deactivated nodes. * new library design uses explicit per-node "changed" marker. however, since previously "commit" only handles a root "changed" marker, the new library could not implement this scheme and used a workaround instead. * now add API functions for "commit" to properly clean up "changed" markers. * modify "commit" to use these API functions and remove the workaround from the new library.
2010-08-19adjust deactivate-aware logicAn-Cheng Huang