[Xorp-cvs] XORP cvs commit: xorp/rtrmgr
Pavlin Radoslavov
pavlin@icir.org
Thu, 28 Jul 2005 23:18:32 GMT
CVSROOT: /usr/local/share/doc/apache/cvs
Module name: xorp
Changes by: pavlin@xorpc.icir.org 2005-07-28 23:18:32 UTC
XORP CVS repository
Modified files:
rtrmgr conf_tree_node.cc conf_tree_node.hh
Log message:
* Move the existing code for quoting a text value to
a new method ConfigTreeNode::quoted_value().
* If we print the name of a multi-value node of type text, and
if that name contains an empty space, then print the name
in quotes. Otherwise, just print the name without quotes.
This fixes a problem where the rtrmgr can accept configuration
like:
interfaces {
interface "foo bar" {
}
}
but later when the configuration is sent to xorpsh the quotes
around the "foo bar" interface name would disappear and xorpsh
cannot parse it.
Revision Changes Path
1.82 +28 -16; commitid: 14fb142e9664d7ea6; xorp/rtrmgr/conf_tree_node.cc
1.43 +2 -1; commitid: 14fb142e9664d7ea6; xorp/rtrmgr/conf_tree_node.hh