added checking if target topology is connected in mappingIP.py