summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
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.
2009-03-23skip comment fields in priority file. a comment field is defined by the ↵slioch
first non-space character on a line--if this character is a hash it is a comment otherwise it's an active line.
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 unionfsStephen Hemminger
Remove unused variables Remove extra arg from sprintf Fix missing prototype for piecewise_copy.
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-11Fix warnings from redefining TRUEStephen Hemminger
TRUE and FALSE are already defined in glib causing warnings.
2009-03-10buggy file exist test--thanx stig for test case to repro. fixes vpn_smoke ↵slioch
regression failure.
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.
2009-03-02added fix for nested priority and deletion failure. also priorities should ↵slioch
not reside on node.tags, but on parent (node name of multinode)--this is to prevent priorities splitting behaviors between different priorities on multinodes.
2009-03-02fixed preservation of def file when committing configuration. default leafsslioch
configured by system will now be suppressed via show command (same behavior as with old commit).
2009-02-27fixed node walk for delete of nodes--error introduced when adding ordering ↵slioch
indirection for actions in commit head. Bug found when review policy_bgp regression failure.
2009-02-27Added environment variable that can be accessed in executing node.def script ↵slioch
to check whether commit is in a delete or set action. The environmental variable is "COMMIT_ACTION" the value can either be "SET" or "DELETE". The variable is set for the duration of the call being made to the action in the node.def file. This should allow some simplication of scripts (i.e. such as setting up static routes).
2009-02-26new option added to commit to disable partial commit behavior. This allows theslioch
user to support the 'old' cli behavior if desired via the -o flag.
2009-02-26handle seg violation if an empty line is found in the priority file.slioch
2009-02-25cosmetic changes, and better to not leave interfaces root node under default ↵slioch
priority.
2009-02-25harvesting dead code.slioch
2009-02-25nested priority case under interfaces need mkdir with -p option to setslioch
up parent directories before parent priority is visited.
2009-02-24replace unionfs synchronization code with piecewise copy. this should fix ↵slioch
most of the problems related to nested priorities (but not all). also moved node profiling output from debug file to stdout (when enabled by the -c flag).
2009-02-17added additional debug output and fixed dumping of trans nodes to screen. ↵slioch
added default priorities in priorities file. also fixed bug where interface changes could sweep in portions of failed configuration on error. now fixed.
2009-02-17added dump transaction support to write to stdout rather than redirected ↵slioch
/tmp/cfg-stdout.log file. Enable with -s flag on commit to view local session data and associated actions.
2009-02-17added generic commit failed message on any portion of the configuration ↵slioch
failing. To get additional details (i.e. location of failure and actions associated with nodes) run with the -e flag.
2009-01-26expose new cli functions in cfg library.slioch
2008-12-23alter return check for dirctory copy on successful completion of node ↵slioch
processing.
2008-12-15removed tmp file that shouldn't have been committed.slioch
2008-12-15initial checkin of new commit code--building but does not replace original ↵slioch
commit. New commit may be accessed through my_commit2 binary.
2008-11-13Simplify the debug codeStephen Hemminger
dump_log doesn't need allocate whole buffer, just print in steps.
2008-10-28Fix 3505: cli crash on delete of ipv6net static route.Stig Thormodsrud
2008-10-07fix for regression bug 3758. added additional check requiring opening and ↵slioch
closing quotes before stripping takes place.
2008-10-06fix for bug 3666. strip off leading and trailing quote from default text ↵slioch
values that are deleted. default values are treated differently from hollywood. The main difference a script writer needs to be aware of is that a deleted node will set the value of the node back to the default value rather than deleting the node. This means that a node that has a default value will always be in existence (if the parent exists) and that a user cannot delete this node.
2008-09-04Handle special files in aufsStephen Hemminger
aufs uses .wh.wh.XXX files for internal state. So ignore them in the commit function.
2008-09-04Fix build warningsStephen Hemminger
Get rid of warnings for push_path discards qualifiers from pointer target type.
2008-08-27strip off whitespace in default value parsed from node.def file--fixes ↵slioch
problem of deleting time-zone value without value.