Skip to content

Commit

Permalink
xorp: rtrmgr: Enable i32 and u64 multi value nodes to boot up
Browse files Browse the repository at this point in the history
Positive int and u64 values are read as uint. If our node is of type
NODE_ULONG or NODE_INT and read type is of type NODE_UINT, than we have a match.

Signed-off-by: Igor Maravic <igorm@etf.rs>
  • Loading branch information
Igor Maravic authored and greearb committed Mar 14, 2012
1 parent f8c934d commit 690f3fa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions xorp/rtrmgr/template_tree.cc
Expand Up @@ -491,6 +491,12 @@ TemplateTree::find_node_by_type(const list<ConfPathSegment>& path_segments)
if (t->type() == type) {
matches.push_back(t);
continue;
} else if ((t->type() == NODE_ULONG || t->type() == NODE_INT) && type == NODE_UINT) {
// u64 values are read as u32 values, because their
// regexp is the same.
// Same is for the positive int values.
matches.push_back(t);
continue;
}
//
// XXX: the type check failed.
Expand Down

0 comments on commit 690f3fa

Please sign in to comment.