add_onehop_route registers links in the Kayo topology (not the GTNets objects).
add_route creates the gtnets objects if not done yet and set up the routing at the GTNets level.
So route_new should be called even for 1 links routes...
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@6095
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
RETHROW1("Link %s not found (dict raised this exception: %s)", link);
}
}
- if (nb_link > 1)
+ if (nb_link >= 1)
route_new(src_id, dst_id, link_list, nb_link);
}