[Xorp-cvs] XORP cvs commit: xorp/rtrmgr
Pavlin Radoslavov
pavlin@icir.org
Wed, 20 Jul 2005 01:55:07 GMT
CVSROOT: /usr/local/share/doc/apache/cvs
Module name: xorp
Changes by: pavlin@xorpc.icir.org 2005-07-20 01:55:06 UTC
XORP CVS repository
Modified files:
rtrmgr conf_tree_node.cc
Log message:
If we are deleting a subtree, then mark the whole subtree so
later the scanning of the tree will invoke the appropriate
method for each node.
Note that this changes the %delete semantics for the rtrmgr template
trees (per other developers' request).
Now if a node that is deleted does not have a %delete command, then
the %delete commands of its children are called instead.
This rule is applied recursively for each child that does not have
a %delete command.
Previously, we had to add practically almost everywhere %delete methods
(in each level of the template tree hierarchy) otherwise deleting
a non-leaf node with no %delete method wouldn't invoke the %delete methods
below it.
Revision Changes Path
1.74 +7 -1; commitid: 17b6f42ddacd47ea6; xorp/rtrmgr/conf_tree_node.cc