summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
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.
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