prepare networks action, check_existing_port func