//find router
char *router = NULL;
xbt_dict_foreach(routing->dict_processing_units, c1, k1, d1) {
- if (rc->get_network_element_type(k1) == SURF_NETWORK_ELEMENT_ROUTER){
+ if (routing_get_network_element_type(k1) == SURF_NETWORK_ELEMENT_ROUTER){
router = k1;
}
}
AS_t model_rulebased_create(void) {
routing_component_rulebased_t new_component = (routing_component_rulebased_t)
- routmod_generic_create(sizeof(s_routing_component_rulebased_t));
+ model_generic_create_sized(sizeof(s_routing_component_rulebased_t));
new_component->generic_routing.parse_PU = model_rulebased_parse_PU;
new_component->generic_routing.parse_AS = model_rulebased_parse_AS;