modified get_topology and check_status functions to take topology_result argument instead of ip