From: adrien gougeon Date: Wed, 21 Oct 2020 13:27:23 +0000 (+0200) Subject: differenciated signal on_route_creation depending if its for a route inside a zone... X-Git-Tag: v3.26~5^2~12 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/23c4a29b7df1ed680b62ad1f2f868219adba0158 differenciated signal on_route_creation depending if its for a route inside a zone or between two zones --- diff --git a/src/kernel/routing/RoutedZone.cpp b/src/kernel/routing/RoutedZone.cpp index 25ad1a11a2..40a7851af7 100644 --- a/src/kernel/routing/RoutedZone.cpp +++ b/src/kernel/routing/RoutedZone.cpp @@ -174,6 +174,7 @@ void RoutedZone::add_route_check_params(NetPoint* src, NetPoint* dst, NetPoint* xbt_assert(not dst->is_netzone(), "When defining a route, dst cannot be a netzone such as '%s'. Did you meant to have an NetzoneRoute?", dstName); + s4u::NetZone::on_route_creation(symmetrical, src, dst, gw_src, gw_dst, link_list); } else { XBT_DEBUG("Load NetzoneRoute from %s@%s to %s@%s", srcName, gw_src->get_cname(), dstName, gw_dst->get_cname()); xbt_assert(src->is_netzone(), "When defining a NetzoneRoute, src must be a netzone but '%s' is not", srcName); @@ -192,9 +193,8 @@ void RoutedZone::add_route_check_params(NetPoint* src, NetPoint* dst, NetPoint* gw_dst->get_cname(), dstName); xbt_assert(not link_list.empty(), "Empty route (between %s@%s and %s@%s) forbidden.", srcName, gw_src->get_cname(), dstName, gw_dst->get_cname()); + s4u::NetZone::on_route_creation(symmetrical, gw_src, gw_dst, gw_src, gw_dst, link_list); } - - s4u::NetZone::on_route_creation(symmetrical, src, dst, gw_src, gw_dst, link_list); } } // namespace routing } // namespace kernel