summaryrefslogtreecommitdiff
path: root/src/commit2.c
AgeCommit message (Collapse)Author
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.
2009-07-06updated perl api for new cli to support working node representation. not yet ↵slioch
functional without additional testing.
2009-06-26The SYNTAX and COMMIT tags will be executed before an actions (UPDATE,slioch
CREATE, DELETE, END, BEGIN) within a priority tree. That means that all work (include the commit-check pass) will be performed on a priority tree before proceeding to the next priority tree. If a priority tree generates a failure in the commit-check pass processing will halt on the priority tree and no further processing will be performed on the priority tree. The failed priority tree will NOT be copied to the active working directory. All nodes in the priority tree will execute SYNTAX and COMMIT actions except for nodes that have been deleted. Note this iteration is performed on the working tree, so all commit-check nodes will either be directly modified or have a node down the hierarchy that had been modified. The working directory and active directory will not be modified until after all priority trees have been processed.
2009-06-24Commit check now behaves like IslaVista.slioch
Note that commit check only applies in the following cases: 1) On nodes or ancestors of nodes that have been set or modified 2) Does not applied to deleted nodes Feature developers should: 1) locate commit checks at a common ancestor if checking across a hierarchy 2) expect that the commit check only enforces created behavior (therefore behaves more like a create check). An additional flag is provided "-f" to allow for full syntax and commit checks. This allows a complete single pass on all syntax and commit errors. The default behavior is to stop processing on the first error.
2009-06-19fix -a option for displaying actions when commit or syntax check is present ↵slioch
in the node.def. This change only affects display of nodes when -a option is used.
2009-06-05fix for bug 4444.slioch
Post unionfs directory magic until after all actions have been applied to node tree.
2009-06-03added support for first and last sibling environment variable: ↵slioch
"ENV_SIBLING_POSITION". This value will either be "FIRST" or "LAST" or undefined. "FIRST" means that the sibling is the first in the list of a common parent, provided that the sibling resides in the same priority group "LAST" means that the sibling is the last in the list of a common parent, provided that the sibling resides in the same priority group
2009-05-01fix for bug 4338. update was being called on active nodes that containedslioch
end/begin transactions. now only end/begin are called on active nodes.
2009-04-08added syslog entries for debug statements.slioch
2009-04-06Handle commit failure processing within priority group correctly. Processing ↵slioch
now stops on failure within priority group (expected behavior).
2009-04-01orphaned parent supportslioch
2009-03-31change noop to active for env variable--this is more consistent with the ↵slioch
action being applied.
2009-03-30added noop state to commit_action env variable to make scripts happy.slioch
2009-03-30only set env varible for commit action on directly deleted set nodes and do ↵slioch
not promote to enclosing transaction scope.
2009-03-30propagate commit failure error to commit return status.slioch
2009-03-25bug in logic when implementing additional show command--was causing commit ↵slioch
failures to be lost on repeated commits.
2009-03-23added command to view set of actions and nodes applied to system in order. ↵slioch
The new command flag is "-a"
2009-03-11Fix compiler warnings in commit2Stephen Hemminger
Add headers with prototypes to remove compiler warnings Make some obvious tables const to avoid any bugs.
2009-03-09added action and location of error to syslog on commit. error message string ↵slioch
will need to be added later after some reworking of the old node execution code.
2009-03-09fix for qos-walkthrough. manage def file during commit--should handle ↵slioch
general case, just happened to show up on qos-walkthrough (after def files were supported in the new commit).
2009-03-04limit unescape command to embedded multinodes--fixes problem in ↵slioch
qos-walkthrough regression test. haven't tried it but system probably inherently prevents percents from being used in embedded multinodes.
2009-03-04modified environment variable setting for action on nodes.slioch
2009-03-03fixed -o option on commit. modified empty multinode behavior so action is ↵slioch
NOT executed if a multinode does not possess a value. Other source cleanup.