X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/1f465f6ad9152728e93e25eca5478aeebed3be22..895f9270fc62c112619eb62a6b1998f78b0abaa1:/src/kernel/routing/AsImpl.cpp diff --git a/src/kernel/routing/AsImpl.cpp b/src/kernel/routing/AsImpl.cpp index e4eb1032dc..38b857ee58 100644 --- a/src/kernel/routing/AsImpl.cpp +++ b/src/kernel/routing/AsImpl.cpp @@ -16,6 +16,10 @@ namespace simgrid { AsImpl::AsImpl(As* father, const char* name) : As(father, name) { + netcard_ = new simgrid::kernel::routing::NetCardImpl(name, simgrid::kernel::routing::NetCard::Type::As, + static_cast(father)); + xbt_lib_set(as_router_lib, name, ROUTING_ASR_LEVEL, (void*)netcard_); + XBT_DEBUG("Having set name '%s' id '%d'", name, netcard_->id()); } AsImpl::~AsImpl() = default;