summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2010-05-31add constness to parse_defAn-Cheng Huang
2010-05-28added hook at completion of commit process.Michael Larson
2010-05-28remove unnecessary memset callsAn-Cheng Huang
2010-05-28always zero vtw_def struct before parsing templateAn-Cheng Huang
2010-05-28Merge branch 'larkspur' of suva.vyatta.com:/git/vyatta-cfg into larkspurStephen Hemminger
2010-05-28Fix compiler warnings about overriding constStephen Hemminger
Change retrieve_data and srcDst to use const. This fixes compiler warnings about violating const rules.
2010-05-28fix bad comparison in multiple-type checkMichael Larson
2010-05-27include needed headerAn-Cheng Huang
2010-05-26fix for multiple type support in cli for the following case:Michael Larson
1) If multiple types are defined and one type is a submatch of the other type (i.e. ipv4 and ipv4net) 2) And one string is a submatch of the other (i.e. 3.3.3.3 and 3.3.3.3/32) 3) Then compare data types before comparing for value equality Fixes problem where the ipv4net wouldn't let the ipv4 value from being set if the ipv4 was a substring of the ipv4net.
2010-05-21don't count current node towards limit if it already matches a node in the ↵Michael Larson
configuration.
2010-05-21Rename sysfs to net_setStephen Hemminger
Less chance of name collision, and useful for /proc as well.
2010-05-21Merge branch 'larkspur' of vm:git/vyatta-cfg into larkspurStephen Hemminger
2010-05-21Add command to get/set sysfs filesStephen Hemminger
By using a command (instead of echo), it is possible to set capability and avoid sudo.
2010-05-20fixed seg violation on commit due to extended multiple types support in ↵Michael Larson
valstruct.
2010-05-20fixed error message on multinode limit exceeded--refer to parent node name, ↵Michael Larson
not value.
2010-05-20fix for bug 5618. needed to extend valstruct to maintain multiple types ↵Michael Larson
rather than using first type found in node.val file. also simplified type check.
2010-05-19modified tag limit == 1. Now when set this node will only allow a single ↵Michael Larson
instance. todo update the parsing structure to support a signed value to support embedded tag node value of 1 (current behavior)--will address this in the future (or when this behavior is requested).
2010-05-06additional fixAn-Cheng Huang
2010-05-06fix parsing error in node.def--seen with boolean default values.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-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.