summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
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.
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