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,
}
/* Creation routing model functions */
-void *model_cluster_create(void)
+routing_component_t model_cluster_create(void)
{
- routing_component_cluster_t new_component = model_rulebased_create();
- new_component->generic_routing.get_route = cluster_get_route;
+ routing_component_t new_component = model_none_create();
+ new_component->get_route = cluster_get_route;
- return new_component;
-}
-void model_cluster_unload(void) {
-// xbt_dict_free(&cluster_host_link); //FIXME: do it once the module management is clean in routing
+ return (routing_component_t) new_component;
}
void surf_routing_cluster_add_link(const char* host_id,surf_parsing_link_up_down_t info) {