- /* FIXME: use a switch, and deal with FULLDUPLEX here */
- if (A_surfxml_link_sharing_policy == A_surfxml_link_sharing_policy_SHARED)
- link.policy = SURF_LINK_SHARED;
- else
- link.policy = SURF_LINK_FATPIPE;
+ switch (AX_surfxml_cluster_bb_sharing_policy) {
+ case A_surfxml_cluster_bb_sharing_policy_FATPIPE:
+ link.policy = SURF_LINK_FATPIPE;
+ break;
+ case A_surfxml_cluster_bb_sharing_policy_SHARED:
+ link.policy = SURF_LINK_SHARED;
+ break;
+ default:
+ surf_parse_error(bprintf("Invalid bb sharing policy in cluster %s",struct_cluster->V_cluster_id));
+ }