- xbt_lib_set(as_router_lib, netcard->cname(), NS3_ASR_LEVEL, new HostNs3());
-}
-
-#include "src/surf/xml/platf.hpp" // FIXME: move that back to the parsing area
-static void clusterCreation_cb(sg_platf_cluster_cbarg_t cluster)
-{
- char* lat = bprintf("%fs", cluster->lat);
- char* bw = bprintf("%fBps", cluster->bw);
-
- for (int i : *cluster->radicals) {
- char* router_id = bprintf("router_%s%d%s", cluster->prefix, i, cluster->suffix);
- HostNs3* host_dst = new HostNs3();
- xbt_lib_set(as_router_lib, router_id, NS3_ASR_LEVEL, host_dst);
+ for (int const& i : *cluster->radicals) {
+ // Routers don't create a router on the other end of the private link by themselves.
+ // We just need this router to be given an ID so we create a temporary NetPointNS3 so that it gets one
+ NetPointNs3* host_dst = new NetPointNs3();