these_constraints++;
}
- this_reg = this_reg->next;
+ this_reg = this_reg->next_in_arc;
}
n_features = vec_len (node_names);
* Nonexistent graph nodes are tolerated.
*/
if (p == 0)
- return clib_error_return (0, "feature node '%s' not found", a_name);
+ {
+ clib_warning ("feature node '%s' not found (before '%s', arc '%s')",
+ a_name, b_name, first_reg->arc_name);
+ continue;
+ }
a_index = p[0];
p = hash_get_mem (index_by_name, b_name);
if (p == 0)
- return clib_error_return (0, "feature node '%s' not found", b_name);
+ {
+ clib_warning ("feature node '%s' not found (after '%s', arc '%s')",
+ b_name, a_name, first_reg->arc_name);
+ continue;
+ }
b_index = p[0];
/* add a before b to the original set of constraints */