icm_fr_get_switch_index
index = icm_fr_get_switch_index(sw->ports[link]);
index = icm_fr_get_switch_index(sw->ports[j]);