summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2010-03-29changed double quotes to single quotes on in commit actions.Michael Larson
2010-03-26fix for bug 5300Michael Larson
2010-03-12Print node name before the warning message.Stig Thormodsrud
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-11-10preserve node.val order for term multinodes. fix for bug 5103Michael Larson
2009-11-05Merge branch 'kenwood' of http://git.vyatta.com/vyatta-cfg into kenwoodBob Gilligan
2009-11-05Allow inline comments in config template fields.Bob Gilligan
Also change priority.pl script to display inline comments found in "priority:" fields if they are present.
2009-11-02fix for missing priority value on embedded multinode. bug behavior was more ↵slioch
limited than this--at least tag node.def and multiple configuration on commit. tested fix with limited regression test. also slightly modified break on priority values where embedded multinodes with priority values are treated as discrete transactions (which isolates failures within the multinode and not the parent of the multinode).
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-21priorities should match up on all nodes now, except where the priority file ↵slioch
diverges from the node.defs commit behavior has not changed yet, but can be completely switched over to node.def priority system with simple change.
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-21pull priority from file into data structureslioch
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-12followup checkin for fast commit on success behavior. Addresses problem with ↵slioch
deleted leafs. Partial regression run on changes, results map to 10/10 build.
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-05 escape value slash in leaf value--followon fix to suppression of leaf value ↵Michael Larson
with slash in jenner.
2009-10-05remove old source commit head. likely no longer works well given ↵Michael Larson
corresponding changes made to node.defs
2009-10-02Update function prototypesStephen Hemminger
Use (void) rather than old K&R style. Make some functions local.
2009-10-02add missing prototypesStephen Hemminger
2009-10-02Fix warning from missing returnStephen Hemminger
2009-10-02 fix for bug 4969. on leaf nodes scan for '/' and don't make these values ↵Michael Larson
available to the partial commit status api (bug fix 4919). this approach will be revised in next release.
2009-09-11add support for value tags on term multinodes. used in debugging output and ↵Michael Larson
accounting file.
2009-09-10 add leaf values to path data structures. will show in disgnostic output ↵Michael Larson
from commit and via .changes file used for commit active node set.
2009-09-09 Priority file generator. This program will iterate over the complete ↵Michael Larson
template tree and build the priority file from "priority: val" tags found in node.def files. This will now allow us to migrate the priority statements found to the specified nodes. Currently the program does not order the priority nodes according to values (cosmetic feature). Finally once all the priority values have been migrated to the infected node.defs the priority program can be added as a postinst hook on debian package install.
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-06fix for bug 4669. Revert string back to value for terminating multinodes.slioch
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-09additional fix for bug 4212. root dirs needed to be reversed on del event. ↵slioch
passes regression
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-06-01fix for bug 4451. preserve empty values on leaf nodes.slioch
2009-05-28fix for bug 4212 and bug 4434.slioch
opaque directories are now handled corrected when a delete is followed by a set in a subsection of the deleted hierarchy.
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-11wild cards are now supported on terminating nodes in the priority file:slioch
So, 100 load-balancing/wan/rule/node.tag/* applies the priority of "100" to all children of the multinode "rule:value" NEW TRANS + source (t: 0, p: 333) + address (t: 0, p: 1000) + 1.1.1.1/32 (t: 8, p: 1000) [VALUE] NEW TRANS + protocol (t: 0, p: 333) + all (t: 8, p: 1000) [VALUE] [SYNTAX] NEW TRANS + protocol (t: 0, p: 333) + all (t: 8, p: 1000) [VALUE] [SYNTAX] NEW TRANS + load-balancing (t: 0, p: 1000) + wan (t: 0, p: 1000) [DELETE] [COMMIT] + rule (t: 0, p: 1000) [MULTI] + 1 (t: 1, p: 1000) [VALUE] + 2 (t: 1, p: 1000) [VALUE] Where protocol is a child node of "rule:value" This should allow us to compress some of the entries given the current state of the priority file.
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.