It's not so much about presence as format. We're saying that if the compute resource provides an IP, we should validate the supplied data is a valid format (see https://github.com/GregSutcliffe/foreman/blob/3435fde6b81bc8532f0360bd09c10f9f0fbe3512/app/models/host/managed.rb#L145)