Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
cluster routing is simpler than you thought
authorMartin Quinson <martin.quinson@loria.fr>
Thu, 10 Nov 2011 10:58:31 +0000 (11:58 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Thu, 10 Nov 2011 10:59:30 +0000 (11:59 +0100)
src/surf/surf_routing_cluster.c

index a0a92d8..d4f3fbd 100644 (file)
@@ -16,12 +16,6 @@ XBT_LOG_NEW_DEFAULT_SUBCATEGORY(surf_route_cluster, surf, "Routing part of surf"
 
 static xbt_dict_t cluster_host_link = NULL; /* for tag cluster */
 
-typedef struct {
-  s_routing_component_t generic_routing;
-  xbt_dict_t dict_processing_units;
-  xbt_dict_t dict_autonomous_systems;
-} s_routing_component_cluster_t, *routing_component_cluster_t;
-
 /* Business methods */
 static route_extended_t cluster_get_route(routing_component_t rc,
                                             const char *src,
@@ -50,7 +44,7 @@ static route_extended_t cluster_get_route(routing_component_t rc,
 /* Creation routing model functions */
 routing_component_t model_cluster_create(void)
 {
-  routing_component_t new_component = model_rulebased_create();
+  routing_component_t new_component = model_none_create();
   new_component->get_route = cluster_get_route;
 
   return (routing_component_t) new_component;