Getting flows from switches