From 16fc71ed9141ceeb215950e0e570156f57ba9ea1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jean-Baptiste=20Herv=C3=A9?= Date: Fri, 10 Aug 2012 14:12:42 +0200 Subject: [PATCH] Platform generation: record the router id --- src/surf/platf_generator.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/surf/platf_generator.c b/src/surf/platf_generator.c index 90c2d8d631..db59a92e58 100644 --- a/src/surf/platf_generator.c +++ b/src/surf/platf_generator.c @@ -653,7 +653,8 @@ void platf_generate(void) { sg_platf_new_cluster(cluster_parameters); break; case ROUTER: - router_parameters.id = bprintf("router-%d", ++last_router); + node_data->router_id = bprintf("router-%d", ++last_router); + router_parameters.id = node_data->router_id; sg_platf_new_router(&router_parameters); } } -- 2.20.1