summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
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.
2008-07-29Optimize deleteStephen Hemminger
Use inline code rather than system() function, and optimize allocation to use stack where possible.
2008-07-29Optimize commitStephen Hemminger
Use inline (rather than system), and avoid unneeded allocations.
2008-07-29Turn my_wrappers into macrosStephen Hemminger
The my_malloc() etc wrappers can be shrunk by using macros.
2008-07-29Avoid overhead of systemStephen Hemminger
Use mkdir and file operations rather than overhead of escaping to system() shell.
2008-07-29Avoid needless calls to system()Stephen Hemminger
Add a version of touch and mkdir -p commands coded directly without going out to shell.
2008-07-29Add missing includeStephen Hemminger
Pickup definition of bye() to avoid warning.
2008-07-29Add annotation to cli functionsStephen Hemminger
Use gcc annotations for noreturn and printf like formats
2008-07-29type_to_name returns immutable stringStephen Hemminger
Don't want accidental errors
2008-07-29Fix 3505: cli crashes on ipv6net type.Stig Thormodsrud
2008-07-07fix for bug 3216. added no escape option to push path for environmental path ↵Michael Larson
variable. note this is appied to all c code access to the edit env variable.
2008-07-01Merge branch 'hollywood' of http://git.vyatta.com/vyatta-cfg into hollywoodMichael Larson
2008-07-01fix for bug 3377.Michael Larson
2008-06-30fix for bug 3403: allocate correct amount of memory for multi-valued nodes.An-Cheng Huang
2008-04-22create def file to mark configuration nodes that are created by default, ↵Michael Larson
rather than a node with a default value created by a user. partial fix for bug 1219. Allows system to differentiate between active def nodes versus user created nodes with def values.
2008-04-16modified fix for 2525--fixes problem introduced with last fix (bug 3163)Michael Larson
2008-04-15revert fix for 2525 until delete on commit warnings are resolved.Michael Larson
2008-04-15reverse sort order on deleteMichael Larson
2008-04-14modified node ordering code.Michael Larson
2008-04-14partial revert of priority support--will reapply after additional changes.Michael Larson
2008-04-13temp removal of free--possible corruption.Michael Larson
2008-04-11support for node priority. higher value in node.def is higher priority.Michael Larson
2008-04-10partial fix for bug 2181: add new template field "priority".An-Cheng Huang
2008-04-10alternate fix for 2525--force directory evaluation upstream.Michael Larson
2008-04-10Revert "fix for bug 2525"Michael Larson
This reverts commit f352a460fdf15ac927d1deb4672c42b334eb8e67.
2008-04-09fix for bug 2525Michael Larson
2008-04-04fix for bug 2549.Michael Larson
2008-04-04Merge branch 'glendale' into hollywoodrbalocca
2008-04-03fix for bug 3097: correctly detect deleted tagAn-Cheng Huang