[Xorp-cvs] XORP cvs commit: xorp/rtrmgr
Pavlin Radoslavov
pavlin@icir.org
Tue, 28 Jun 2005 17:55:49 GMT
CVSROOT: /usr/local/share/doc/apache/cvs
Module name: xorp
Changes by: pavlin@xorpc.icir.org 2005-06-28 17:55:49 UTC
XORP CVS repository
Modified files:
rtrmgr template_tree.cc
Log message:
Modify TemplateTree::find_node_by_type() to relax a bit the
template tree node type checking.
Now if the type check failed, but if there is a matching
template node type of type NODE_TEXT, then we accept this node.
The upside of this is that we can use a single template
node like "foo @: txt" that can be used with, say,
IPv4 or IPv6 addresses, a host name, or any other text string.
The downside is that we lose the strict type checking
when our template tree contains such nodes.
Requested by: Atanu
Revision Changes Path
1.30 +22 -2; commitid: b0142c18d367ea6; xorp/rtrmgr/template_tree.cc