summaryrefslogtreecommitdiff
path: root/src/commit2.c
AgeCommit message (Collapse)Author
2011-02-23compile commit with g++An-Cheng Huang
2011-02-23remove compiler warningsAn-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-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-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)
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-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-19proper exit on failure.Michael
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-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-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-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-26increase resolution of timing messages.Michael Larson
2010-10-11change error location tag from commit processroot
2010-10-01Pass optional commit comment through commit to commit hooks.Stig Thormodsrud
2010-08-27allow commit hook commands to write to stdout.Michael Larson
(cherry picked from commit a213dd1c48581294fc967e7198d78ca270c6ae46)
2010-08-09commit needs to flush "progress file"An-Cheng Huang
2010-07-29timing syslog entries on commit hooksMichael 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-07-16fix for bug 5789 and bug 5860Michael Larson
2010-06-23partial fix for bug 5729 (comment #1).Michael Larson
2010-06-10fix for bug 5679.Michael Larson
2010-06-09cleanup and fix cases to handle activated deleted multinodes correctly. ↵Michael Larson
simplified deactivated nodes logic in commit.
2010-06-05add commit hook directory.Michael Larson
The entitlement bug can be fixed https://bugzilla.vyatta.com/show_bug.cgi?id=5354 by adding a hook into this directory.
2010-06-03fixed break in regression on action failures. will revisit compilier warning ↵Michael Larson
for this conditional statement in subsequent checkin.
2010-06-02simplify output initAn-Cheng Huang
2010-06-02fix for compilier warnings in commit2.cMichael Larson
2010-05-28added hook at completion of commit process.Michael Larson
2010-05-05boot loader support now added. various bug fixes and some small rework.Michael Larson
2010-05-04initial working version of activate and deactivate: load,save,show,commit ↵Michael Larson
supported.
2010-04-22support for PARENT reference in priority statements. Example:Michael Larson
priority: PARENT Means that this priority group will adopt the priority value of the parent. And the behavior on deletion of this priority root node will be deleted before the parent. On all other operations this node will be scheduled after the parent. This should fix problems in scheduling creation/deletion orders for priority groups so long as they are located within the same hierarchy. priority.pl has been updated as well.
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.
2010-04-13fix for bug 2176.Michael Larson
Embedded leaf nodes can now be supported in the cli structure. In additional an arbritrary limit can be set on the number of multinode values allowed. Format in the node.def is: tag: [u32] or multi: [u32] For the special case of a leaf node the value for u32 is 1. In this case the operation applied to the node is to replace the node with the set value. This generates a delete of the old tree structure from the embedded leaf and a set of the new tree structure from the embedded leaf.
2010-02-15fixed problem with sibling environment variable flag. Also addedMichael Larson
designition for single entry (FIRSTLAST).
2009-12-01remove .changes file after work was done by commitMichael Larson
2009-10-23dismantle old priority file parsing and node matching code. removedslioch
references to old values.
2009-10-22activate priority values from node.def. priority file is now no longer used ↵slioch
and should be considered depricated.
2009-10-21preserve priorities in hierarchy. old priority still active, but commit -s ↵slioch
will now display both priorities: interfaces (t: 0, p: 850,850) the first value is from the old priority file and is the active value, the second value is the value retrieved from the node.def and is not used (yet).
2009-10-15new commit mode for debugging.slioch
-b Breaks on each priority group before execution and waits for user keystroke to proceed. this allows for examination of system before and after each priority group has been applied
2009-10-10performance optimization on commit. On successful commits (i.e. no failures) ↵slioch
will improve performance by avoiding the piecewise priority based copy and just copy the complete configuration once. On specific test configuration performance improvement brought commit boot time down from >15 minutes to less than 10 minutes.
2009-10-09commit post-processing performance optimizationAn-Cheng Huang
* convert subshell invocations to library function calls. * reduce boot time by ~40 seconds for "certain configuration".
2009-10-02add missing prototypesStephen Hemminger
2009-09-04added data path to environment during commit. value key is "NODE_DATA_PATH". ↵slioch
nodes are delimited by "/" rather than spaces.
2009-07-14fix for bug 4255. commit check was not being called on active node that had ↵slioch
deleted children. This change only affects the commit check for nodes that are transactions and are not directly deleted, but have deleted children. commit check is now being called.
2009-07-06fix for ptr magic on 64 bit system. looks like double ptr was getting the ↵slioch
missing the last 4 bytes on 64 bit copy.