X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/8713cb1b3ca610054536859d5297373ac9e83285..3ec528eeeb1921ae588d32934d2798ca5da1d249:/src/surf/surfxml_parse.c diff --git a/src/surf/surfxml_parse.c b/src/surf/surfxml_parse.c index 6c757e587c..f36eb0f5fb 100644 --- a/src/surf/surfxml_parse.c +++ b/src/surf/surfxml_parse.c @@ -768,6 +768,13 @@ void ETag_surfxml_ASroute(void){ ASroute.gw_src = sg_routing_edge_by_name_or_null(A_surfxml_ASroute_gw___src); ASroute.gw_dst = sg_routing_edge_by_name_or_null(A_surfxml_ASroute_gw___dst); + if (A_surfxml_ASroute_gw___src && !ASroute.gw_src) + surf_parse_error("gw_src=\"%s\" not found for ASroute from \"%s\" to \"%s\"", + A_surfxml_ASroute_gw___src, ASroute.src, ASroute.dst); + if (A_surfxml_ASroute_gw___dst && !ASroute.gw_dst) + surf_parse_error("gw_dst=\"%s\" not found for ASroute from \"%s\" to \"%s\"", + A_surfxml_ASroute_gw___dst, ASroute.src, ASroute.dst); + ASroute.link_list = parsed_link_list; switch (A_surfxml_ASroute_symmetrical) {