+/* Instantiate a new route: MODIFY BY KF */
+static void route_onehop_new(int src_id, int dst_id, char **links, int nb_link)
+{
+ int linkid;
+
+ if (nb_link != 1){
+ xbt_assert0(0, "In onehop_new, nb_link should be 1");
+ }
+
+ /* KF: Build the list of gtnets link IDs */
+ linkid =
+ ((network_link_GTNETS_t)(xbt_dict_get(network_link_set, links[0])))->id;
+
+ /* KF: Create the GTNets route */
+ if (gtnets_add_onehop_route(src_id, dst_id, linkid)) {
+ xbt_assert0(0,"Cannot create GTNetS route");
+ }
+}
+