if (src->isNetZone()) {
std::string srcName = "router_" + src->name();
std::string dstName = "router_" + dst->name();
- route->gw_src = simgrid::s4u::Engine::instance()->netpointByNameOrNull(srcName.c_str());
- route->gw_dst = simgrid::s4u::Engine::instance()->netpointByNameOrNull(dstName.c_str());
+ route->gw_src = simgrid::s4u::Engine::getInstance()->getNetpointByNameOrNull(srcName.c_str());
+ route->gw_dst = simgrid::s4u::Engine::getInstance()->getNetpointByNameOrNull(dstName.c_str());
}
/* Retrieve the private links */