Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add a add_route for hosts, without gateways
[simgrid.git] / examples / cpp / network-factors / s4u-network-factors.cpp
index 1ff67f6..36ca183 100644 (file)
@@ -79,7 +79,7 @@ static void load_platform()
     root->add_route(host->get_netpoint(), nullptr, nullptr, nullptr, {{l, sg4::LinkInRoute::Direction::UP}}, true);
 
     const sg4::Link* loopback = root->create_link(hostname + "_loopback", BW_LOCAL)->set_latency(LATENCY)->seal();
-    root->add_route(host->get_netpoint(), host->get_netpoint(), nullptr, nullptr, {sg4::LinkInRoute(loopback)});
+    root->add_route(host, host, {sg4::LinkInRoute(loopback)});
   }
 
   root->seal();